*Hi,* What do you mean? You'd like that the target directory doesn't contain bad dependency version? If so, then couldn't you just add the "clean" option before your goal? (mvn clean).
*Cheers.* 2010/2/11 eyal edri <[email protected]> > I'm trying to installer an older version of my project (to check rollback > option), > > how can i tell maven to remove the new versions installed and replace with > older one? > > the other way works perfect. > > > my pom: > > <plugin> > <!-- copy artifact target to classpath --> > <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> > <type>${project.packaging}</type> > <overWrite>true</overWrite> > <outputDirectory>${classpath}</outputDirectory> > </artifactItem> > </artifactItems> > </configuration> > </execution> > <!-- copy artifact dependencies to classpath --> > <execution> > <id>copy-dependencies</id> > <phase>install</phase> > <goals> > <goal>copy-dependencies</goal> > </goals> > <configuration> > <outputDirectory>${classpath}</outputDirectory> > <overWriteReleases>true</overWriteReleases> > <overWriteSnapshots>true</overWriteSnapshots> > <overWriteIfNewer>true</overWriteIfNewer> > <stripVersion>false</stripVersion> > </configuration> > </execution> > </executions> > </plugin> > > -- > Eyal Edri > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
