Skip to content

Commit 288e24e

Browse files
committed
pom: ensure that deploy generates javadoc and srouces jars
1 parent ac395de commit 288e24e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,39 @@
191191
</configuration>
192192
</plugin>
193193

194+
<!-- Generate Javadoc JAR -->
195+
<plugin>
196+
<groupId>org.apache.maven.plugins</groupId>
197+
<artifactId>maven-javadoc-plugin</artifactId>
198+
<version>3.11.2</version>
199+
<executions>
200+
<execution>
201+
<id>attach-javadocs</id>
202+
<goals>
203+
<goal>jar</goal>
204+
</goals>
205+
</execution>
206+
</executions>
207+
<configuration>
208+
<failOnError>false</failOnError>
209+
</configuration>
210+
</plugin>
211+
212+
<!-- Generate Sources JAR -->
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-source-plugin</artifactId>
216+
<version>3.3.1</version>
217+
<executions>
218+
<execution>
219+
<id>attach-sources</id>
220+
<goals>
221+
<goal>jar</goal>
222+
</goals>
223+
</execution>
224+
</executions>
225+
</plugin>
226+
194227
</plugins>
195228
</build>
196229

0 commit comments

Comments
 (0)