Using a distribution built by the assembly plugin as a dependency...

2008-04-24 Thread Michael Ransley
Hello,

In the FAQ located at:

http://maven.apache.org/plugins/maven-assembly-plugin/faq.html
It says the following:

"Can I use an artifact created by the assembly plugin as a dependency?" and
the short answer is yes but it doesn't give an example.  Does anyone have an
example of how to do this?

Thanks in advance.

Michael.


M2: Problem with checkstyle plugin.

2005-12-01 Thread Michael Ransley
Hello,

I am new to Maven and have just started playing around with it.  I have
implemented the simple project that is defined in the getting started guide
and have then also implemented the eclipse stuff.  So far so good.  I then
started adding in a checkstyle reporting task and get the following
exception generated:

---
java.lang.NullPointerException

at
org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique
(DiagnosisUtils.java:89)
at
org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose
(ErrorDiagnostics.java :132)
at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(
ErrorDiagnostics.java:104)
at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
at org.apache.maven.DefaultMaven.logFatal (DefaultMaven.java:627)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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 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)

When I take the checkstyle bit out of the pom.xml everything is fine again
so it is definately the checkstyle plugin that is causing the problem.  The
element of the pom that mentions checkstyle is below:


target/site

  
  org.apache.maven.plugins
  maven-checkstyle-plugin
  

  

Does anyone have any ideas?

Regards

Michael.