You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Aaron Digulla (JIRA)" <ji...@codehaus.org> on 2006/11/06 17:41:37 UTC
[jira] Created: (MSOURCES-11) When source plugin is used, it should
make sure it is invoked during install
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
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
[jira] Commented: (MSOURCES-11) When source plugin is used, it
should make sure it is invoked during install
Posted by "Aaron Digulla (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-11?page=comments#action_79401 ]
Aaron Digulla commented on MSOURCES-11:
---------------------------------------
Oh, I'm using Maven 2.0.4 and the source plugin is 2.0.1.
> 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
>
> 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
[jira] Commented: (MSOURCES-11) When source plugin is used, it
should make sure it is invoked during install
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Commented: (MSOURCES-11) When source plugin is used, it
should make sure it is invoked during install
Posted by "Aaron Digulla (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-11?page=comments#action_84963 ]
Aaron Digulla commented on MSOURCES-11:
---------------------------------------
Have you tried this using a parent POM?
Ie. move this code to the parent pom and then try to build the child project. You won't get a source JAR.
Also, it would be great if the source plugin would attach itself to the package phase automatically because when I use, why would I want it to run at any other time? The default should be what most users want.
> 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
[jira] Commented: (MSOURCES-11) When source plugin is used, it
should make sure it is invoked during install
Posted by "Aaron Digulla (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-11?page=comments#action_80754 ]
Aaron Digulla commented on MSOURCES-11:
---------------------------------------
Note: The executions (see link above) only work if they are in the POM of every module of your project.
Just defining this once in the parent pom doesn't work.
> 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
>
> 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
[jira] Commented: (MSOURCES-11) When source plugin is used, it
should make sure it is invoked during install
Posted by "Christian Sauer (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104173 ]
Christian Sauer commented on MSOURCES-11:
-----------------------------------------
Hey,
may it be possible that this issue is still present in 2.0.6?
I' ve got a parent POM with following plugin config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.3</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
Building a component with a pom inheriting from the parent one, the build will still not create the source artifact!
I have to add the definition to each component for the sources jar being created ...
Any idea?
Cheers
> 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 Source Plugin
> Issue Type: Improvement
> Reporter: Aaron Digulla
> Assignee: 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
[jira] Closed: (MSOURCES-11) When source plugin is used, it should
make sure it is invoked during install
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-11?page=all ]
Jason van Zyl closed MSOURCES-11.
---------------------------------
Resolution: Fixed
This works just fine.
> 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
[jira] Updated: (MSOURCES-11) When source plugin is used, it should
make sure it is invoked during install
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-11?page=all ]
Jason van Zyl updated MSOURCES-11:
----------------------------------
Fix Version/s: 2.0.3
> 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