Skip to content

Commit 56f57df

Browse files
committed
Create javadoc and sources jar
1 parent a11411a commit 56f57df

File tree

2 files changed

+60
-2
lines changed

2 files changed

+60
-2
lines changed

apm-agent-java/pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,25 @@
7373
</execution>
7474
</executions>
7575
</plugin>
76+
<plugin>
77+
<groupId>org.apache.maven.plugins</groupId>
78+
<artifactId>maven-javadoc-plugin</artifactId>
79+
<version>${version.maven-javadoc-plugin}</version>
80+
<executions>
81+
<execution>
82+
<goals>
83+
<goal>jar</goal>
84+
</goals>
85+
<configuration>
86+
<includeDependencySources>true</includeDependencySources>
87+
<dependencySourceIncludes>
88+
<dependencySourceInclude>${project.groupId}:apm-agent-api</dependencySourceInclude>
89+
<dependencySourceInclude>${project.groupId}:apm-agent-core</dependencySourceInclude>
90+
</dependencySourceIncludes>
91+
</configuration>
92+
</execution>
93+
</executions>
94+
</plugin>
7695
</plugins>
7796
</build>
7897

@@ -82,11 +101,26 @@
82101
<artifactId>slf4j-jdk14</artifactId>
83102
<version>${slf4j.version}</version>
84103
</dependency>
104+
<dependency>
105+
<groupId>${project.groupId}</groupId>
106+
<artifactId>apm-agent-api</artifactId>
107+
<version>${project.version}</version>
108+
</dependency>
109+
<dependency>
110+
<groupId>${project.groupId}</groupId>
111+
<artifactId>apm-agent-core</artifactId>
112+
<version>${project.version}</version>
113+
</dependency>
85114
<dependency>
86115
<groupId>${project.groupId}</groupId>
87116
<artifactId>apm-servlet-plugin</artifactId>
88117
<version>${project.version}</version>
89118
</dependency>
119+
<dependency>
120+
<groupId>${project.groupId}</groupId>
121+
<artifactId>apm-web-plugin</artifactId>
122+
<version>${project.version}</version>
123+
</dependency>
90124
<dependency>
91125
<groupId>${project.groupId}</groupId>
92126
<artifactId>apm-spring-webmvc-plugin</artifactId>

pom.xml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
But the artifacts of some projects should not be deployed (to maven central for example).
5656
-->
5757
<maven-deploy-plugin.skip>false</maven-deploy-plugin.skip>
58+
<version.maven-javadoc-plugin>3.0.0</version.maven-javadoc-plugin>
5859
</properties>
5960

6061
<modules>
@@ -214,7 +215,29 @@
214215
<plugin>
215216
<groupId>org.apache.maven.plugins</groupId>
216217
<artifactId>maven-javadoc-plugin</artifactId>
217-
<version>3.0.0</version>
218+
<version>${version.maven-javadoc-plugin}</version>
219+
<executions>
220+
<execution>
221+
<goals>
222+
<goal>jar</goal>
223+
</goals>
224+
<configuration>
225+
<doclint>none</doclint>
226+
</configuration>
227+
</execution>
228+
</executions>
229+
</plugin>
230+
<plugin>
231+
<groupId>org.apache.maven.plugins</groupId>
232+
<artifactId>maven-source-plugin</artifactId>
233+
<version>3.0.1</version>
234+
<executions>
235+
<execution>
236+
<goals>
237+
<goal>jar</goal>
238+
</goals>
239+
</execution>
240+
</executions>
218241
</plugin>
219242
<plugin>
220243
<groupId>org.codehaus.mojo</groupId>
@@ -357,7 +380,8 @@
357380
<groupId>com.google.code.findbugs</groupId>
358381
<artifactId>jsr305</artifactId>
359382
<version>3.0.2</version>
360-
<scope>compile</scope>
383+
<optional>true</optional>
384+
<scope>provided</scope>
361385
</dependency>
362386
<dependency>
363387
<groupId>org.junit.jupiter</groupId>

0 commit comments

Comments
 (0)