You can also use dependency plugin :)

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
                <execution>
                        <id>copy</id>
                        <phase>install</phase>
                        <goals>
                                <goal>copy</goal>
                        </goals>
                        <configuration>
                                <artifactItems>
                                        <artifactItem>
                                                <groupId>
                                                        ${project.groupId}
                                                </groupId>
                                                <artifactId>
                                                        ${project.artifactId}
                                                </artifactId>
                                                <version>
                                                        ${project.version}
                                                </version>
                                                <overWrite>true</overWrite>
                                                <type>
                                                        ${project.packaging}
                                                </type>
                                                <destFileName>
                                                        
${artifactId}.${project.packaging}
                                                </destFileName>
                                        </artifactItem>
                                </artifactItems>
                                <outputDirectory>
                                        ${youroutput}
                                </outputDirectory>
                        </configuration>
                </execution>
        </executions>
</plugin>

Tomas Darbois
Edifixio Grenoble - Projet ScorWare
04 76 29 89 27
[EMAIL PROTECTED]
-----Message d'origine-----
De : Arnaud Vandyck [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 30 avril 2008 13:40
À : Maven Users List
Objet : Re: Copying package to a directory


Le 30-avr.-08 à 13:22, <[EMAIL PROTECTED]> a écrit :

> Is there a plugin which I can use to copy a package (jar, war ...)
> to a specified folder?  And is it also possible to provide a name
> for that folder, with a buildnumber or something like that?


maven-assembly-plugin

http://maven.apache.org/plugins/maven-assembly-plugin/

You can specify <format>dir</format> so you won't have a zip file but
the directory structure.

--
Arnaud Vandyck
[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