Software Development
Migrating your project to Maven 2 – Part I Lars Vonk 26 Feb, 2006
[INFO] Generate "Continuous Integration" report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate "Dependencies" report.
[INFO]
[ERROR] FATAL ERROR
[INFO]
[INFO] null
[INFO]
[INFO] Trace
java.lang.NullPointerException
at org.apache.maven.artifact.resolver.DefaultArtifactResolver
.resolve(DefaultArtifactResolver.java:82)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver
.resolve(DefaultArtifactResolver.java:63)
at org.apache.maven.project.DefaultMavenProjectBuilder
.findModelFromRepository(DefaultMavenProjectBuilder.java:386)
at org.apache.maven.project.DefaultMavenProjectBuilder
.buildFromRepository(DefaultMavenProjectBuilder.java:351)
at org.apache.maven.report.projectinfo
.DependenciesReport
DependenciesRenderer
.getMavenProjectFromRepository(DependenciesReport.java:362)
at org.apache.maven.report.projectinfo
.DependenciesReport
DependenciesRenderer
.renderBody(DependenciesReport.java:242)
Nope, not out of the box... It seems that maven site does not work, although it’s mentioned on the maven website that it should work without any adjustments.
I googled about and found the following suggested solutions: Using a snapshot version of the project-info-reports plugin as mentioned on the following link: https://www.nabble.com/-m2-Is-a-new-version-of-the-site-plugin-coming--t1095846.html, but that caused another error.
Maven said something about a default skin that did not exist. I also found a link that possibly would fix this, https://www.nabble.com/default-skin---where-do-i-get-it--t1180771.html, but that led me to the same NullPointer mentioned above.
I just wanted to conclude that site doesnot work yet in maven 2, but then I read this article on javaworld: https://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven.html were they managed to get it work. I tried the example attached to the article and that one did work indeed. The main difference between the two pom's are the relative huge amount of dependencies that I have in my pom. That's exactly the report is throwing the NullPointer according to the stacktrace. I will try to find out whats going on, and which depedency causes this NullPointer later. (But even if it is a broken dependency or whatsoever I would not expect the NullPointer...)
Let’s now focus on the individual reports that I want to use in Maven 2 and see if they are available yetReport Name | Does it work in Maven 2? |
---|---|
Jira | Not found |
Javadoc | OK |
JavaNCSS | Sandbox |
Checkstyle | OK |
PMD | OK |
FindBugs | Sandbox |
JDepend | Sandbox |
Simian | Sandbox |
JUnit | OK, its called surefire now. |
Clover | NOT OK, could not get it to work. |
Dashboard | Not found |