[ http://jira.codehaus.org/browse/MANTRUN-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Jackson reopened MANTRUN-78: ---------------------------------- I disagree that it's a duplicate. The error and the way it exhibits itself is very different from MANTRUN-51. Please run the test case I attached. The error you'll see is below. The only task in the antrun config is a simple echo command. C:\test>mvn clean -Pbuild-failure [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] test [INFO] test-b [INFO] test-a [INFO] ------------------------------------------------------------------------ [INFO] Building test [INFO] task-segment: [clean] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] test [INFO] Executed tasks [INFO] ------------------------------------------------------------------------ [INFO] Building test-b [INFO] task-segment: [clean] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] test [INFO] Executed tasks [INFO] ------------------------------------------------------------------------ [INFO] Building test-a [INFO] task-segment: [clean] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] snapshot com.example.test:test-b:1.0-SNAPSHOT: checking for updates from espn.releases [INFO] snapshot com.example.test:test-b:1.0-SNAPSHOT: checking for updates from espn.snapshots Downloading: http://maven2.corp.espn3.com/archiva/repository/releases//com/examp le/test/test-b/1.0-SNAPSHOT/test-b-1.0-SNAPSHOT.jar Downloading: http://maven2.corp.espn3.com/archiva/repository/snapshots//com/exam ple/test/test-b/1.0-SNAPSHOT/test-b-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) com.example.test:test-b:jar:1.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.example.test -DartifactId=test-b -D version=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.example.test -DartifactId=test-b -Dve rsion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepository Id=[id] Path to dependency: 1) com.example.test:test-a:jar:1.0-SNAPSHOT 2) com.example.test:test-b:jar:1.0-SNAPSHOT ---------- 1 required artifact is missing. for artifact: com.example.test:test-a:jar:1.0-SNAPSHOT from the specified remote repositories: espn.releases (http://maven2.corp.espn3.com/archiva/repository/releases/), espn.snapshots (http://maven2.corp.espn3.com/archiva/repository/snapshots/), central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6 seconds [INFO] Finished at: Thu Jul 17 15:02:43 EDT 2008 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ C:\test> > Use of AntRun causes clean to fail for multiproject > --------------------------------------------------- > > Key: MANTRUN-78 > URL: http://jira.codehaus.org/browse/MANTRUN-78 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Affects Versions: 1.1 > 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 > Assignee: Carlos Sanchez > 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