Skip to content

Commit 8dff7f5

Browse files
committed
Attach source and javadoc artifacts to the package phase
1 parent b174c63 commit 8dff7f5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,23 @@
250250
</targetTests>
251251
</configuration>
252252
</plugin>
253+
<plugin>
254+
<groupId>org.apache.maven.plugins</groupId>
255+
<artifactId>maven-source-plugin</artifactId>
256+
<version>3.0.0</version>
257+
<configuration>
258+
<excludeResources>true</excludeResources>
259+
</configuration>
260+
<executions>
261+
<execution>
262+
<id>attach-sources</id>
263+
<phase>package</phase>
264+
<goals>
265+
<goal>jar-no-fork</goal>
266+
</goals>
267+
</execution>
268+
</executions>
269+
</plugin>
253270
<plugin>
254271
<groupId>org.apache.maven.plugins</groupId>
255272
<artifactId>maven-javadoc-plugin</artifactId>
@@ -318,6 +335,13 @@ ga('send', 'pageview');
318335
<goal>aggregate</goal>
319336
</goals>
320337
</execution>
338+
<execution>
339+
<id>attach-javadocs</id>
340+
<phase>package</phase>
341+
<goals>
342+
<goal>jar</goal>
343+
</goals>
344+
</execution>
321345
</executions>
322346
</plugin>
323347
<plugin>

0 commit comments

Comments
 (0)