|
31 | 31 | <parent>
|
32 | 32 | <groupId>org.apache.logging</groupId>
|
33 | 33 | <artifactId>logging-parent</artifactId>
|
34 |
| - <version>10.6.0</version> |
| 34 | + <version>11.0.0-SNAPSHOT</version> |
35 | 35 | <relativePath />
|
36 | 36 | </parent>
|
37 | 37 |
|
|
615 | 615 | This section consists of plugins responsible for generating the site.
|
616 | 616 | Note that only this (i.e., the root) module is supposed to have a `site` goal, it is skipped for all other modules! -->
|
617 | 617 |
|
618 |
| - <!-- Define `currentYear` property used while generating the site --> |
| 618 | + <!-- Define `currentYear` property used by the `maven-javadoc-plugin` configuration --> |
619 | 619 | <plugin>
|
620 | 620 | <groupId>org.codehaus.mojo</groupId>
|
621 | 621 | <artifactId>build-helper-maven-plugin</artifactId>
|
|
657 | 657 | <bottom><![CDATA[<p align="center">
|
658 | 658 | Copyright © {inceptionYear}-{currentYear} {organizationName}.
|
659 | 659 | All Rights Reserved.<br/>
|
660 |
| - Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation. |
| 660 | + Apache, Log4j, and the Apache feather logo are trademarks or registered trademarks of {organizationName}. |
| 661 | + Oracle and Java are registered trademarks of Oracle and/or its affiliates. |
| 662 | + Other names may be trademarks of their respective owners. |
661 | 663 | </p>]]></bottom>
|
662 | 664 | </configuration>
|
663 | 665 | </execution>
|
664 | 666 | </executions>
|
665 | 667 | </plugin>
|
666 | 668 |
|
667 |
| - <!-- Export release notes --> |
668 |
| - <plugin> |
669 |
| - <groupId>org.apache.logging.log4j</groupId> |
670 |
| - <artifactId>log4j-changelog-maven-plugin</artifactId> |
671 |
| - <executions> |
672 |
| - <execution> |
673 |
| - <!-- Execution ID must match the one inherited from `logging-parent` (i.e., `export-changelog`) to override it! --> |
674 |
| - <id>export-changelog</id> |
675 |
| - <goals> |
676 |
| - <goal>export</goal> |
677 |
| - </goals> |
678 |
| - <phase>pre-site</phase> |
679 |
| - <inherited>false</inherited> |
680 |
| - <configuration> |
681 |
| - <outputDirectory>${project.build.directory}/generated-site/antora/modules/ROOT/pages</outputDirectory> |
682 |
| - <indexTemplates> |
683 |
| - <template> |
684 |
| - <source>.index.adoc.ftl</source> |
685 |
| - <target>release-notes.adoc</target> |
686 |
| - </template> |
687 |
| - </indexTemplates> |
688 |
| - <changelogTemplates> |
689 |
| - <template> |
690 |
| - <source>.release-notes.adoc.ftl</source> |
691 |
| - <target>_release-notes/%v.adoc</target> |
692 |
| - </template> |
693 |
| - </changelogTemplates> |
694 |
| - </configuration> |
695 |
| - </execution> |
696 |
| - </executions> |
697 |
| - </plugin> |
698 |
| - |
699 |
| - <plugin> |
700 |
| - <groupId>org.apache.maven.plugins</groupId> |
701 |
| - <artifactId>maven-antrun-plugin</artifactId> |
702 |
| - <inherited>false</inherited> |
703 |
| - <executions> |
704 |
| - |
705 |
| - <!-- Copy `src/site/antora/antora.tmpl.yml` to `target/antora-yml/antora.yml` --> |
706 |
| - <execution> |
707 |
| - <id>copy-antora-yml</id> |
708 |
| - <goals> |
709 |
| - <goal>run</goal> |
710 |
| - </goals> |
711 |
| - <phase>pre-site</phase> |
712 |
| - <configuration> |
713 |
| - <target> |
714 |
| - <copy file="${project.basedir}/src/site/antora/antora.tmpl.yml" overwrite="true" tofile="${project.build.directory}/antora-yml/antora.yml" /> |
715 |
| - </target> |
716 |
| - </configuration> |
717 |
| - </execution> |
718 |
| - |
719 |
| - </executions> |
720 |
| - </plugin> |
721 |
| - |
722 | 669 | <plugin>
|
723 | 670 |
|
724 | 671 | <groupId>org.apache.maven.plugins</groupId>
|
|
753 | 700 | <!-- Process `target/antora-yml` and output to `target/generated-site/antora` -->
|
754 | 701 | <execution>
|
755 | 702 | <id>filter-antora-yml</id>
|
756 |
| - <goals> |
757 |
| - <goal>copy-resources</goal> |
758 |
| - </goals> |
759 |
| - <phase>pre-site</phase> |
760 |
| - <inherited>false</inherited> |
761 |
| - <configuration> |
762 |
| - <outputDirectory>${project.build.directory}/generated-site/antora</outputDirectory> |
763 |
| - <resources> |
764 |
| - <resource> |
765 |
| - <directory>${project.build.directory}/antora-yml</directory> |
766 |
| - <filtering>true</filtering> |
767 |
| - </resource> |
768 |
| - </resources> |
769 |
| - </configuration> |
770 | 703 | </execution>
|
771 | 704 |
|
772 | 705 | <!-- Copy `src/site` to `target/generated-site` -->
|
773 | 706 | <execution>
|
774 | 707 | <id>copy-site</id>
|
775 |
| - <goals> |
776 |
| - <goal>copy-resources</goal> |
777 |
| - </goals> |
778 |
| - <phase>pre-site</phase> |
779 |
| - <inherited>false</inherited> |
780 |
| - <configuration> |
781 |
| - <outputDirectory>${project.build.directory}/generated-site</outputDirectory> |
782 |
| - <resources> |
783 |
| - <resource> |
784 |
| - <directory>${project.basedir}/src/site</directory> |
785 |
| - </resource> |
786 |
| - </resources> |
787 |
| - </configuration> |
788 | 708 | </execution>
|
789 | 709 |
|
790 | 710 | <!-- Copy `target/site/apidocs` to the root module's `target/site/javadoc/<artifactId>` folder -->
|
|
894 | 814 |
|
895 | 815 | </plugin>
|
896 | 816 |
|
897 |
| - <plugin> |
898 |
| - <groupId>com.github.eirslett</groupId> |
899 |
| - <artifactId>frontend-maven-plugin</artifactId> |
900 |
| - <version>${frontend-maven-plugin.version}</version> |
901 |
| - <inherited>false</inherited> |
902 |
| - <executions> |
903 |
| - |
904 |
| - <!-- Install Node & NPM --> |
905 |
| - <execution> |
906 |
| - <id>install-node-and-npm</id> |
907 |
| - <goals> |
908 |
| - <goal>install-node-and-npm</goal> |
909 |
| - </goals> |
910 |
| - <phase>pre-site</phase> |
911 |
| - <configuration> |
912 |
| - <nodeVersion>v${node.version}</nodeVersion> |
913 |
| - <npmVersion>${npm.version}</npmVersion> |
914 |
| - </configuration> |
915 |
| - </execution> |
916 |
| - |
917 |
| - <!-- Install Antora --> |
918 |
| - <execution> |
919 |
| - <id>install-antora</id> |
920 |
| - <goals> |
921 |
| - <goal>npm</goal> |
922 |
| - </goals> |
923 |
| - <phase>pre-site</phase> |
924 |
| - </execution> |
925 |
| - |
926 |
| - </executions> |
927 |
| - </plugin> |
928 |
| - |
929 |
| - <!-- Run Antora --> |
930 |
| - <plugin> |
931 |
| - <groupId>org.codehaus.mojo</groupId> |
932 |
| - <artifactId>exec-maven-plugin</artifactId> |
933 |
| - <version>${exec-maven-plugin.version}</version> |
934 |
| - <executions> |
935 |
| - <execution> |
936 |
| - <id>run-antora</id> |
937 |
| - <goals> |
938 |
| - <goal>exec</goal> |
939 |
| - </goals> |
940 |
| - <phase>site</phase> |
941 |
| - <inherited>false</inherited> |
942 |
| - <configuration> |
943 |
| - <executable>${project.basedir}/node/node</executable> |
944 |
| - <arguments> |
945 |
| - <!-- Running `node/node node_modules/.bin/antora antora-playbook.yaml ...` doesn't work on Windows[1]. |
946 |
| - I come up with the below solution working on both Linux and Windows. |
947 |
| - Pay attention to the following details: |
948 |
| -
|
949 |
| - 1. `@antora/cli` is executed programmatically (this is what `node_modules/.bin/antora` does under the hood) |
950 |
| - 2. Single-quotes must be used (double-quotes get erased and hence cause syntax errors) |
951 |
| - 3. Relative paths must be used[2] |
952 |
| -
|
953 |
| - [1] For some reason, the `node_modules/.bin/antora` script is not properly executed. |
954 |
| - The following works though: `cd node_modules/.bin; ../../node/node antora ../../antora-playbook.yaml`. |
955 |
| - Motivated by this, tried configuring the `workingDirectory` parameter of the plugin, though it did not help. |
956 |
| - [2] `${project.basedir}/antora-playbook.yaml` strangely resolves to `C:\Users\user\logging-log4j2\Usersuserlogging-log4j2/antora-playbook.yaml`. |
957 |
| - I tried using `const path = require('path'); ... path.resolve('${project.basedir}', 'antora-playbook.yaml')`, but it failed with the same error too. --> |
958 |
| - <argument>--eval</argument> |
959 |
| - <argument>require('@antora/cli')(['generate', '--playbook', 'antora-playbook.yaml', '--to-dir', 'target/site'])</argument> |
960 |
| - </arguments> |
961 |
| - </configuration> |
962 |
| - </execution> |
963 |
| - </executions> |
964 |
| - </plugin> |
965 |
| - |
966 |
| - <!-- Skip the `export-asciidoc-to-html` execution inherited from `logging-parent` --> |
967 |
| - <plugin> |
968 |
| - <groupId>org.asciidoctor</groupId> |
969 |
| - <artifactId>asciidoctor-maven-plugin</artifactId> |
970 |
| - <inherited>false</inherited> |
971 |
| - <configuration> |
972 |
| - <skip>true</skip> |
973 |
| - </configuration> |
974 |
| - </plugin> |
975 |
| - |
976 | 817 | <!-- ███████ ███ ██ ██████ ███████ ██ ████████ ███████
|
977 | 818 | ██ ████ ██ ██ ██ ██ ██ ██ ██ ██
|
978 | 819 | █████ ██ ██ ██ ██ ██ ███████ ██ ██ █████
|
|
0 commit comments