You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Casey <jd...@commonjava.org> on 2004/03/22 18:43:46 UTC
Re: NPE when calling ant targets from maven.xml
Might be a weird legacy issue from when the ant taglib was part of the
default namespace...try using <ant:echo> instead of just <echo>
-john
On Mon, 2004-03-22 at 11:49, Algirdas P. Veitas wrote:
> We are running into an NullPointerException when trying to invoke a simple
> ant script through our maven.xml. maven.xml looks like the following:
>
>
> <project default="run-ant" xmlns:ant="jelly:ant">
> <goal name="run-ant">
> <echo>Hello Maven!</echo>
> </goal>
> </project>
>
> And the output we get from running....
>
> > maven run-ant
>
>
> ...is the following....
>
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
>
> java.lang.NullPointerException
> at org.apache.maven.plugin.PluginManager.attainGoals
> (PluginManager.java:
> 430)
> at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
> at org.apache.maven.cli.App.doMain(App.java:543)
> at org.apache.maven.cli.App.main(App.java:1109)
> 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)
> Total time: 1 seconds
> Finished at: Mon Mar 22 08:28:36 PST 2004
>
>
> Any ideas as to why this is happening?
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
John Casey
jdcasey@commonjava.org
CommonJava Open Components Project
http://www.commonjava.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: NPE when calling ant targets from maven.xml
Posted by "Algirdas P. Veitas" <av...@allesta.com>.
Mathew,
Thanks that did it....ouch.....
Al
On Mon, 22 Mar 2004 10:28:52 -0800, matthew.hawthorne wrote
> Algirdas P. Veitas wrote:
> >>>java.lang.NullPointerException
> >>> at org.apache.maven.plugin.PluginManager.attainGoals
> >>>(PluginManager.java:
> >>>430)
> >>> at org.apache.maven.MavenSession.attainGoals
> >
> > (MavenSession.java:348)
> >
> >>> at org.apache.maven.cli.App.doMain(App.java:543)
> >>> at org.apache.maven.cli.App.main(App.java:1109)
> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> Can you confirm that you have a project.xml file alongside your maven.xml?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
Open WebMail Project (http://openwebmail.org)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: NPE when calling ant targets from maven.xml
Posted by "matthew.hawthorne" <ma...@apache.org>.
Algirdas P. Veitas wrote:
>>>java.lang.NullPointerException
>>> at org.apache.maven.plugin.PluginManager.attainGoals
>>>(PluginManager.java:
>>>430)
>>> at org.apache.maven.MavenSession.attainGoals
>
> (MavenSession.java:348)
>
>>> at org.apache.maven.cli.App.doMain(App.java:543)
>>> at org.apache.maven.cli.App.main(App.java:1109)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Can you confirm that you have a project.xml file alongside your maven.xml?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: NPE when calling ant targets from maven.xml
Posted by "W. Sean Hennessy" <sh...@goldenhourdata.com>.
do you have a project.xml file?
<?xml version="1.0" encoding="UTF-8"?>
<project></project>
-----Original Message-----
From: Algirdas P. Veitas [mailto:aveitas@allesta.com]
Sent: Monday, March 22, 2004 9:58 AM
To: Maven Users List
Subject: Re: NPE when calling ant targets from maven.xml
Hi John,
Thanks for the tip, but that did not work either :(
Has anyone run into this before??
Al
On Mon, 22 Mar 2004 12:43:46 -0500, John Casey wrote
> Might be a weird legacy issue from when the ant taglib was part of
> the default namespace...try using <ant:echo> instead of just <echo>
>
> -john
>
> On Mon, 2004-03-22 at 11:49, Algirdas P. Veitas wrote:
> > We are running into an NullPointerException when trying to invoke a
simple
> > ant script through our maven.xml. maven.xml looks like the
> > following:
> >
> >
> > <project default="run-ant" xmlns:ant="jelly:ant">
> > <goal name="run-ant">
> > <echo>Hello Maven!</echo>
> > </goal>
> > </project>
> >
> > And the output we get from running....
> >
> > > maven run-ant
> >
> >
> > ...is the following....
> >
> > __ __
> > | \/ |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> > |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
> >
> > java.lang.NullPointerException
> > at org.apache.maven.plugin.PluginManager.attainGoals
> > (PluginManager.java:
> > 430)
> > at org.apache.maven.MavenSession.attainGoals
(MavenSession.java:348)
> > at org.apache.maven.cli.App.doMain(App.java:543)
> > at org.apache.maven.cli.App.main(App.java:1109)
> > 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)
> > Total time: 1 seconds
> > Finished at: Mon Mar 22 08:28:36 PST 2004
> >
> >
> > Any ideas as to why this is happening?
> >
> > --
> > Open WebMail Project (http://openwebmail.org)
> >
> >
> > --------------------------------------------------------------------
> > -
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> --
> John Casey
> jdcasey@commonjava.org
> CommonJava Open Components Project
> http://www.commonjava.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
Open WebMail Project (http://openwebmail.org)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: NPE when calling ant targets from maven.xml
Posted by "Algirdas P. Veitas" <av...@allesta.com>.
Hi John,
Thanks for the tip, but that did not work either :(
Has anyone run into this before??
Al
On Mon, 22 Mar 2004 12:43:46 -0500, John Casey wrote
> Might be a weird legacy issue from when the ant taglib was part of
> the default namespace...try using <ant:echo> instead of just <echo>
>
> -john
>
> On Mon, 2004-03-22 at 11:49, Algirdas P. Veitas wrote:
> > We are running into an NullPointerException when trying to invoke a
simple
> > ant script through our maven.xml. maven.xml looks like the following:
> >
> >
> > <project default="run-ant" xmlns:ant="jelly:ant">
> > <goal name="run-ant">
> > <echo>Hello Maven!</echo>
> > </goal>
> > </project>
> >
> > And the output we get from running....
> >
> > > maven run-ant
> >
> >
> > ...is the following....
> >
> > __ __
> > | \/ |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> > |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
> >
> > java.lang.NullPointerException
> > at org.apache.maven.plugin.PluginManager.attainGoals
> > (PluginManager.java:
> > 430)
> > at org.apache.maven.MavenSession.attainGoals
(MavenSession.java:348)
> > at org.apache.maven.cli.App.doMain(App.java:543)
> > at org.apache.maven.cli.App.main(App.java:1109)
> > 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)
> > Total time: 1 seconds
> > Finished at: Mon Mar 22 08:28:36 PST 2004
> >
> >
> > Any ideas as to why this is happening?
> >
> > --
> > Open WebMail Project (http://openwebmail.org)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> --
> John Casey
> jdcasey@commonjava.org
> CommonJava Open Components Project
> http://www.commonjava.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
Open WebMail Project (http://openwebmail.org)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org