maven-source-plugin and jar-no-fork

340 views
Skip to first unread message

Johannes Schneider

unread,
Oct 20, 2014, 6:42:43 AM10/20/14
to maven-jgit...@googlegroups.com
Hi guys,

I run into problems when using this configuration:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>


When doing mvn jgitflow:release-finish I get a 400 error from my nexus instance.
This happens because maven tries to upload the attached sources several times.

Might be related to multi module projects - don't know exactly.
Setting the goal to "jar" solves the issue.


Does anybody have an idea what might cause this problem?



Thanks,
Johannes

Reply all
Reply to author
Forward
0 new messages