You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2007/01/14 04:28:21 UTC
[jira] Commented: (MSOURCES-11) When source plugin is used, it
should make sure it is invoked during install
[ http://jira.codehaus.org/browse/MSOURCES-11?page=comments#action_84942 ]
Jason van Zyl commented on MSOURCES-11:
---------------------------------------
Using the following will get you what you want. I will update the documentation with this example.
{code:xml}
<project>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<aggregate>false</aggregate>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</build>
</project>
{code:xml}
> When source plugin is used, it should make sure it is invoked during install
> ----------------------------------------------------------------------------
>
> Key: MSOURCES-11
> URL: http://jira.codehaus.org/browse/MSOURCES-11
> Project: Maven 2.x Sources Plugin
> Issue Type: Improvement
> Reporter: Aaron Digulla
> Assigned To: Jason van Zyl
> Fix For: 2.0.3
>
>
> I have a really hard time to make the source plugin work. When I just run "mvn install", the source plugin is ignored.
> I tried to use executions (http://garbuz.com/sm/content.php/articles/maven2_deploying_sources/) but that also doesn't work reliably.
> The only stable way I found so far is:
> mvn source:jar install
> but that's tedious. Isn't it possible to configure the plugin by default in such a way that, when it is used in the POM, it will be invoked automatically during "mvn install", "mvn deploy", etc?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira