You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Felipe Leme (JIRA)" <ji...@codehaus.org> on 2005/05/16 22:45:34 UTC

[jira] Created: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0

NPE when using maven-tasks-plugin 1.2.0
---------------------------------------

         Key: MAVEN-1606
         URL: http://jira.codehaus.org/browse/MAVEN-1606
     Project: maven
        Type: Bug
  Components: core  
    Versions: 1.1-beta-2    
    Reporter: Felipe Leme
    Priority: Blocker
 Attachments: project.xml

I was doing some tests with Maven 1.1 (from CVS) and got a nasty NPE. After debugging it, I concluded it was caused while reading the maven-tasks-plugin, which apparently has a bad <resource> tag inside its POM. But even if the problem is on the plugin's POM, maven should handle the issue better, otherwise it would be a nightmare to migrate old projects from 1.0 to 1.1
So, I'm providing a simple test case for this issue (and will try to provide a patch fixing it as well); running it raises the following exception:

$ maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT

plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer pres
ent
Cache invalidated due to out of date plugins
org.apache.maven.MavenException: Unknown error reading project
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146)
        at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
ing.java:105)
        at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
a:909)
        at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
a:878)
        at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
er.java:458)
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
658)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:486)
        at org.apache.maven.cli.App.main(App.java:1230)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
$
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
--- Nested Exception ---
java.lang.NullPointerException
        at java.io.File.<init>(File.java:180)
        at org.apache.maven.MavenUtils.makeAbsolutePath(MavenUtils.java:826)
        at org.apache.maven.project.Project.resolveDirectory(Project.java:981)
        at org.apache.maven.project.Project.resolveDirectories(Project.java:867)

        at org.apache.maven.project.Project.initialize(Project.java:547)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:125)
        at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
ing.java:105)
        at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
a:909)
        at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
a:878)
        at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
er.java:458)
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
658)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:486)
        at org.apache.maven.cli.App.main(App.java:1230)
        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 com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1606?page=all ]

Brett Porter updated MAVEN-1606:
--------------------------------

    Version:     (was: 1.1-beta-2)
             1.1-beta-1

> NPE when using maven-tasks-plugin 1.2.0
> ---------------------------------------
>
>          Key: MAVEN-1606
>          URL: http://jira.codehaus.org/browse/MAVEN-1606
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: Felipe Leme
>     Priority: Blocker
>      Fix For: 1.1-beta-1
>  Attachments: project.xml
>
>
> I was doing some tests with Maven 1.1 (from CVS) and got a nasty NPE. After debugging it, I concluded it was caused while reading the maven-tasks-plugin, which apparently has a bad <resource> tag inside its POM. But even if the problem is on the plugin's POM, maven should handle the issue better, otherwise it would be a nightmare to migrate old projects from 1.0 to 1.1
> So, I'm providing a simple test case for this issue (and will try to provide a patch fixing it as well); running it raises the following exception:
> $ maven
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT
> plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer pres
> ent
> Cache invalidated due to out of date plugins
> org.apache.maven.MavenException: Unknown error reading project
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> $
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:180)
>         at org.apache.maven.MavenUtils.makeAbsolutePath(MavenUtils.java:826)
>         at org.apache.maven.project.Project.resolveDirectory(Project.java:981)
>         at org.apache.maven.project.Project.resolveDirectories(Project.java:867)
>         at org.apache.maven.project.Project.initialize(Project.java:547)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:125)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1606?page=all ]
     
Brett Porter closed MAVEN-1606:
-------------------------------

    Resolution: Fixed

> NPE when using maven-tasks-plugin 1.2.0
> ---------------------------------------
>
>          Key: MAVEN-1606
>          URL: http://jira.codehaus.org/browse/MAVEN-1606
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-2
>     Reporter: Felipe Leme
>     Priority: Blocker
>      Fix For: 1.1-beta-1
>  Attachments: project.xml
>
>
> I was doing some tests with Maven 1.1 (from CVS) and got a nasty NPE. After debugging it, I concluded it was caused while reading the maven-tasks-plugin, which apparently has a bad <resource> tag inside its POM. But even if the problem is on the plugin's POM, maven should handle the issue better, otherwise it would be a nightmare to migrate old projects from 1.0 to 1.1
> So, I'm providing a simple test case for this issue (and will try to provide a patch fixing it as well); running it raises the following exception:
> $ maven
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT
> plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer pres
> ent
> Cache invalidated due to out of date plugins
> org.apache.maven.MavenException: Unknown error reading project
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> $
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:180)
>         at org.apache.maven.MavenUtils.makeAbsolutePath(MavenUtils.java:826)
>         at org.apache.maven.project.Project.resolveDirectory(Project.java:981)
>         at org.apache.maven.project.Project.resolveDirectories(Project.java:867)
>         at org.apache.maven.project.Project.initialize(Project.java:547)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:125)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1606?page=all ]
     
Brett Porter closed MAVEN-1606:
-------------------------------

    Resolution: Fixed

> NPE when using maven-tasks-plugin 1.2.0
> ---------------------------------------
>
>          Key: MAVEN-1606
>          URL: http://jira.codehaus.org/browse/MAVEN-1606
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: Felipe Leme
>     Priority: Blocker
>      Fix For: 1.1-beta-1
>  Attachments: project.xml
>
>
> I was doing some tests with Maven 1.1 (from CVS) and got a nasty NPE. After debugging it, I concluded it was caused while reading the maven-tasks-plugin, which apparently has a bad <resource> tag inside its POM. But even if the problem is on the plugin's POM, maven should handle the issue better, otherwise it would be a nightmare to migrate old projects from 1.0 to 1.1
> So, I'm providing a simple test case for this issue (and will try to provide a patch fixing it as well); running it raises the following exception:
> $ maven
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT
> plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer pres
> ent
> Cache invalidated due to out of date plugins
> org.apache.maven.MavenException: Unknown error reading project
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> $
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:180)
>         at org.apache.maven.MavenUtils.makeAbsolutePath(MavenUtils.java:826)
>         at org.apache.maven.project.Project.resolveDirectory(Project.java:981)
>         at org.apache.maven.project.Project.resolveDirectories(Project.java:867)
>         at org.apache.maven.project.Project.initialize(Project.java:547)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:125)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0

Posted by "Felipe Leme (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1606?page=comments#action_39143 ]
     
Felipe Leme commented on MAVEN-1606:
------------------------------------

PS: I guess the culprit is the following resource:

            <resource>
                <include>plugin.jelly</include>
                <include>plugin.properties</include>
                <include>project.properties</include>
                <include>project.xml</include>
            </resource>

It should be something like:

            <resource>
                <directory>${basedir}</directory>
                <include>plugin.jelly</include>
                <include>plugin.properties</include>
                <include>project.properties</include>
                <include>project.xml</include>
            </resource>

I know the POM is wrong, but maven shouldn't fail with a NPE. It should either:

1.Give a proper exception displaying the bad XML
2.Print a warning message and assume ${basedir} - this option would be more backward compatible.



> NPE when using maven-tasks-plugin 1.2.0
> ---------------------------------------
>
>          Key: MAVEN-1606
>          URL: http://jira.codehaus.org/browse/MAVEN-1606
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-2
>     Reporter: Felipe Leme
>     Priority: Blocker
>  Attachments: project.xml
>
>
> I was doing some tests with Maven 1.1 (from CVS) and got a nasty NPE. After debugging it, I concluded it was caused while reading the maven-tasks-plugin, which apparently has a bad <resource> tag inside its POM. But even if the problem is on the plugin's POM, maven should handle the issue better, otherwise it would be a nightmare to migrate old projects from 1.0 to 1.1
> So, I'm providing a simple test case for this issue (and will try to provide a patch fixing it as well); running it raises the following exception:
> $ maven
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT
> plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer pres
> ent
> Cache invalidated due to out of date plugins
> org.apache.maven.MavenException: Unknown error reading project
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> $
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:180)
>         at org.apache.maven.MavenUtils.makeAbsolutePath(MavenUtils.java:826)
>         at org.apache.maven.project.Project.resolveDirectory(Project.java:981)
>         at org.apache.maven.project.Project.resolveDirectories(Project.java:867)
>         at org.apache.maven.project.Project.initialize(Project.java:547)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:125)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1606?page=all ]
     
Brett Porter reopened MAVEN-1606:
---------------------------------


reopening to fix version

> NPE when using maven-tasks-plugin 1.2.0
> ---------------------------------------
>
>          Key: MAVEN-1606
>          URL: http://jira.codehaus.org/browse/MAVEN-1606
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-1
>     Reporter: Felipe Leme
>     Priority: Blocker
>      Fix For: 1.1-beta-1
>  Attachments: project.xml
>
>
> I was doing some tests with Maven 1.1 (from CVS) and got a nasty NPE. After debugging it, I concluded it was caused while reading the maven-tasks-plugin, which apparently has a bad <resource> tag inside its POM. But even if the problem is on the plugin's POM, maven should handle the issue better, otherwise it would be a nightmare to migrate old projects from 1.0 to 1.1
> So, I'm providing a simple test case for this issue (and will try to provide a patch fixing it as well); running it raises the following exception:
> $ maven
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT
> plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer pres
> ent
> Cache invalidated due to out of date plugins
> org.apache.maven.MavenException: Unknown error reading project
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> $
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:180)
>         at org.apache.maven.MavenUtils.makeAbsolutePath(MavenUtils.java:826)
>         at org.apache.maven.project.Project.resolveDirectory(Project.java:981)
>         at org.apache.maven.project.Project.resolveDirectories(Project.java:867)
>         at org.apache.maven.project.Project.initialize(Project.java:547)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:125)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1606?page=all ]

Brett Porter updated MAVEN-1606:
--------------------------------

    Fix Version: 1.1-beta-1

> NPE when using maven-tasks-plugin 1.2.0
> ---------------------------------------
>
>          Key: MAVEN-1606
>          URL: http://jira.codehaus.org/browse/MAVEN-1606
>      Project: maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-2
>     Reporter: Felipe Leme
>     Priority: Blocker
>      Fix For: 1.1-beta-1
>  Attachments: project.xml
>
>
> I was doing some tests with Maven 1.1 (from CVS) and got a nasty NPE. After debugging it, I concluded it was caused while reading the maven-tasks-plugin, which apparently has a bad <resource> tag inside its POM. But even if the problem is on the plugin's POM, maven should handle the issue better, otherwise it would be a nightmare to migrate old projects from 1.0 to 1.1
> So, I'm providing a simple test case for this issue (and will try to provide a patch fixing it as well); running it raises the following exception:
> $ maven
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT
> plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer pres
> ent
> Cache invalidated due to out of date plugins
> org.apache.maven.MavenException: Unknown error reading project
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> $
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:180)
>         at org.apache.maven.MavenUtils.makeAbsolutePath(MavenUtils.java:826)
>         at org.apache.maven.project.Project.resolveDirectory(Project.java:981)
>         at org.apache.maven.project.Project.resolveDirectories(Project.java:867)
>         at org.apache.maven.project.Project.initialize(Project.java:547)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:125)
>         at org.apache.maven.plugin.JellyScriptHousing.getProject(JellyScriptHous
> ing.java:105)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:909)
>         at org.apache.maven.plugin.PluginManager.installPlugin(PluginManager.jav
> a:878)
>         at org.apache.maven.plugin.PluginManager.processDependencies(PluginManag
> er.java:458)
>         at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 658)
>         at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1230)
>         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 com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org