Thanks a lot Jo, and sorry for my question, I didn't know that it has
been asked before. Also sorry for future questions if they are not
good questions.

What I exactly wanted was to be able to include unpacked jar files in
lib dir (I needed it to create OSGi bundle.) Googling around I have
founded two ways : first using
maven-dependency-plugin:copy-dependencies  and the other is:
http://www.mail-archive.com/[email protected]/msg65534.html

I would be grateful to know when/which I should use?

Regards,
Ali

On 5/30/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:
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]
>
>


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

Reply via email to