You can add the corresponding directory as a resource in your pom as
follows:
"
<build>
<!--Add sources to jar files-->
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/java</directory>
</resource>
<resource>
<directory>whatever/directory/you/want/</directory>
</resources>
"
This will include the source code files to the jar file that "mvn
package" generates for you.
Regards,
Ravi
-----Original Message-----
From: Boris Valkov [mailto:[EMAIL PROTECTED]
Sent: Friday, March 23, 2007 5:24 PM
To: Maven Users List
Subject: Include source files in jar
Hello,
I want to pack jar archive, but I need the *.java classes also included
into this jar.
I need this, because I want other people that use my jar project to see
the documentation of all methods ?
Not with maven assembly plugin, rather with "mvn package" and some
additional option.
Thanks in advance!
---
Sincerely
Boris Valkov
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]