You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/10/05 18:32:11 UTC
[jira] Commented: (MNG-1049) offline mode fails on missing POMs
[ http://jira.codehaus.org/browse/MNG-1049?page=comments#action_47881 ]
John Casey commented on MNG-1049:
---------------------------------
the behavior of creating a dummy POM was dependent on the artifact resolution process throwing an ArtifactResolutionException, which doesn't happen when in offline mode (it's a pretty intrusive way to go, since the user told m2 that it was offline already). So, I changed the DefaultMavenProjectBuilder to ensure that the resolved artifact's file exists before trying to build it...if it doesn't, create a dummy model. If the resolution process fails with an ARE, create a dummy model.
I tested this with it1017, by adding a CLI option of '-o'.
I will commit this when SVN comes back online.
> offline mode fails on missing POMs
> ----------------------------------
>
> Key: MNG-1049
> URL: http://jira.codehaus.org/browse/MNG-1049
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Reporter: Brett Porter
> Assignee: John Casey
> Fix For: 2.0-beta-4
>
> Original Estimate: 3 hours
> Remaining: 3 hours
>
> in offline mode, the build fails if a pom file is missing in the local repository. However, online, Maven accepts missing poms in the remote repo using a default.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org