Hi Boris,
Boris Valkov wrote on Friday, March 23, 2007 12:54 PM:
> 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.
well, the standard way in Maven is to use a separate jar for the sources,
simply add the sources plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
This will create a -sources.jar artifact.
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]