[ http://jira.codehaus.org/browse/MNG-4897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4897. ---------------------------------- Resolution: Cannot Reproduce Assignee: Benjamin Bentmann bq. By the way, It's very easy to reproduce this issue with the attached simple java project. You can go to "Child2" project and run "mvn compile" to reproduce the issue. Unpacking your archive and running "mvn compile" on the {{child2}} module fails with both Maven 2.x and 3.0 due to an unresolvable dependency on {{com.abc:child1:jar:3.8.1}}. After manually fixing your example project to use the proper version 1.0-SNAPSHOT for the dependency, running "mvn compile" on child2 still fails with both Maven versions, which isn't suprising given that both {{child1}} and {{parent}} haven't been installed yet. So I run "mvn install" on the parent directory, cd back into {{child2}} and now "mvn compile" works, again with both Maven versions. -> Whatever issue you face, it's not reproducible from the given project and instructions. > Maven 3 : In Multi-Module project, one module project can not depend on > another > ------------------------------------------------------------------------------- > > Key: MNG-4897 > URL: http://jira.codehaus.org/browse/MNG-4897 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Dependencies > Affects Versions: 3.0 > Environment: Ubuntu 9.10 > Jdk 1.6 > Mavne 3.0 > Reporter: Ken Cheng > Assignee: Benjamin Bentmann > Attachments: parent.zip, parent.zip > > > Hi All, > Right now I am upgrading my project from maven2 to maven3. My project is a > multiple-module project such as > - Parent ----> It's the parent project and it only contains a pom.xml > ---- module-A ---> It is one child module > ---- module-B ---> It is another child module at the same time it depends > on module-A > This project runs well with Maven2 but after I upgrade to Maven3, I can not > build module-B. The error message such like below > [ERROR] Failed to execute goal on project child2: Could not resolve > dependencies for project com.abc:child2:jar:1.0-SNAPSHOT: Could not find > artifact com.abc:child1:jar:3.8.1 in central (http://repo1.maven.org/maven2) > -> [Help 1] > By the way, It's very easy to reproduce this issue with the attached simple > java project. You can go to "Child2" project and run "mvn compile" to > reproduce the issue. -- 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