You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/05/17 03:10:34 UTC
[jira] Updated: (MAVEN-1606) NPE when using maven-tasks-plugin 1.2.0
[ 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