[jira] Updated: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
[ http://jira.codehaus.org/browse/MNG-2068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Bentmann updated MNG-2068: --- Fix Version/s: (was: 2.1.0-M1) (was: 2.0.10) 2.0.7 > 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 > Issue Type: Bug > Components: Inheritance and Interpolation >Affects Versions: 2.0.4, 2.0.5, 2.0.6 >Reporter: Brian Fox >Assignee: John Casey >Priority: Critical > Fix For: 2.0.7 > > Attachments: good-sample.zip, mavenbugreport.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
[jira] Updated: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
[ http://jira.codehaus.org/browse/MNG-2068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brian Fox updated MNG-2068: --- Fix Version/s: (was: 2.0.x) 2.0.10 > 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 > Issue Type: Bug > Components: Inheritance and Interpolation >Affects Versions: 2.0.4, 2.0.5, 2.0.6 >Reporter: Brian Fox >Assignee: John Casey >Priority: Critical > Fix For: 2.0.10 > > Attachments: good-sample.zip, mavenbugreport.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
[jira] Updated: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
[ http://jira.codehaus.org/browse/MNG-2068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brian Fox updated MNG-2068: --- Affects Version/s: 2.0.5 2.0.6 Tested that this still occurs. Using the attached "mavenbugreport.zip". Make sure you haven't previously installed this. Cd into the midlevel pom (frameworks) and run mvn install: [INFO] Failed to resolve artifact. GroupId: samplegroup ArtifactId: master Version: 0.0.1 Reason: Unable to download the artifact from any repository samplegroup:master:pom:0.0.1 from the specified remote repositories: Maven Snapshots (http://people.apache.org/maven-snapshot-repository), central (http://repo1.maven.org/maven2), Codehaus Snapshots (http://snapshots.repository.codehaus.org) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: samplegroup:master for project: samplegroup:frameworks:pom:0.0 .1 at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: samplegroup:master for project: samplegroup:framew orks:pom:0.0.1 at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1264) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1281) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:749) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:537) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:512) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'samplegroup:master' not found in repository: Unable to download t he artifact from any repository samplegroup:master:pom:0.0.1 from the specified remote repositories: Maven Snapshots (http://people.apache.org/maven-snapshot-repository), central (http://repo1.maven.org/maven2), Codehaus Snapshots (http://snapshots.repository.codehaus.org) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:573) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1260) ... 19 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository samplegroup:master:pom:0.0.1 from the specified remote repositories: Maven Snapshots (http://people.apache.org/maven-snapshot-repository), central (http://repo1.maven.org/maven2), Codehaus Snapshots (http://snapshots.repository.codehaus.org) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:197) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:526) ... 20 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:324) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:185) ... 22 more If you build this from the top level, everything is fine. > Multiple inheritance fails to find "grand" parent in ../../pom.xml when the > groupIds differ (Test Case Attached)
[jira] Updated: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
[ http://jira.codehaus.org/browse/MNG-2068?page=all ] Brian Fox updated MNG-2068: --- Affects Version/s: (was: 2.0.2) 2.0.4 Fix Version/s: (was: 2.0.3) 2.0.x > 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 > Issue Type: Bug > Components: Inheritance and Interpolation >Affects Versions: 2.0.4 >Reporter: Brian Fox > Assigned To: John Casey >Priority: Critical > Fix For: 2.0.x > > Attachments: good-sample.zip, mavenbugreport.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
[jira] Updated: (MNG-2068) Multiple inheritance fails to find "grand" parent in ../../pom.xml when the groupIds differ (Test Case Attached)
[ http://jira.codehaus.org/browse/MNG-2068?page=all ] Vincenz Braun updated MNG-2068: --- Attachment: mavenbugreport.zip new test case with only 3 poms that fails with maven 2.0.4 > 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 > Issue Type: Bug > Components: Inheritance and Interpolation >Affects Versions: 2.0.2 >Reporter: Brian Fox > Assigned To: John Casey >Priority: Critical > Fix For: 2.0.3 > > Attachments: good-sample.zip, mavenbugreport.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