Replace aggregate javadoc jar with zip

This commit is contained in:
Phillip Webb 2013-12-19 10:32:20 -08:00
parent 9c21ad5528
commit ac5b8740cc
1 changed files with 23 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<relativePath>../spring-boot-parent</relativePath> <relativePath>../spring-boot-parent</relativePath>
</parent> </parent>
<artifactId>spring-boot-javadoc</artifactId> <artifactId>spring-boot-javadoc</artifactId>
<packaging>jar</packaging> <packaging>pom</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
@ -49,13 +49,34 @@
<execution> <execution>
<id>aggregate-javadocs</id> <id>aggregate-javadocs</id>
<goals> <goals>
<goal>jar</goal> <goal>aggregate-jar</goal>
</goals> </goals>
<configuration> <configuration>
<includeDependencySources>true</includeDependencySources> <includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes> <dependencySourceIncludes>
<dependencySourceInclude>${project.groupId}:*</dependencySourceInclude> <dependencySourceInclude>${project.groupId}:*</dependencySourceInclude>
</dependencySourceIncludes> </dependencySourceIncludes>
<attach>false</attach>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-javadoc-zip</id>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.name}-${project.version}-javadoc.jar</file>
<type>zip</type>
</artifact>
</artifacts>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>