[ 
http://jira.codehaus.org/browse/MSOURCES-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106827
 ] 

Benjamin Bentmann commented on MSOURCES-21:
-------------------------------------------

There seems to be a problem with your patch: The mojos might not see any class 
files for packaging since the mojos only depend on the "generate-source" phase 
but class files are not created until "compile" phase. However, increasing the 
lifecycle requirements of the mojos will slow down the plugin and might make it 
unattractive to many users with simpler use cases.

For the above reasons, I would not expect your patch to get included. Instead, 
I suggest you have a look at the 
[maven-assembly-plugin|http://maven.apache.org/plugins/maven-assembly-plugin/]. 
Its configuration is a bit more expensive but it can handle quite a lot of 
packaging stuff. Because it requires the "package" phase, there should be no 
problems about inclusion of compiled classes.

> Allow classes to be bundled with the source code
> ------------------------------------------------
>
>                 Key: MSOURCES-21
>                 URL: http://jira.codehaus.org/browse/MSOURCES-21
>             Project: Maven 2.x Source Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0.3
>            Reporter: Tom Schneider
>            Priority: Minor
>         Attachments: sourceplugin-includeClasses.patch
>
>
> We have the need to bundle the compiled class files with the source code and 
> other resources.  So I created a patch that adds a new configuration point 
> (includeClasses) that when set to true, will bundle not only the source code 
> and resources, but also the generated class files.

-- 
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

        

Reply via email to