Skip to content

Commit 030510a

Browse files
author
Rafael Winterhalter
committed
Further configuration of the javadoc plugin to allow for aggregated javadocs.
1 parent f4312a0 commit 030510a

File tree

4 files changed

+47
-24
lines changed

4 files changed

+47
-24
lines changed

byte-buddy-agent/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
</configuration>
7272
<executions>
7373
<execution>
74-
<id>bundle</id>
7574
<goals>
7675
<goal>bundle</goal>
7776
</goals>

byte-buddy-dep/pom.xml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

56
<parent>
@@ -55,22 +56,43 @@
5556
<scope>test</scope>
5657
</dependency>
5758
</dependencies>
59+
5860
<build>
5961
<plugins>
62+
<!-- Define bundle plugin in order to allow for 'bundle' packaging. -->
6063
<plugin>
6164
<groupId>org.apache.felix</groupId>
6265
<artifactId>maven-bundle-plugin</artifactId>
6366
<version>${version.plugin.bundle}</version>
6467
<extensions>true</extensions>
65-
<executions>
66-
<execution>
67-
<id>bundle</id>
68-
<goals>
69-
<goal>bundle</goal>
70-
</goals>
71-
</execution>
72-
</executions>
73-
</plugin>
74-
</plugins>
75-
</build>
68+
</plugin>
69+
</plugins>
70+
</build>
71+
72+
<profiles>
73+
<profile>
74+
<id>extras</id>
75+
<activation>
76+
<activeByDefault>false</activeByDefault>
77+
</activation>
78+
<build>
79+
<plugins>
80+
<!-- Specify OSGi packaging. -->
81+
<plugin>
82+
<groupId>org.apache.felix</groupId>
83+
<artifactId>maven-bundle-plugin</artifactId>
84+
<version>${version.plugin.bundle}</version>
85+
<extensions>true</extensions>
86+
<executions>
87+
<execution>
88+
<goals>
89+
<goal>bundle</goal>
90+
</goals>
91+
</execution>
92+
</executions>
93+
</plugin>
94+
</plugins>
95+
</build>
96+
</profile>
97+
</profiles>
7698
</project>

byte-buddy/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
</configuration>
8686
<executions>
8787
<execution>
88-
<id>bundle</id>
8988
<phase>package</phase>
9089
<goals>
9190
<goal>bundle</goal>
@@ -152,7 +151,6 @@
152151
<version>${version.plugin.build-helper}</version>
153152
<executions>
154153
<execution>
155-
<id>attach-artifacts</id>
156154
<phase>package</phase>
157155
<goals>
158156
<goal>attach-artifact</goal>

pom.xml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,20 +273,24 @@
273273
<version>${version.plugin.javadoc}</version>
274274
<executions>
275275
<execution>
276-
<id>attach-javadocs</id>
276+
<id>attach-javadoc</id>
277277
<goals>
278278
<goal>jar</goal>
279279
</goals>
280280
</execution>
281281
<!-- Additionally to the regular jar file specified above, create an aggregated jar. -->
282-
<!-- This does not seem to work when activated during deployment (Shade plugin?). -->
283-
<!--<execution>-->
284-
<!--<id>aggregate-javadoc</id>-->
285-
<!--<goals>-->
286-
<!--<goal>aggregate</goal>-->
287-
<!--</goals>-->
288-
<!--<phase>package</phase>-->
289-
<!--</execution>-->
282+
<execution>
283+
<id>aggregate-javadoc</id>
284+
<goals>
285+
<goal>aggregate</goal>
286+
</goals>
287+
<phase>package</phase>
288+
<configuration>
289+
<doctitle>Byte Buddy (full API), version ${project.version}</doctitle>
290+
<!-- Fails due to repacking of ASM by the Shade plugin. -->
291+
<failOnError>false</failOnError>
292+
</configuration>
293+
</execution>
290294
</executions>
291295
<configuration>
292296
<detectJavaApiLink>true</detectJavaApiLink>

0 commit comments

Comments
 (0)