Skip to content

Commit 56cdd8b

Browse files
committed
Move javadoc:jar and source:jar to the release profile.
* Only need to be generated when cutting a release or deploying a -SNAPSHOT remotely * In those remote deploy situations -Pjunit-release will be active anyway * Moving them out of the main build speeds up development for all
1 parent a813a86 commit 56cdd8b

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

pom.xml

+24-18
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,6 @@
212212
-->
213213
<artifactId>maven-source-plugin</artifactId>
214214
<version>2.2</version>
215-
<executions>
216-
<execution>
217-
<id>attach-sources</id>
218-
<phase>prepare-package</phase>
219-
<goals>
220-
<goal>jar-no-fork</goal>
221-
</goals>
222-
</execution>
223-
</executions>
224215
</plugin>
225216
<plugin>
226217
<!--
@@ -259,15 +250,6 @@
259250
<dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude>
260251
</dependencySourceIncludes>
261252
</configuration>
262-
<executions>
263-
<execution>
264-
<id>attach-javadoc</id>
265-
<phase>package</phase>
266-
<goals>
267-
<goal>jar</goal>
268-
</goals>
269-
</execution>
270-
</executions>
271253
</plugin>
272254
<plugin>
273255
<artifactId>maven-release-plugin</artifactId>
@@ -310,6 +292,30 @@
310292
</execution>
311293
</executions>
312294
</plugin>
295+
<plugin>
296+
<artifactId>maven-source-plugin</artifactId>
297+
<executions>
298+
<execution>
299+
<id>attach-sources</id>
300+
<phase>prepare-package</phase>
301+
<goals>
302+
<goal>jar-no-fork</goal>
303+
</goals>
304+
</execution>
305+
</executions>
306+
</plugin>
307+
<plugin>
308+
<artifactId>maven-javadoc-plugin</artifactId>
309+
<executions>
310+
<execution>
311+
<id>attach-javadoc</id>
312+
<phase>package</phase>
313+
<goals>
314+
<goal>jar</goal>
315+
</goals>
316+
</execution>
317+
</executions>
318+
</plugin>
313319
</plugins>
314320
</build>
315321
</profile>

0 commit comments

Comments
 (0)