[ http://jira.codehaus.org/browse/MANTRUN-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229432#action_229432 ]
Paul Gier edited comment on MANTRUN-78 at 7/21/10 1:41 PM: ----------------------------------------------------------- The problem is that the antrun plugin requires dependency resolution in order to create properties containing the paths to the dependencies. When you run "clean", the module jars are not available in the reactor and cannot be resolved. The same error can be seen by tying the antrun execution to an early phase like "validate". Unfortunately, this cannot be fixed in the antrun plugin, it would have to be fixed in Maven's dependency resolution (MNG-3283) was (Author: pgier): The problem is that the antrun plugin requires dependency resolution in order to create properties containing the paths to the dependencies. When you run "clean", the module jars are not available in the reactor and cannot be resolved. The same error can be seen by tying the antrun execution to an early phase like "validate". > Use of AntRun during clean phase fails multiproject with intermodule > dependencies > --------------------------------------------------------------------------------- > > Key: MANTRUN-78 > URL: http://jira.codehaus.org/browse/MANTRUN-78 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Affects Versions: 1.1, 1.2 > Environment: Maven version: 2.0.8 > Java version: 1.5.0_12 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > Reporter: Brian Jackson > Attachments: test.zip > > > Attaching the antrun plugin to the clean phase causes it to interfere with > local dependency resolution for sibling projects. > An example is attached. > The project consists of project 'test' with modules 'test-a' and test-b'. > 'test-a' depends on 'test-b'. > If you run "mvn clean" on the root POM, the clean succeeds. > If you run "mvn clean -Pbuild-failure" it fails. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira