This has been asked and answered at least a hundred times on this mailing
list.

The maven-assembly-plugin can do this for you.
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

It comes down to adding this to your POM's build plugins definition:

           <plugin>
               <artifactId>maven-assembly-plugin</artifactId>
               <configuration>
                   <descriptorRefs>
                       <descriptorRef>jar-with-dependencies</descriptorRef>
                   </descriptorRefs>
               </configuration>
               <executions>
                   <execution>
                       <id>make-assembly</id>
                       <phase>package</phase>
                       <goals>
                           <goal>attached</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>

Cheers
Jo

On 5/30/07, Ali Sakebi <[EMAIL PROTECTED]> wrote:

Hi

Can some one plz guide me how can I make maven to include dependencies
defined in pom.xml in output jar file???

Regards,
Ali

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


Reply via email to