Maven says that antrun copy corresponds to "maven-resource-plugin",
(from http://maven.apache.org/plugins/maven-antrun-plugin/usage.html). Can i use the maven-resources-plugin instead? i'm already using it to copy conf & cron files: <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.4.1</version> <executions> <execution> <id>copy-conf</id> <phase>install</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>/etc/ct-urlf-increase-priority/</outputDirectory> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/*.properties</include> </includes> </resource> </resources> </configuration> </execution> <execution> i just thought it's not intended to copy jars also resources... Eyal. On Sun, Nov 22, 2009 at 4:21 PM, Sony Antony <[email protected]> wrote: > It should work with the antrun plugin ( and ant's <copy> task. ) > > ( configure an antrun plugin execution to attach to install phase ) > > --sony > > On Sun, Nov 22, 2009 at 8:43 AM, eyal edri <[email protected]> wrote: > > > I want to config the pom project to copy the final jar file to an > > installation dir and bind it to the 'install' phase. > > > > meaning, when i "just" build the project, the jar will be built into the > > default target/project.jar. > > > > but when i "install" it should be also should be copied to > > /usr/local/application/project.jar. > > > > i tried adding "<OutputDirectory> in the 'jar' plugin, but it just > changed > > the default target. > > > > -- > > Eyal Edri > > > -- Eyal Edri
