You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthew Daniel (JIRA)" <ji...@codehaus.org> on 2010/09/17 16:04:33 UTC

[jira] Created: (MNG-4818) NPE in legacy.DefaultWagonManager.getArtifact

NPE in legacy.DefaultWagonManager.getArtifact
---------------------------------------------

                 Key: MNG-4818
                 URL: http://jira.codehaus.org/browse/MNG-4818
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Artifacts and Repositories
    Affects Versions: 3.0
         Environment: At revision 998131; 1.6.0_21 (32-bit); win7ent-x64
            Reporter: Matthew Daniel
         Attachments: bug.log

1. mvn archetype:create (with your favorite -DgroupId etc)
2. add some non-local dependency to the pom (I used commons-jexl:2.0.1)
3. mvn idea:idea
4. kaboom

The problem is that the Logger is declared as @Requirement but it is evidently not being provided (any path leading to a logging statement yields the NPE)

I regret that I don't know enough plexus-voodoo to even create a TestCase for this.

-- 
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-4818) NPE in legacy.DefaultWagonManager.getArtifact

Posted by "Matthew Daniel (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235759#action_235759 ] 

Matthew Daniel commented on MNG-4818:
-------------------------------------

I was using a clean build of Maven-3 out of Subversion, yes, but I will be glad to test it with 3.0-RC1 and see what happens. I'll do that tomorrow, since my work machine has all the toys on it.

> NPE in legacy.DefaultWagonManager.getArtifact
> ---------------------------------------------
>
>                 Key: MNG-4818
>                 URL: http://jira.codehaus.org/browse/MNG-4818
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0
>         Environment: At revision 998131; 1.6.0_21 (32-bit); win7ent-x64
>            Reporter: Matthew Daniel
>         Attachments: bug.log
>
>
> 1. mvn archetype:create (with your favorite -DgroupId etc)
> 2. add some non-local dependency to the pom (I used commons-jexl:2.0.1)
> 3. mvn idea:idea
> 4. kaboom
> The problem is that the Logger is declared as @Requirement but it is evidently not being provided (any path leading to a logging statement yields the NPE)
> I regret that I don't know enough plexus-voodoo to even create a TestCase for this.

-- 
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-4818) NPE in legacy.DefaultWagonManager.getArtifact

Posted by "Matthew Daniel (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235798#action_235798 ] 

Matthew Daniel commented on MNG-4818:
-------------------------------------

My sincere apologies, it appears that I left out "-DdownloadSources=true" from step 3.

The good(?) news is that yes, I experience this on 3.0-RC1 also.

Just for clarity, I'll repeat the correct reproduction steps:

1. mkdir \tmp\foo
2. cd \tmp\foo
3. mvn -DgroupId=my.group -DartifactId=myart -Dpackage=com.example.foo -Dpackaging=jar archetype:create
4. cd myart
5. edit pom.xml and add dependency (org.apache.commons:commons-jexl:2.0.1:jar) with no scope
6. rmdir /s /q %M2_LOCAL_REPO%\org\apache\commons\commons-jexl
7. mvn -e -DdownloadSources=true idea:idea


> NPE in legacy.DefaultWagonManager.getArtifact
> ---------------------------------------------
>
>                 Key: MNG-4818
>                 URL: http://jira.codehaus.org/browse/MNG-4818
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0
>         Environment: At revision 998131; 1.6.0_21 (32-bit); win7ent-x64
>            Reporter: Matthew Daniel
>         Attachments: bug.log
>
>
> 1. mvn archetype:create (with your favorite -DgroupId etc)
> 2. add some non-local dependency to the pom (I used commons-jexl:2.0.1)
> 3. mvn idea:idea
> 4. kaboom
> The problem is that the Logger is declared as @Requirement but it is evidently not being provided (any path leading to a logging statement yields the NPE)
> I regret that I don't know enough plexus-voodoo to even create a TestCase for this.

-- 
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-4818) NPE in legacy.DefaultWagonManager.getArtifact

Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235758#action_235758 ] 

Stuart McCulloch commented on MNG-4818:
---------------------------------------

I can't recreate this error with 3.0-RC1 (https://repository.apache.org/content/repositories/maven-030/org/apache/maven/apache-maven/3.0-RC1/)
Can you try to recreate it with that release? Also in your test were you using a clean snapshot build of Maven3 or did you have local changes?

> NPE in legacy.DefaultWagonManager.getArtifact
> ---------------------------------------------
>
>                 Key: MNG-4818
>                 URL: http://jira.codehaus.org/browse/MNG-4818
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0
>         Environment: At revision 998131; 1.6.0_21 (32-bit); win7ent-x64
>            Reporter: Matthew Daniel
>         Attachments: bug.log
>
>
> 1. mvn archetype:create (with your favorite -DgroupId etc)
> 2. add some non-local dependency to the pom (I used commons-jexl:2.0.1)
> 3. mvn idea:idea
> 4. kaboom
> The problem is that the Logger is declared as @Requirement but it is evidently not being provided (any path leading to a logging statement yields the NPE)
> I regret that I don't know enough plexus-voodoo to even create a TestCase for this.

-- 
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] Closed: (MNG-4818) NPE in legacy.DefaultWagonManager.getArtifact

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

Benjamin Bentmann closed MNG-4818.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
         Assignee: Benjamin Bentmann

Fixed in [r998861|http://svn.apache.org/viewvc?view=revision&revision=998861]. Actually caused by a bad component which asked for injection into clashing private fields.

> NPE in legacy.DefaultWagonManager.getArtifact
> ---------------------------------------------
>
>                 Key: MNG-4818
>                 URL: http://jira.codehaus.org/browse/MNG-4818
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0
>         Environment: At revision 998131; 1.6.0_21 (32-bit); win7ent-x64
>            Reporter: Matthew Daniel
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0
>
>         Attachments: bug.log
>
>
> 1. mvn archetype:create (with your favorite -DgroupId etc)
> 2. add some non-local dependency to the pom (I used commons-jexl:2.0.1)
> 3. mvn idea:idea
> 4. kaboom
> The problem is that the Logger is declared as @Requirement but it is evidently not being provided (any path leading to a logging statement yields the NPE)
> I regret that I don't know enough plexus-voodoo to even create a TestCase for this.

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