This is an automated email from the ASF dual-hosted git repository. vy pushed a commit to branch LOG4J2-3628 in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 3c0a8466f7aa35181db496a791ff60b9f921f2e8 Author: Volkan Yazıcı <[email protected]> AuthorDate: Wed Nov 23 22:56:11 2022 +0100 LOG4J2-3628 Add exec-maven-plugin entries. --- log4j-internal-util/pom.xml | 130 ++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 6 ++ 2 files changed, 136 insertions(+) diff --git a/log4j-internal-util/pom.xml b/log4j-internal-util/pom.xml index b1af77b4c6..3d89f4476b 100644 --- a/log4j-internal-util/pom.xml +++ b/log4j-internal-util/pom.xml @@ -31,4 +31,134 @@ <name>Apache Log4j internal utilities</name> <description>Internal Log4j utilities for project's build infrastructure.</description> + <properties> + <log4jParentDir>${basedir}/..</log4jParentDir> <!-- required for `spotless-maven-plugin` inherited configuration --> + <maven.doap.skip>true</maven.doap.skip> + </properties> + + <build> + <finalName>log4j-internal-util</finalName> + <plugins> + + <!-- Disable ITs: --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>integration-test</goal> + <goal>verify</goal> + </goals> + </execution> + </executions> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + + <!-- Disable tests: --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + + <!-- Disable deployment: --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + + <!-- Disarm existing configurations for the JAR plugin. + Otherwise it complains about `MANIFEST.MF` and such when the module is tried to be packaged individually: `./mvnw package -pl log4j-internal-util`. --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <id>default-jar</id> + <goals> + <goal>jar</goal> + </goals> + <configuration combine.self="override"/> + </execution> + </executions> + </plugin> + + + </plugins> + </build> + + <profiles> + + <!-- AsciiDoc-formatted changelog generator: --> + <profile> + <id>changelog-asciidoc-exporter</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <build> + <defaultGoal>package</defaultGoal> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>changelog-asciidoc-export</id> + <phase>package</phase> + <goals> + <goal>java</goal> + </goals> + </execution> + </executions> + <configuration> + <mainClass>org.apache.logging.log4j.internal.util.changelog.exporter.AsciiDocExporter</mainClass> + <arguments> + <argument>${maven.multiModuleProjectDirectory}</argument> <!-- requires Maven >=3.6.0 --> + </arguments> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <!-- Changelog releaser: --> + <profile> + <id>changelog-releaser</id> + <build> + <defaultGoal>package</defaultGoal> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>changelog-releaser</id> + <!-- the closest phase to non-existent `post-package`: --> + <phase>package</phase> + <goals> + <goal>java</goal> + </goals> + </execution> + </executions> + <configuration> + <mainClass>org.apache.logging.log4j.internal.util.changelog.releaser.ChangelogReleaser</mainClass> + <arguments> + <argument>${maven.multiModuleProjectDirectory}</argument> <!-- requires Maven >=3.6.0 --> + </arguments> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + </profiles> + </project> diff --git a/pom.xml b/pom.xml index f3b4c5946a..380ee29dc1 100644 --- a/pom.xml +++ b/pom.xml @@ -279,6 +279,7 @@ <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version> <docker-maven-plugin.version>0.40.2</docker-maven-plugin.version> <exam-maven-plugin.version>4.13.5</exam-maven-plugin.version> + <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version> <findsecbugs-plugin.version>1.12.0</findsecbugs-plugin.version> <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version> <maven-bundle-plugin.version>5.1.8</maven-bundle-plugin.version> @@ -1125,6 +1126,11 @@ <artifactId>exam-maven-plugin</artifactId> <version>${exam-maven-plugin.version}</version> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>${exec-maven-plugin.version}</version> + </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>
