Skip to content

Commit a8e6b81

Browse files
authored
Always build source jar (#1037)
There was a regression introduced when building the source jar during releases when the maven-release-plugin was upgraded. To simplify things, and avoid that in the future, I changed the build to alwas package the source jar. Fixes #1036
1 parent 5cd053f commit a8e6b81

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,27 @@
294294
<artifactId>maven-javadoc-plugin</artifactId>
295295
<executions>
296296
<execution>
297+
<id>attach-javadocs</id>
297298
<phase>package</phase>
298299
<goals>
299300
<goal>jar</goal>
300301
</goals>
301302
</execution>
302303
</executions>
303304
</plugin>
305+
<plugin>
306+
<groupId>org.apache.maven.plugins</groupId>
307+
<artifactId>maven-source-plugin</artifactId>
308+
<executions>
309+
<execution>
310+
<id>attach-sources</id>
311+
<phase>package</phase>
312+
<goals>
313+
<goal>jar-no-fork</goal>
314+
</goals>
315+
</execution>
316+
</executions>
317+
</plugin>
304318
<plugin>
305319
<groupId>com.mycila</groupId>
306320
<artifactId>license-maven-plugin</artifactId>
@@ -721,6 +735,7 @@
721735
<id>fast</id>
722736
<properties>
723737
<maven.javadoc.skip>true</maven.javadoc.skip>
738+
<maven.source.skip>true</maven.source.skip>
724739
<license.skip>true</license.skip>
725740
<checkstyle.skip>true</checkstyle.skip>
726741
</properties>

0 commit comments

Comments
 (0)