mvn assembly:assembly -DdescriptorId=jar-with-dependencies
        +
<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-assembly-plugin</artifactId>
       <configuration>
         <archive>
           <manifest>
             <mainClass>my.package.to.my.MainClass</mainClass>
           </manifest>
         </archive>
       </configuration>
</plugin>

== exactly what I want.

Thank you very much.

-Steve More

On 8/31/06, berndq <[EMAIL PROTECTED]> wrote:
Stephen More wrote:

I guess you are looking for the assembly plugin

Here is the docu:
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html

But I do not know how up to date this is.

Recently on the dev list a staging version of new docu was
presented for review (this was helpfull for me)

"A staging site is currently available at
http://people.apache.org/~epunzalan/maven-assembly-plugin.
Thank you for taking some time to review it."

Bernd


> I am fairly new to maven2.
>
> Once the dependecies are listed, I see how maven automagically figures
> out what are the needed jars and downloads them.
>
> I can compile, test and jar my maven2 project just fine. My problem is
> that when I try to run from the SNAPSHOT, I can no longer find all the
> jars that were used during the compilation process.
>
> After a package I would like to: java -jar SNAPSHOT.jar and have it work.
>
> - Should I include all the needed jars in my SNAPSHOT.jar ? If so how.
>       or
> - Can maven echo out the classpath used during compile and test so I
> can set my classpath to the same so it will execute ?
>
>
> -Thanks
> Steve More
>
> ---------------------------------------------------------------------
> 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]



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

Reply via email to