You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gianfranco Oldani <gf...@hotmail.com> on 2006/04/26 14:49:08 UTC
Null pointer when using site goal
Hello,
I experiment a NullPointer exception when I launch : mvn site
What I missed?
Here is the content of the <reporting> section of my pom.xml if it can help.
If I remove that section the NullPointer exception disapear also and the
site is generated.
<reporting>
<outputDirectory>target/site</outputDirectory>
<plugins>
<plugin>
<groupId>jdepend</groupId>
<artifactId>jdepend</artifactId>
<version>2.9.1</version>
</plugin>
</plugins>
</reporting>
Thnaks for help.
Gianfranco OLDANI
Mob: +79602726351
_________________________________________________________________
Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic!
http://search.msn.ch/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Null pointer when using site goal
Posted by Boris Lenzinger <bo...@gmail.com>.
I use maven 2.0.2 with this jdepend:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
</plugin>
and I have no problem. May be it is a little bit old but give it a try
to check if you still have the problem with this one.
Gianfranco Oldani a écrit :
> Hello,
> I experiment a NullPointer exception when I launch : mvn site
> What I missed?
>
> Here is the content of the <reporting> section of my pom.xml if it can
> help. If I remove that section the NullPointer exception disapear also
> and the site is generated.
>
> <reporting>
> <outputDirectory>target/site</outputDirectory>
> <plugins>
> <plugin>
> <groupId>jdepend</groupId>
> <artifactId>jdepend</artifactId>
> <version>2.9.1</version>
> </plugin>
> </plugins>
> </reporting>
>
>
> Thnaks for help.
>
>
>
> Gianfranco OLDANI
> Mob: +79602726351
>
> _________________________________________________________________
> Faites de MSN Search votre page d'accueil: Toutes les réponses en un
> clic! http://search.msn.ch/
>
>
> ---------------------------------------------------------------------
> 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: Null pointer when using site goal
Posted by Tom Joad <tj...@gmail.com>.
Hello
Do you hade a system scope dependecy?
Tom.
2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> Hello,
> I experiment a NullPointer exception when I launch : mvn site
> What I missed?
>
> Here is the content of the <reporting> section of my pom.xml if it can help.
> If I remove that section the NullPointer exception disapear also and the
> site is generated.
>
> <reporting>
> <outputDirectory>target/site</outputDirectory>
> <plugins>
> <plugin>
> <groupId>jdepend</groupId>
> <artifactId>jdepend</artifactId>
> <version>2.9.1</version>
> </plugin>
> </plugins>
> </reporting>
>
>
> Thnaks for help.
>
>
>
> Gianfranco OLDANI
> Mob: +79602726351
>
> _________________________________________________________________
> Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic!
> http://search.msn.ch/
>
>
> ---------------------------------------------------------------------
> 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: Null pointer when using site goal
Posted by Wayne Fay <wa...@gmail.com>.
Your jdepend reporting node is simply not a valid JDepend Maven
report. Maven report plugins have a particular structure, method name
etc so that Maven can reach into them to create reports etc.
You need to replace your reporting jdepend plugin section what Boris sent:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
</plugin>
Wayne
On 4/26/06, Tom Joad <tj...@gmail.com> wrote:
> I have the same error by adding reporting snippet like you.
> I get Nullpointer on method
> NullPointerException
> org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
> I think that jdepend declared like this has something which is not
> considered as plugin by maven.So the nullpointer. I found on old
> threads How to download snapshot version of jdepend plugin
> Please look for it at mailing list archive (nabble)
> Silva, Vandermi Joao Da <va...@siemens.com> posted message
> and you follow threads. Date 09/02/2006 and 10/02/2006
>
> Tom.
>
>
> 2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> > Thanks, then the answer is NO I don't have such dependency
> >
> > Gianfranco OLDANI
> > Mob: +79602726351
> >
> >
> >
> > ----Original Message Follows----
> > From: "Tom Joad" <tj...@gmail.com>
> > Reply-To: "Maven Users List" <us...@maven.apache.org>
> > To: "Maven Users List" <us...@maven.apache.org>
> > Subject: Re: Null pointer when using site goal
> > Date: Wed, 26 Apr 2006 15:24:05 +0200
> >
> > Inside your pom.xml have you dependency with <scope> value system
> > like
> > ...
> > <dependencies>
> > ...
> > <dependency>
> > <groupId>sun.jdk</groupId>
> > <artifactId>tools</artifactId>
> > <version>1.5.0</version>
> > <scope>system</scope>
> > <systemPath>${java.home}/../lib/tools.jar</systemPath>
> > </dependency>
> > ...
> > </dependencies>
> >
> > I had the same problem with this type of dependency.
> >
> > Tom
> >
> > 2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> > > Sorry Tom I am rather new to maven, what do you mean by a system scope
> > > dependency ?
> > >
> > > Gianfranco OLDANI
> > > Mob: +79602726351
> > >
> > >
> > >
> > > ----Original Message Follows----
> > > From: "Tom Joad" <tj...@gmail.com>
> > > Reply-To: "Maven Users List" <us...@maven.apache.org>
> > > To: "Maven Users List" <us...@maven.apache.org>
> > > Subject: Re: Null pointer when using site goal
> > > Date: Wed, 26 Apr 2006 15:06:48 +0200
> > >
> > > If you have a system scope dependency you have to upgrade
> > > project-info report plugin to solve
> > > the problem
> > >
> > > Tom.
> > >
> > > 2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> > > > Hello,
> > > > I experiment a NullPointer exception when I launch : mvn site
> > > > What I missed?
> > > >
> > > > Here is the content of the <reporting> section of my pom.xml if it can
> > > help.
> > > > If I remove that section the NullPointer exception disapear also and
> > the
> > > > site is generated.
> > > >
> > > > <reporting>
> > > > <outputDirectory>target/site</outputDirectory>
> > > > <plugins>
> > > > <plugin>
> > > > <groupId>jdepend</groupId>
> > > > <artifactId>jdepend</artifactId>
> > > > <version>2.9.1</version>
> > > > </plugin>
> > > > </plugins>
> > > > </reporting>
> > > >
> > > >
> > > > Thnaks for help.
> > > >
> > > >
> > > >
> > > > Gianfranco OLDANI
> > > > Mob: +79602726351
> > > >
> > > > _________________________________________________________________
> > > > Faites de MSN Search votre page d'accueil: Toutes les réponses en un
> > > clic!
> > > > http://search.msn.ch/
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> > >
> > > _________________________________________________________________
> > > Faites apparaître les résultats d'après leur plus grand pertinence pour
> > > vous! http://search.msn.ch/
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> > _________________________________________________________________
> > Faites apparaître les résultats d'après leur plus grand pertinence pour
> > vous! http://search.msn.ch/
> >
> >
> > ---------------------------------------------------------------------
> > 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: Null pointer when using site goal
Posted by Tom Joad <tj...@gmail.com>.
I have the same error by adding reporting snippet like you.
I get Nullpointer on method
NullPointerException
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
I think that jdepend declared like this has something which is not
considered as plugin by maven.So the nullpointer. I found on old
threads How to download snapshot version of jdepend plugin
Please look for it at mailing list archive (nabble)
Silva, Vandermi Joao Da <va...@siemens.com> posted message
and you follow threads. Date 09/02/2006 and 10/02/2006
Tom.
2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> Thanks, then the answer is NO I don't have such dependency
>
> Gianfranco OLDANI
> Mob: +79602726351
>
>
>
> ----Original Message Follows----
> From: "Tom Joad" <tj...@gmail.com>
> Reply-To: "Maven Users List" <us...@maven.apache.org>
> To: "Maven Users List" <us...@maven.apache.org>
> Subject: Re: Null pointer when using site goal
> Date: Wed, 26 Apr 2006 15:24:05 +0200
>
> Inside your pom.xml have you dependency with <scope> value system
> like
> ...
> <dependencies>
> ...
> <dependency>
> <groupId>sun.jdk</groupId>
> <artifactId>tools</artifactId>
> <version>1.5.0</version>
> <scope>system</scope>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>
> ...
> </dependencies>
>
> I had the same problem with this type of dependency.
>
> Tom
>
> 2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> > Sorry Tom I am rather new to maven, what do you mean by a system scope
> > dependency ?
> >
> > Gianfranco OLDANI
> > Mob: +79602726351
> >
> >
> >
> > ----Original Message Follows----
> > From: "Tom Joad" <tj...@gmail.com>
> > Reply-To: "Maven Users List" <us...@maven.apache.org>
> > To: "Maven Users List" <us...@maven.apache.org>
> > Subject: Re: Null pointer when using site goal
> > Date: Wed, 26 Apr 2006 15:06:48 +0200
> >
> > If you have a system scope dependency you have to upgrade
> > project-info report plugin to solve
> > the problem
> >
> > Tom.
> >
> > 2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> > > Hello,
> > > I experiment a NullPointer exception when I launch : mvn site
> > > What I missed?
> > >
> > > Here is the content of the <reporting> section of my pom.xml if it can
> > help.
> > > If I remove that section the NullPointer exception disapear also and
> the
> > > site is generated.
> > >
> > > <reporting>
> > > <outputDirectory>target/site</outputDirectory>
> > > <plugins>
> > > <plugin>
> > > <groupId>jdepend</groupId>
> > > <artifactId>jdepend</artifactId>
> > > <version>2.9.1</version>
> > > </plugin>
> > > </plugins>
> > > </reporting>
> > >
> > >
> > > Thnaks for help.
> > >
> > >
> > >
> > > Gianfranco OLDANI
> > > Mob: +79602726351
> > >
> > > _________________________________________________________________
> > > Faites de MSN Search votre page d'accueil: Toutes les réponses en un
> > clic!
> > > http://search.msn.ch/
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> > _________________________________________________________________
> > Faites apparaître les résultats d'après leur plus grand pertinence pour
> > vous! http://search.msn.ch/
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
> _________________________________________________________________
> Faites apparaître les résultats d'après leur plus grand pertinence pour
> vous! http://search.msn.ch/
>
>
> ---------------------------------------------------------------------
> 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: Null pointer when using site goal
Posted by Gianfranco Oldani <gf...@hotmail.com>.
Thanks, then the answer is NO I don't have such dependency
Gianfranco OLDANI
Mob: +79602726351
----Original Message Follows----
From: "Tom Joad" <tj...@gmail.com>
Reply-To: "Maven Users List" <us...@maven.apache.org>
To: "Maven Users List" <us...@maven.apache.org>
Subject: Re: Null pointer when using site goal
Date: Wed, 26 Apr 2006 15:24:05 +0200
Inside your pom.xml have you dependency with <scope> value system
like
...
<dependencies>
...
<dependency>
<groupId>sun.jdk</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
...
</dependencies>
I had the same problem with this type of dependency.
Tom
2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> Sorry Tom I am rather new to maven, what do you mean by a system scope
> dependency ?
>
> Gianfranco OLDANI
> Mob: +79602726351
>
>
>
> ----Original Message Follows----
> From: "Tom Joad" <tj...@gmail.com>
> Reply-To: "Maven Users List" <us...@maven.apache.org>
> To: "Maven Users List" <us...@maven.apache.org>
> Subject: Re: Null pointer when using site goal
> Date: Wed, 26 Apr 2006 15:06:48 +0200
>
> If you have a system scope dependency you have to upgrade
> project-info report plugin to solve
> the problem
>
> Tom.
>
> 2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> > Hello,
> > I experiment a NullPointer exception when I launch : mvn site
> > What I missed?
> >
> > Here is the content of the <reporting> section of my pom.xml if it can
> help.
> > If I remove that section the NullPointer exception disapear also and
the
> > site is generated.
> >
> > <reporting>
> > <outputDirectory>target/site</outputDirectory>
> > <plugins>
> > <plugin>
> > <groupId>jdepend</groupId>
> > <artifactId>jdepend</artifactId>
> > <version>2.9.1</version>
> > </plugin>
> > </plugins>
> > </reporting>
> >
> >
> > Thnaks for help.
> >
> >
> >
> > Gianfranco OLDANI
> > Mob: +79602726351
> >
> > _________________________________________________________________
> > Faites de MSN Search votre page d'accueil: Toutes les réponses en un
> clic!
> > http://search.msn.ch/
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
> _________________________________________________________________
> Faites apparaître les résultats d'après leur plus grand pertinence pour
> vous! http://search.msn.ch/
>
>
> ---------------------------------------------------------------------
> 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
_________________________________________________________________
Faites apparaître les résultats d'après leur plus grand pertinence pour
vous! http://search.msn.ch/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Null pointer when using site goal
Posted by Tom Joad <tj...@gmail.com>.
Inside your pom.xml have you dependency with <scope> value system
like
...
<dependencies>
...
<dependency>
<groupId>sun.jdk</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
...
</dependencies>
I had the same problem with this type of dependency.
Tom
2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> Sorry Tom I am rather new to maven, what do you mean by a system scope
> dependency ?
>
> Gianfranco OLDANI
> Mob: +79602726351
>
>
>
> ----Original Message Follows----
> From: "Tom Joad" <tj...@gmail.com>
> Reply-To: "Maven Users List" <us...@maven.apache.org>
> To: "Maven Users List" <us...@maven.apache.org>
> Subject: Re: Null pointer when using site goal
> Date: Wed, 26 Apr 2006 15:06:48 +0200
>
> If you have a system scope dependency you have to upgrade
> project-info report plugin to solve
> the problem
>
> Tom.
>
> 2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> > Hello,
> > I experiment a NullPointer exception when I launch : mvn site
> > What I missed?
> >
> > Here is the content of the <reporting> section of my pom.xml if it can
> help.
> > If I remove that section the NullPointer exception disapear also and the
> > site is generated.
> >
> > <reporting>
> > <outputDirectory>target/site</outputDirectory>
> > <plugins>
> > <plugin>
> > <groupId>jdepend</groupId>
> > <artifactId>jdepend</artifactId>
> > <version>2.9.1</version>
> > </plugin>
> > </plugins>
> > </reporting>
> >
> >
> > Thnaks for help.
> >
> >
> >
> > Gianfranco OLDANI
> > Mob: +79602726351
> >
> > _________________________________________________________________
> > Faites de MSN Search votre page d'accueil: Toutes les réponses en un
> clic!
> > http://search.msn.ch/
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
> _________________________________________________________________
> Faites apparaître les résultats d'après leur plus grand pertinence pour
> vous! http://search.msn.ch/
>
>
> ---------------------------------------------------------------------
> 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: Null pointer when using site goal
Posted by Gianfranco Oldani <gf...@hotmail.com>.
Sorry Tom I am rather new to maven, what do you mean by a system scope
dependency ?
Gianfranco OLDANI
Mob: +79602726351
----Original Message Follows----
From: "Tom Joad" <tj...@gmail.com>
Reply-To: "Maven Users List" <us...@maven.apache.org>
To: "Maven Users List" <us...@maven.apache.org>
Subject: Re: Null pointer when using site goal
Date: Wed, 26 Apr 2006 15:06:48 +0200
If you have a system scope dependency you have to upgrade
project-info report plugin to solve
the problem
Tom.
2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> Hello,
> I experiment a NullPointer exception when I launch : mvn site
> What I missed?
>
> Here is the content of the <reporting> section of my pom.xml if it can
help.
> If I remove that section the NullPointer exception disapear also and the
> site is generated.
>
> <reporting>
> <outputDirectory>target/site</outputDirectory>
> <plugins>
> <plugin>
> <groupId>jdepend</groupId>
> <artifactId>jdepend</artifactId>
> <version>2.9.1</version>
> </plugin>
> </plugins>
> </reporting>
>
>
> Thnaks for help.
>
>
>
> Gianfranco OLDANI
> Mob: +79602726351
>
> _________________________________________________________________
> Faites de MSN Search votre page d'accueil: Toutes les réponses en un
clic!
> http://search.msn.ch/
>
>
> ---------------------------------------------------------------------
> 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
_________________________________________________________________
Faites apparaître les résultats d'après leur plus grand pertinence pour
vous! http://search.msn.ch/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Null pointer when using site goal
Posted by Tom Joad <tj...@gmail.com>.
If you have a system scope dependency you have to upgrade
project-info report plugin to solve
the problem
Tom.
2006/4/26, Gianfranco Oldani <gf...@hotmail.com>:
> Hello,
> I experiment a NullPointer exception when I launch : mvn site
> What I missed?
>
> Here is the content of the <reporting> section of my pom.xml if it can help.
> If I remove that section the NullPointer exception disapear also and the
> site is generated.
>
> <reporting>
> <outputDirectory>target/site</outputDirectory>
> <plugins>
> <plugin>
> <groupId>jdepend</groupId>
> <artifactId>jdepend</artifactId>
> <version>2.9.1</version>
> </plugin>
> </plugins>
> </reporting>
>
>
> Thnaks for help.
>
>
>
> Gianfranco OLDANI
> Mob: +79602726351
>
> _________________________________________________________________
> Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic!
> http://search.msn.ch/
>
>
> ---------------------------------------------------------------------
> 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