[ http://jira.codehaus.org/browse/MNG-3628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-3628: ----------------------------------- Fix Version/s: 2.1.0-M2 > When running offline, snapshot artifcats cannot be resolved even if they have > previously be dowloaded from a repository > ----------------------------------------------------------------------------------------------------------------------- > > Key: MNG-3628 > URL: http://jira.codehaus.org/browse/MNG-3628 > Project: Maven 2 > Issue Type: Bug > Affects Versions: 2.0.8 > Reporter: Marc Harris > Assignee: Benjamin Bentmann > Fix For: 2.0.10, 2.1.0-M2 > > Attachments: maven-offline-snapshot-problem.tar > > > When running offline, snapshot artifcats cannot be resolved even if they have > previously be dowloaded from a repository. This happens when attempting to > depend on a snapshot version of a module downloaded from a repository. If the > snapshot version of the module is built and installed locally, the problem > goes away. > I will attach two projects (in a tar file) that have minimal external > dependencies, and the debug output of trying to build. Here are the steps to > reproduce: > Environment: > Maven 2.0.8 > Linux 2.6.18 > Artifactory 1.2.5 (rev. 1154) > (this has also been reproduced by a colleague on a Windows machine). > Preliminary steps: > 1) Modify the pom files to refer to your actual repository instead of > http://localhost:8081/artifactory/jumptap-snapshots > 2) Build maven-test-project1 > 3) Upload the pom and jar for maven-test-project1 to your repository. > Steps that cause the error to happen: > 1) Delete maven-test-project1 from the local repository. > 2) Build maven-test-project2 without the offline flag (mvn install). This > build is successful (and downloads maven-test-project1 to the local > repository). > 3) Build maven-test-project2 with the offline flag (mvn -o install). This > build fails, unable to resolve the maven-test-project1 artifact. > Steps that cause the error not to happen > 1) Build maven-test-project1 locally. This build is successful. > 2) Build maven-test-project2 without the offline flag (mvn install). This > build is successful. > 3) Build maven-test-project2 with the offline flag (mvn -o install). This > build is successful. -- 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