Andy,

One way would be to move this logic into its own module (sub-project) and orchestrate build from the parent pom project. Then you can use same maven-dependency-plugin to copy artifacts to some folder.

Anyways, this is fairly out of the common Maven conventions and questions like this should be addressed to the Maven user mailing list. You will get more general Maven expertise out there.

 regards,
 Eugene


Andy Dingfelder wrote:
I have a simple question:

when I do a build, I want all my jars to be put in a distribution area

I am trying to do do this using <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
                <execution>
                        <id>copy-dependencies</id>
                        <phase>package</phase>
                        <goals>
                                <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                                <stripVersion>true</stripVersion>
                                <outputDirectory>deploy/lib</outputDirectory>
                        </configuration>
                </execution>
        </executions>
</plugin>

This seems to work partially for me.
(It copies all my dependencies to this output area.)
The only thing it it missing is the project jar itself. How can I copy this to the output area as well?

Cheers,

Ding


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to