Hi all, I have a problem with the maven-antrun-plugin in a very simple multi-module setup (1 parent, 2 modules). I am binding the antrun:run goal to the "clean" phase (which seems to be quite a common setup) and run "mvn clean" in the (aggregating) parent. The builds fails, however, whenever "module1", which "module2" depends on, has not yet been installed into the local repository -- in particular after an initial checkout of the three projects.
This is quite unexpected, as the traditional "mvn clean install" works *except* for the initial build; then you have to use "mvn install". This is very confusing to my users. Is there a workaround? FWIW, here's my (almost) complete POM for "module2" (which depends on "module1"): <project ...> ... <parent> <artifactId>parent</artifactId> <groupId>org.example</groupId> <version>0.0.1-SNAPSHOT</version> <relativePath>..</relativePath> </parent> <artifactId>module2</artifactId> <name>module2</name> <dependencies> <dependency> <groupId>org.example</groupId> <artifactId>module1</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>problematic-clean</id> <phase>clean</phase> <goals><goal>run</goal></goals> <configuration> <tasks> <echo message="Performing clean"/> </tasks> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> Best wishes, Andreas Sewe --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org