maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Odea Ching (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MNG-1955) null pointer exception in profile if pluginManagement section exists in pom
Date Wed, 09 Aug 2006 06:47:09 GMT
     [ http://jira.codehaus.org/browse/MNG-1955?page=all ]

Maria Odea Ching closed MNG-1955.
---------------------------------

    Resolution: Fixed

Already fixed in svn.
When I executed mvn in the attached sample pom using maven-2.0.2, the "null" exception showed
up.
But when I executed it using maven-2.0.4 and maven-2.1-SNAPSHOT, the "null" exception has
already been fixed.

> null pointer exception in profile if pluginManagement section exists in pom
> ---------------------------------------------------------------------------
>
>                 Key: MNG-1955
>                 URL: http://jira.codehaus.org/browse/MNG-1955
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.1
>         Environment: windows xp, java 1.4
>            Reporter: Chris Funk
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.5
>
>         Attachments: pom.xml
>
>          Time Spent: 3 hours
>  Remaining Estimate: 0 minutes
>
> TO TEST simply run mvn projecthelp:effective-pom -Dbark=true with the attached pom
> the attached pom appears to be legal, but complains of a null pointer exception:
> if the plugin management section is removed then the null pointer goes away and the plugins
are added as expected;
> here is the trace:
> C:\ditech\workspace\barks>mvn projecthelp:effective-pom -Dbark=true
> [INFO] Scanning for projects...
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Trace
> java.lang.NullPointerException
>         at org.apache.maven.project.injection.DefaultProfileInjector.injectPlugi
> ns(DefaultProfileInjector.java:147)
>         at org.apache.maven.project.injection.DefaultProfileInjector.injectBuild
> (DefaultProfileInjector.java:134)
>         at org.apache.maven.project.injection.DefaultProfileInjector.inject(Defa
> ultProfileInjector.java:80)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.injectActiveProfi
> les(DefaultMavenProjectBuilder.java:1037)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:838)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:594)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> le(DefaultMavenProjectBuilder.java:304)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:274)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         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)
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Jan 11 16:26:16 MST 2006
> [INFO] Final Memory: 1M/2M
> [INFO] -------------------------------------------------------------------------
> ---

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

        

Mime
View raw message