Oh, I see. Well, the assembly plugin has a pre-defined assembly named
"project" (at least in the newest version). If you're using an older version
create your own assembly like the following:

http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#project

Eric

On 3/23/07, Giuseppe Greco <[EMAIL PROTECTED]> wrote:

That works, but I haven't solved my problem... I get a separate
source archive for each module, while I'd like an unique top-level
source archive that contains the whole project - for instance,
the source archive should be a 1:1 image of my local multi-module
project.

j3d.

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


----------------------------------------
Giuseppe Greco
Via Carà 26
6928 Manno (TI)
Switzerland

call giuseppe.greco via Skype
phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 590 33 06
email:  [EMAIL PROTECTED]
----------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to