Error in maven site plugin version 3?

I am trying to get a project to launch a maven site: site goal using Maven 3.0.4. Unbeknownst to me, it worked under Maven 2.2.1 (when I thought it should be 3).

I keep getting the following crash:

Failed to execute target org.apache.maven.plugins: maven-site-plugin: 3.0: site (default-cli) in myproj-parent project: Run default-cli target org.apache.maven.plugins: maven -site-plugin : 3.0: site failed: for artifact {null: null: null: jar}: Group id cannot be empty.

How can I find that the artifact is missing, group ID?

+4
source share
2 answers

It turns out that the POM file for one of my dependencies was corrupted. The POM for joda-jsptags-1.0.2 in our Nexus repository was not a POM, but an HTML fragment.

Getting a clean version of joda-jsptags fixes this problem.

It was just frustrating not to understand what was bad. And, apparently, Maven 3 plugins are more stringent in POM analysis.

+4
source

If you are transitioning from Maven 2.2.1 to Maven 3.0.4, you should be aware of any difference, in particular regarding the creation of the site. You should have looked at the migration documents and see if you need to fix your pom.

Missing link.

0
source

All Articles