DBZ-13 Changed Maven build to attach JavaDoc JARs to each module

Modified the 'docs' profile to build and attach JavaDoc JARs for each module's source and test source artifacts. The profile will be automatically used when releasing.
This commit is contained in:
Randall Hauch 2016-02-17 11:14:50 -06:00
parent 997456d027
commit 0102f620a9
2 changed files with 10 additions and 26 deletions

View File

@ -210,6 +210,7 @@
</executions>
<configuration>
<skipTests>${skipITs}</skipTests>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<!-- Make these available to the tests via system properties -->
<database.hostname>${docker.host.address}</database.hostname>

35
pom.xml
View File

@ -380,6 +380,7 @@
<artifactId>maven-release-plugin</artifactId>
<configuration>
<pushChanges>false</pushChanges>
<releaseProfiles>docs,assembly,release-sign-artifacts</releaseProfiles>
</configuration>
</plugin>
<plugin>
@ -499,7 +500,6 @@
<skipLongRunningTests>false</skipLongRunningTests>
</properties>
</profile>
<profile>
<id>performance</id>
<properties>
@ -527,10 +527,15 @@
</configuration>
<executions>
<execution>
<id>build-aggregate</id>
<phase>package</phase>
<id>attach-javadocs</id>
<goals>
<goal>aggregate</goal>
<goal>jar</goal>
</goals>
</execution>
<execution>
<id>attach-test-javadocs</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
@ -564,27 +569,5 @@
</plugins>
</build>
</profile>
<profile>
<id>checkstyle</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>checkstyle</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>