You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Walding <de...@walding.com> on 2003/02/24 13:02:31 UTC

Re: Null Pointer when running site:generate

Do you have a repository element in your project.xml?

It sounds as though you do not.



You can specifically list which reports you wish to run in the <reports> 
element of your project.xml
See maven's project.xml for a selection.

Theunis de Jongh wrote:

> Hello all,
>
> I am running the CVS HEAD version of Maven, bootstrapped today.
>
> I could not find references in recent e-mails to the following problem 
> I am experiencing.
>
> When running "maven site:generate", I receive the following error ( 
> stack trace shortened ) :
>
> === BEGIN CONSOLE OUTPUT ===
>
> maven-checkstyle-plugin:report:
>
>    [echo] Generating the Change Log...
> maven-changelog-plugin:report:
>    [echo] Generating the changelog report
>
> BUILD FAILED
> null:35:62: <attainGoal> null:54:15: <changelog:changelog> null
> com.werken.werkz.UnattainableGoalException: Unable to obtain goal 
> [site] -- null:24:42: <attainGoal> null:35:62: <attainGoal> 
> null:54:15: <changelog:changelog> null
>        at com.werken.werkz.Goal.fire(Goal.java:646)
>        at com.werken.werkz.Goal.attain(Goal.java:575)
>        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
>        at com.werken.werkz.Goal.attain(Goal.java:573)
>        at 
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:383)
>        at 
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:360)
>        at org.apache.maven.cli.App.doMain(App.java:524)
>        at org.apache.maven.cli.App.main(App.java:1080)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at com.werken.forehead.Forehead.run(Forehead.java:543)
>        at com.werken.forehead.Forehead.main(Forehead.java:573)
> org.apache.commons.jelly.JellyTagException: null:24:42: <attainGoal> 
> null:35:62: <attainGoal> null:54:15: <changelog:changelog> null
>
> === END CONSOLE OUTPUT ===
>
> Now, when I run "maven -g", I do not see changelog listed as a goal, 
> although the plugin is present in "$MAVEN_HOME/plugins".
>
> I have been receiving this error for the past week, across several 
> bootstraps from CVS.
>
> Any assistance will be most appreciated.
>
> Thanks, regards,
>



Re: Null Pointer when running site:generate

Posted by Theunis de Jongh <th...@epiuse.com>.
Ben Walding wrote:

> Do you have a repository element in your project.xml?
>
> It sounds as though you do not.

Yes, I do have one. Its format is exactly similar to maven's.

>
>
> You can specifically list which reports you wish to run in the 
> <reports> element of your project.xml
> See maven's project.xml for a selection.

Thanks. I added some reports.

I still get the same error.

It seems to me that Maven is not recognizing the goal name, for some 
reason. Surely "maven -g" should list the goal name?

Regards,

-- 

Theunis de Jongh	
EPI-USE Systems (Pty) Ltd.           "We make you shine!"
http://www.epiuse.com
mailto:theunis.de.jongh@epiuse.com
switchboard : (012) 368-8400  
direct line : (012) 368-8481
fax         : (012) 348-2709
cell        : (082) 653 1535

This message may contain information that is proprietary or confidential
and is intended only for the addressee named above.  If you are not the
addressee or authorized to receive this message for the addressee, you
may not use, copy or disclose to anyone this message or its contents.
If you have received this message in error, please notify me immediately
and permanently destroy any copies you may have.