You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2006/02/13 01:58:47 UTC

[jira] Created: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
----------------------------------------------------------------------------------------------------------------

         Key: MNG-2068
         URL: http://jira.codehaus.org/browse/MNG-2068
     Project: Maven 2
        Type: Bug

  Components: Inheritence and Interpolation  
    Versions: 2.0.2    
    Reporter: Brian Fox
    Priority: Critical
 Attachments: sample.zip

I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml

In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.

Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.

See below for the output when the groups are different (fails) and when they are the same (works)

Failing output:
E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
gs\brianf\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
2\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
: null:sample-jar:jar:null
[DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
ecification in null:sample-parent2:pom:null:
  Specified: sample-project.sub:sample-parent::SNAPSHOT
  Found:     sample-project:sample-parent:pom:SNAPSHOT
[DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
t2:pom:null
[DEBUG] Skipping disabled repository central
[DEBUG] sample-parent: using locally installed snapshot
[DEBUG] Trying repository sv1-int
Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
[WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
.com:9998/repository)
[DEBUG] Trying repository Maven Snapshots
Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
ts.maven.codehaus.org/maven2/)
[DEBUG] Skipping disabled repository central
[INFO] -------------------------------------------------------------------------
---
[ERROR] FATAL ERROR
[INFO] -------------------------------------------------------------------------
---
[INFO] Failed to resolve artifact.

GroupId: sample-project.sub
ArtifactId: sample-parent
Version: SNAPSHOT

Reason: Unable to download the artifact from any repository

  sample-project.sub:sample-parent:pom:SNAPSHOT

OUTPUT WITHOUT .sub:
E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
gs\brianf\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
2\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
: null:sample-jar:jar:null
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
: null:sample-parent2:pom:null
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [compile]
[INFO] -------------------------------------------------------------------------
---
[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour



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


[jira] Commented: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2068?page=comments#action_58508 ] 

Brian Fox commented on MNG-2068:
--------------------------------

No, it still fails. You must build from "sample-project2" to see this problem. If you build from the root or from sample-jar it works fine. The trouble is when you are at an intermediate parent and try to build, it won't find it's own parent.

> Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2068
>          URL: http://jira.codehaus.org/browse/MNG-2068
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.2
>     Reporter: Brian Fox
>     Priority: Critical
>  Attachments: good-sample.zip, sample.zip
>
>
> I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml
> In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.
> Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.
> See below for the output when the groups are different (fails) and when they are the same (works)
> Failing output:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
> ecification in null:sample-parent2:pom:null:
>   Specified: sample-project.sub:sample-parent::SNAPSHOT
>   Found:     sample-project:sample-parent:pom:SNAPSHOT
> [DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
> t2:pom:null
> [DEBUG] Skipping disabled repository central
> [DEBUG] sample-parent: using locally installed snapshot
> [DEBUG] Trying repository sv1-int
> Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
> e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
> .com:9998/repository)
> [DEBUG] Trying repository Maven Snapshots
> Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
> le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
> ts.maven.codehaus.org/maven2/)
> [DEBUG] Skipping disabled repository central
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: sample-project.sub
> ArtifactId: sample-parent
> Version: SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   sample-project.sub:sample-parent:pom:SNAPSHOT
> OUTPUT WITHOUT .sub:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-parent2:pom:null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour

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


[jira] Closed: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2068?page=all ]
     
John Casey closed MNG-2068:
---------------------------

    Resolution: Fixed

confirmed fixed by Brian Fox...I added a variant of good-sample.zip as it0097.

> Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2068
>          URL: http://jira.codehaus.org/browse/MNG-2068
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.2
>     Reporter: Brian Fox
>     Priority: Critical
>  Attachments: good-sample.zip, sample.zip
>
>
> I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml
> In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.
> Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.
> See below for the output when the groups are different (fails) and when they are the same (works)
> Failing output:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
> ecification in null:sample-parent2:pom:null:
>   Specified: sample-project.sub:sample-parent::SNAPSHOT
>   Found:     sample-project:sample-parent:pom:SNAPSHOT
> [DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
> t2:pom:null
> [DEBUG] Skipping disabled repository central
> [DEBUG] sample-parent: using locally installed snapshot
> [DEBUG] Trying repository sv1-int
> Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
> e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
> .com:9998/repository)
> [DEBUG] Trying repository Maven Snapshots
> Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
> le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
> ts.maven.codehaus.org/maven2/)
> [DEBUG] Skipping disabled repository central
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: sample-project.sub
> ArtifactId: sample-parent
> Version: SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   sample-project.sub:sample-parent:pom:SNAPSHOT
> OUTPUT WITHOUT .sub:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-parent2:pom:null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour

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


[jira] Updated: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2068?page=all ]

Brian Fox updated MNG-2068:
---------------------------

    Attachment: good-sample.zip

> Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2068
>          URL: http://jira.codehaus.org/browse/MNG-2068
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.2
>     Reporter: Brian Fox
>     Priority: Critical
>  Attachments: good-sample.zip, sample.zip
>
>
> I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml
> In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.
> Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.
> See below for the output when the groups are different (fails) and when they are the same (works)
> Failing output:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
> ecification in null:sample-parent2:pom:null:
>   Specified: sample-project.sub:sample-parent::SNAPSHOT
>   Found:     sample-project:sample-parent:pom:SNAPSHOT
> [DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
> t2:pom:null
> [DEBUG] Skipping disabled repository central
> [DEBUG] sample-parent: using locally installed snapshot
> [DEBUG] Trying repository sv1-int
> Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
> e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
> .com:9998/repository)
> [DEBUG] Trying repository Maven Snapshots
> Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
> le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
> ts.maven.codehaus.org/maven2/)
> [DEBUG] Skipping disabled repository central
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: sample-project.sub
> ArtifactId: sample-parent
> Version: SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   sample-project.sub:sample-parent:pom:SNAPSHOT
> OUTPUT WITHOUT .sub:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-parent2:pom:null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour

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


[jira] Commented: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Posted by "Grzegorz Slowikowski (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2068?page=comments#action_58488 ] 

Grzegorz Slowikowski commented on MNG-2068:
-------------------------------------------

Add:

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

to pom.xml and good-example will work.
I use Maven 2.0.2

> Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2068
>          URL: http://jira.codehaus.org/browse/MNG-2068
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.2
>     Reporter: Brian Fox
>     Priority: Critical
>  Attachments: good-sample.zip, sample.zip
>
>
> I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml
> In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.
> Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.
> See below for the output when the groups are different (fails) and when they are the same (works)
> Failing output:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
> ecification in null:sample-parent2:pom:null:
>   Specified: sample-project.sub:sample-parent::SNAPSHOT
>   Found:     sample-project:sample-parent:pom:SNAPSHOT
> [DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
> t2:pom:null
> [DEBUG] Skipping disabled repository central
> [DEBUG] sample-parent: using locally installed snapshot
> [DEBUG] Trying repository sv1-int
> Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
> e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
> .com:9998/repository)
> [DEBUG] Trying repository Maven Snapshots
> Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
> le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
> ts.maven.codehaus.org/maven2/)
> [DEBUG] Skipping disabled repository central
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: sample-project.sub
> ArtifactId: sample-parent
> Version: SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   sample-project.sub:sample-parent:pom:SNAPSHOT
> OUTPUT WITHOUT .sub:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-parent2:pom:null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour

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


[jira] Commented: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2068?page=comments#action_58468 ] 

Brian Fox commented on MNG-2068:
--------------------------------

Note: Sample attached above is incorrect. I'm still verifying if I can reproduce my real problem in a sample. I'll update the attachment or close the issue.

> Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2068
>          URL: http://jira.codehaus.org/browse/MNG-2068
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.2
>     Reporter: Brian Fox
>     Priority: Critical
>  Attachments: sample.zip
>
>
> I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml
> In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.
> Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.
> See below for the output when the groups are different (fails) and when they are the same (works)
> Failing output:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
> ecification in null:sample-parent2:pom:null:
>   Specified: sample-project.sub:sample-parent::SNAPSHOT
>   Found:     sample-project:sample-parent:pom:SNAPSHOT
> [DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
> t2:pom:null
> [DEBUG] Skipping disabled repository central
> [DEBUG] sample-parent: using locally installed snapshot
> [DEBUG] Trying repository sv1-int
> Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
> e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
> .com:9998/repository)
> [DEBUG] Trying repository Maven Snapshots
> Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
> le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
> ts.maven.codehaus.org/maven2/)
> [DEBUG] Skipping disabled repository central
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: sample-project.sub
> ArtifactId: sample-parent
> Version: SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   sample-project.sub:sample-parent:pom:SNAPSHOT
> OUTPUT WITHOUT .sub:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-parent2:pom:null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour

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


[jira] Commented: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2068?page=comments#action_59434 ] 

Brian Fox commented on MNG-2068:
--------------------------------

This seems to be fixed in 2.0.3. Should update the fixed in version so it shows up in the jira report. Would be nice to have an it test for this to keep it from coming back.

> Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2068
>          URL: http://jira.codehaus.org/browse/MNG-2068
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.2
>     Reporter: Brian Fox
>     Priority: Critical
>  Attachments: good-sample.zip, sample.zip
>
>
> I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml
> In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.
> Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.
> See below for the output when the groups are different (fails) and when they are the same (works)
> Failing output:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
> ecification in null:sample-parent2:pom:null:
>   Specified: sample-project.sub:sample-parent::SNAPSHOT
>   Found:     sample-project:sample-parent:pom:SNAPSHOT
> [DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
> t2:pom:null
> [DEBUG] Skipping disabled repository central
> [DEBUG] sample-parent: using locally installed snapshot
> [DEBUG] Trying repository sv1-int
> Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
> e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
> .com:9998/repository)
> [DEBUG] Trying repository Maven Snapshots
> Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
> le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
> ts.maven.codehaus.org/maven2/)
> [DEBUG] Skipping disabled repository central
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: sample-project.sub
> ArtifactId: sample-parent
> Version: SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   sample-project.sub:sample-parent:pom:SNAPSHOT
> OUTPUT WITHOUT .sub:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-parent2:pom:null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour

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


[jira] Updated: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2068?page=all ]

John Casey updated MNG-2068:
----------------------------

      Assign To: John Casey
    Fix Version: 2.0.3

> Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2068
>          URL: http://jira.codehaus.org/browse/MNG-2068
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.2
>     Reporter: Brian Fox
>     Assignee: John Casey
>     Priority: Critical
>      Fix For: 2.0.3
>  Attachments: good-sample.zip, sample.zip
>
>
> I have a project that inherits from 2 (or more) parents. If the grand parent (parent of my parent) isn't in the repository, it isn't found at ../../pom.xml
> In my sample, make sure none of the artifacts are in your repository, then go down to sample-jar and try to build from there. See it fail.
> Note: If you remove the ".sub" from the second parent's group and update the sampe-jar pom, it no longer fails and finds the grandparent.
> See below for the output when the groups are different (fails) and when they are the same (works)
> Failing output:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Invalid parent-POM referenced by relative path '../pom.xml' in parent sp
> ecification in null:sample-parent2:pom:null:
>   Specified: sample-project.sub:sample-parent::SNAPSHOT
>   Found:     sample-project:sample-parent:pom:SNAPSHOT
> [DEBUG] Retrieving parent-POM from the repository for project: null:sample-paren
> t2:pom:null
> [DEBUG] Skipping disabled repository central
> [DEBUG] sample-parent: using locally installed snapshot
> [DEBUG] Trying repository sv1-int
> Downloading: http://sv1.tus.stchome.com:9998/repository/sample-project/sub/sampl
> e-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository sv1-int (http://sv1.tus.stchome
> .com:9998/repository)
> [DEBUG] Trying repository Maven Snapshots
> Downloading: http://snapshots.maven.codehaus.org/maven2//sample-project/sub/samp
> le-parent/SNAPSHOT/sample-parent-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository Maven Snapshots (http://snapsho
> ts.maven.codehaus.org/maven2/)
> [DEBUG] Skipping disabled repository central
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: sample-project.sub
> ArtifactId: sample-parent
> Version: SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   sample-project.sub:sample-parent:pom:SNAPSHOT
> OUTPUT WITHOUT .sub:
> E:\sample\sample\sample-parent2\sample-jar>mvn -X compile
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
> gs\brianf\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\PROGRA~1\MAVEN-~1.
> 2\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-jar:jar:null
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project
> : null:sample-parent2:pom:null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resour

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