if we run mvn:site all works fine but if we try to just run the plugin mvn net.sf:stat-scm:1.0-SNAPSHOT:stats, we have an exception :
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java :63)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java :458)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
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:585)
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)
it is normal ?
It's interesting to just run the plugin when we want to check if all is going well without to generate all the site (very long).
Logged In: YES
user_id=571874
Originator: NO
Thanks for the report. I will get this to run as you suggest.
Logged In: YES
user_id=571874
Originator: NO
It is normal that this Error is thrown.
I can fix this by protecting against the null pointer, but what should the plug-in do if called directly? In a new version it will update the xdoc files but I need the site plug-in to render the xdoc files to html. I presume you want a new set of html files in the target/site/statscm folder? I will look into how this can be done but I would appreciate you feedback.
Thanks,
Doug
Logged In: YES
user_id=1650748
Originator: YES
I think it is interesting to be able to can execute just the plugin in order to check that the output is what I am waiting for without to generate all the site (very long).
So, it would be nice to have (at least) a simple report (xdoc files, logs...).
But If you could generate a new set of html files in the target/site/statscm folder it would be the best !
Thanks,
Rémy
Logged In: YES
user_id=571874
Originator: NO
What I will do is use StatSVN and StatCVS to generate HTML directly in the target/site/statscm folder (or shold this go somewhere else?). This means you have the option to generate a HTML report by using the direct call to the plugin and without running the site command.
This is a TODO.
Any news on this one? I'm having the same issues: "mvn site" at top-level takes real long (and doesn't make much sense); I'd like to just run stat-scm at this level.
Last comment in this thread is more than 3 years old. Is there still active development going on?
Not very active development. Kind of works for me but multi-module projects and the staging thing do not seam to work consistently. I think i remember this having to do with difficulties getting the base-dir for the project during the different life cycle stages of the build, or something like that. Use stat-svn or stat-cvs directly if that is all you want or explain to me why this is a problem and I may look at it again.
nobody 2010-05-25 13:37:20 is Doug Culnane