[ 
http://jira.codehaus.org/browse/MNG-3295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brett Porter closed MNG-3295.
-----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 2.0.9

> Cannot use offline (-o) if a <parent> is declared
> -------------------------------------------------
>
>                 Key: MNG-3295
>                 URL: http://jira.codehaus.org/browse/MNG-3295
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.7
>            Reporter: Matt Read
>             Fix For: 2.0.9
>
>
> Create a simple project:
> mvn archetype:create -DgroupId=test -DartifactId=offline_parent_test 
> -DarchetypeArtifactId=maven-archetype-quickstart
> edit the pom.xml and add a parent entry that you know exists in your local 
> repository, e.g. 
>       <parent>
>               <groupId>com.test</groupId>
>               <artifactId>MyParent</artifactId>
>               <version>1.0-SNAPSHOT</version>
>       </parent>
> run 
> mvn -o install
> produces the following error:
> [INFO]
> NOTE: Maven is executing in offline mode. Any artifacts not already in your 
> local
> repository will be inaccessible.
> [INFO] Scanning for projects...
> [INFO] snapshot com.test:MyParent:1.0-SNAPSHOT: checking for updates from 
> maven.catlin.com.repo.snapshots
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: com.test
> ArtifactId: MyParent
> Version: 1.0-SNAPSHOT
> Reason: System is offline.
>   com.test:MyParent:pom:1.0-SNAPSHOT
> NOTE: Maven is executing in offline mode. Any artifacts not already in your 
> local
> repository will be inaccessible.

-- 
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

        

Reply via email to