You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yan Huang (JIRA)" <ji...@codehaus.org> on 2008/04/21 19:48:55 UTC

[jira] Created: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

"Nested imports" doesn't work on Maven 2.0.9
--------------------------------------------

                 Key: MNG-3537
                 URL: http://jira.codehaus.org/browse/MNG-3537
             Project: Maven 2
          Issue Type: Bug
          Components: Artifacts and Repositories
    Affects Versions: 2.0.9
            Reporter: Yan Huang
         Attachments: sample.zip

The "nested imports" doesn't work on Maven 2.0.9. 

When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.

Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.

>mvn help:effective-pom
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: test-nested-import
ArtifactId: sample-pom-1
Version: 1.0.0.0

Reason: Unable to download the artifact from any repository

  test-nested-import:sample-pom-1:pom:1.0.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
to download the artifact from any repository

  test-nested-import:sample-pom-1:pom:1.0.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 for project test-nested-import:sample-pom-1
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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: POM 'test-nested-import:sample-pom-1' not found in reposit
ory: Unable to download the artifact from any repository

  test-nested-import:sample-pom-1:pom:1.0.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 for project test-nested-import:sample-pom-1
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
03)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
        at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
1438)
        at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
        at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
1438)
        at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
va:506)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
        ... 11 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
tory



-- 
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] Commented: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Yan Huang (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138437#action_138437 ] 

Yan Huang commented on MNG-3537:
--------------------------------

It's a bug with the new feature in 2.0.9. That attachment can reproduce this bug.

> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.0.x
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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] Commented: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Guimiot Isabelle (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171278#action_171278 ] 

Guimiot Isabelle commented on MNG-3537:
---------------------------------------

I just encountered this problem a few days ago on maven 2.0.9 ... I've downloaded maven 2.1.0 but this issue still remains :(

In my case, it's a critical bug, and it would be great if you could fix it as soon as possible.

Thanks !

> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.1.x
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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] Commented: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215945#action_215945 ] 

Paul Gier commented on MNG-3537:
--------------------------------

The issue seems to be fixed in Maven 3.  I tested with Maven 3-alpha-6.

> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.2.x (to be reviewed)
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3537:
------------------------------

    Fix Version/s: 2.0.x

> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.0.x
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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] Commented: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Guimiot Isabelle (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182669#action_182669 ] 

Guimiot Isabelle commented on MNG-3537:
---------------------------------------

unresolved in maven 2.2.0 .

> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.2.x
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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] Commented: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Guimiot Isabelle (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215952#action_215952 ] 

Guimiot Isabelle commented on MNG-3537:
---------------------------------------

It's a very good think that it has been fixed in maven 3 alpha, but it would be far better if someone could also fix it in a future 2.x version. Maven 3 is only in alpha version, and in my case, it's not reliable enough, I cannot migrate to maven 3 right now...

The current sample has been added by the reporter. If you need another example (without any password ;-) ), I can provide one, just ask me !


> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.2.x (to be reviewed)
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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] Commented: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215943#action_215943 ] 

John Casey commented on MNG-3537:
---------------------------------

the sample project is password-protected. nice.

> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.2.x (to be reviewed)
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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] Issue Comment Edited: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Guimiot Isabelle (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215952#action_215952 ] 

Guimiot Isabelle edited comment on MNG-3537 at 3/29/10 10:36 AM:
-----------------------------------------------------------------

It's a very good thing that it has been fixed in maven 3 alpha, but it would be far better if someone could also fix it in a future 2.x version. Maven 3 is only in alpha version, and in my case, it's not reliable enough, I cannot migrate to maven 3 right now...

The current sample has been added by the reporter. If you need another example (without any password ;-) ), I can provide one, just ask me !


      was (Author: iguimiot):
    It's a very good think that it has been fixed in maven 3 alpha, but it would be far better if someone could also fix it in a future 2.x version. Maven 3 is only in alpha version, and in my case, it's not reliable enough, I cannot migrate to maven 3 right now...

The current sample has been added by the reporter. If you need another example (without any password ;-) ), I can provide one, just ask me !

  
> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.2.x (to be reviewed)
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

-- 
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] Commented: (MNG-3537) "Nested imports" doesn't work on Maven 2.0.9

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138431#action_138431 ] 

Brett Porter commented on MNG-3537:
-----------------------------------

is this a regression, or a problem with the new feature in 2.0.9?

> "Nested imports" doesn't work on Maven 2.0.9
> --------------------------------------------
>
>                 Key: MNG-3537
>                 URL: http://jira.codehaus.org/browse/MNG-3537
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Yan Huang
>             Fix For: 2.0.x
>
>         Attachments: sample.zip
>
>
> The "nested imports" doesn't work on Maven 2.0.9. 
> When trying to resolve "nested imports", Maven 2.0.9 kind of "forget" about the repositories that are defined in settings.xml and only tries to look up some of artifacts in "central" repository.
> Here attaches the sample. The steps to produce this bug under Maven 2.0.9:
> 1. unzip this zip and it'll create a folder called "sample". There are 5 POM files under there. 
> 2. deploy all sample*.xml to a Maven 2 repository by using "deploy:deploy-file". 
> 3. run "mvn help:effective-pom" and it will fail. The sample/pom.xml imports "sample-1.0.0.0" POM which in turn imports all other sample-pom-[1-3] artifacts. The error messages are as belows. It's trying to look up artifacts ONLY in central repository.
> >mvn help:effective-pom
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/test-nested-import/sample-pom-1/1.0.0.0/sample-pom-1-1.0.0.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: test-nested-import
> ArtifactId: sample-pom-1
> Version: 1.0.0.0
> Reason: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'test-nested-import:sample-pom-1' not found in repository: Unable
> to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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: POM 'test-nested-import:sample-pom-1' not found in reposit
> ory: Unable to download the artifact from any repository
>   test-nested-import:sample-pom-1:pom:1.0.0.0
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project test-nested-import:sample-pom-1
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
> 03)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:
> 1438)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
> va:506)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
> tory

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