Author: joehni Date: Wed Jan 3 00:05:34 2018 New Revision: 1819917 URL: http://svn.apache.org/viewvc?rev=1819917&view=rev Log: Build artifacts -test.jar, -sources.jar and -test-sources.jar always, not only at release time.
Modified: commons/proper/commons-parent/trunk/pom.xml Modified: commons/proper/commons-parent/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=1819917&r1=1819916&r2=1819917&view=diff ============================================================================== --- commons/proper/commons-parent/trunk/pom.xml (original) +++ commons/proper/commons-parent/trunk/pom.xml Wed Jan 3 00:05:34 2018 @@ -38,6 +38,8 @@ <!-- Version 43: + +- build artifacts -test.jar, -sources.jar and -test-sources.jar always, not only at release time - maven-compiler-plugin 3.6.1 -> 3.6.2 - maven-compiler-plugin 3.6.2 -> 3.7.0 - jacoco-maven-plugin 0.7.7.201606060606 -> 0.7.9 @@ -609,6 +611,17 @@ Version 39: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>test-jar</goal> + </goals> + <configuration> + <!-- Avoids an error when releasing the parent pom --> + <skipIfEmpty>true</skipIfEmpty> + </configuration> + </execution> + </executions> <configuration> <archive> <manifestFile>${commons.manifestfile}</manifestFile> @@ -628,6 +641,18 @@ Version 39: </configuration> </plugin> <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>create-source-jar</id> + <goals> + <goal>jar-no-fork</goal> + <goal>test-jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> @@ -887,6 +912,40 @@ Version 39: </reporting> <profiles> + <profile> + <id>svn</id> + <activation> + <file> + <exists>.svn</exists> + </file> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>buildnumber-maven-plugin</artifactId> + <executions> + <execution> + <phase>validate</phase> + <goals> + <goal>create</goal> + </goals> + </execution> + </executions> + <configuration> + <!-- Use committed revision so it does not change every time svn update is run --> + <useLastCommittedRevision>true</useLastCommittedRevision> + <!-- default revision number if unavailable --> + <revisionOnScmFailure>??????</revisionOnScmFailure> + <!-- svnjava works even if an svn command-line client is not on the path --> + <providerImplementations> + <svn>javasvn</svn> + </providerImplementations> + </configuration> + </plugin> + </plugins> + </build> + </profile> <profile> <!-- @@ -1119,32 +1178,6 @@ Version 39: </configuration> </plugin> <plugin> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>create-source-jar</id> - <goals> - <goal>jar</goal> - <goal>test-jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <artifactId>maven-jar-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>test-jar</goal> - </goals> - <configuration> - <!-- Avoids an error when releasing the parent pom --> - <skipIfEmpty>true</skipIfEmpty> - </configuration> - </execution> - </executions> - </plugin> - <plugin> <artifactId>maven-release-plugin</artifactId> <configuration> <!-- Pass these arguments to the deploy plugin. -->