google-code-export / maven-confluence-plugin

Automatically exported from code.google.com/p/maven-confluence-plugin
1 stars 0 forks source link

NullPointerException in ResolutionNode.addDependencies() #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I followed all the appropriate steps:
- I added the pluginManagement section defining the plugin version
- I added the plugin element to the build section and the proper
configuration for our confluence instance
- I added "org.bsc.maven" to my plugin groups
- I ran mvn confluence-reporting:confluence-summary

What is the expected output? 
Either success, or if I am doing something wrong, something describing what
I should be doing instead (not a stack trace).
What do you see instead?
[INFO] [confluence:confluence-summary]
[INFO] execute
[INFO] generate
org.apache.maven.doxia.siterenderer.sink.SiteRendererSink@1de4376
[INFO] executeReport
[WARNING] template not set! default using ...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at
org.apache.maven.artifact.resolver.ResolutionNode.addDependencies(ResolutionNode
.java:90)
        at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtif
actCollector.java:70)
        at
org.bsc.maven.reporting.ConfluenceReportMojo.resolveProject(ConfluenceReportMojo
.java:381)
        at
org.bsc.maven.reporting.ConfluenceReportMojo.executeReport(ConfluenceReportMojo.
java:294)
        at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java
:90)
        at
org.bsc.maven.reporting.ConfluenceReportMojo.generate(ConfluenceReportMojo.java:
357)
        at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:
65)
        at
org.bsc.maven.reporting.ConfluenceReportMojo.execute(ConfluenceReportMojo.java:1
85)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.ja
va:453)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(Defaul
tLifecycleExecutor.java:513)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycle
Executor.java:483)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:331)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultL
ifecycleExecutor.java:292)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExec
utor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

What version of the product are you using? On what operating system?
I'm using maven-confluence-plugin v1.1, using Maven 2.0.10 on Java 6u11.

Please provide any additional information below.

Original issue reported on code.google.com by 06jamesk...@gmail.com on 12 Jan 2010 at 3:44

GoogleCodeExporter commented 9 years ago
could you provide me your pom ?

Original comment by bartolom...@gmail.com on 12 Jan 2010 at 7:34

GoogleCodeExporter commented 9 years ago
Hi i cannot reproduce problem ....

Is it possible have your pom ?

Original comment by bartolom...@gmail.com on 14 Jan 2010 at 12:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
thx for feedback!  i hope that this plugin helps developers to write , good,  
projects documentation .

anyway ... in attach there is the pom that i use for test ... 

could you use it .... and give me feedbacks ?

thx in advance!

Note: 
====

rying to check out the source code fails every time ... could you give me more 
details?

Original comment by bartolom...@gmail.com on 23 Mar 2011 at 10:19

Attachments:

GoogleCodeExporter commented 9 years ago
Try also to add .... new repository 

        <repository>
                <id>google-project</id>
                <url>http://maven-confluence-plugin.googlecode.com/svn/mavenrepo</url>
        </repository>

as shown in  wiki [pom_template]

Original comment by bartolom...@gmail.com on 23 Mar 2011 at 10:26

GoogleCodeExporter commented 9 years ago
I deleted my comment above by mistake, thanks a lot for your answer. It works 
much better with your sample! (only tried version 1.3.2)

Original comment by matthieu...@gmail.com on 23 Mar 2011 at 11:53

GoogleCodeExporter commented 9 years ago

Original comment by bartolom...@gmail.com on 23 Mar 2011 at 3:02