[
http://jira.codehaus.org/browse/MJAR-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy closed MJAR-72.
----------------------------
Assignee: Olivier Lamy
Resolution: Won't Fix
As explained, just add the resource in your pom :
{code:xml}
<build>
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
</resources>
....
</build>
{code}
And the sources will be included in the jar.
> Option to include source within the jar artifact
> ------------------------------------------------
>
> Key: MJAR-72
> URL: http://jira.codehaus.org/browse/MJAR-72
> Project: Maven 2.x Jar Plugin
> Issue Type: New Feature
> Environment: maven 2.0.6, jdk 1.6
> Reporter: Brill Pappin
> Assignee: Olivier Lamy
>
> I know it's fairly easy to create a separate source jar that contain the java
> source, but I've run across a case where I want to include the source along
> with the classes in the same jar.
> In this case the jars are GWT modules which use the source to compile the
> java code into javascript.
--
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