maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petar Tahchiev <>
Subject Possible bug in Maven-core
Date Mon, 13 Feb 2017 15:35:18 GMT
Hi guys,

I'm writing here to ask what I have found is a bug or not. I have a project
and I want to create an archetype out of it. So I use the following command:

mvn archetype:create-from-project

It used to work fine with maven-archetype<=2.4 but now with 3.0 it fails

Caused by: org.apache.maven.plugin.MojoFailureException: Error reading
parent POM of project: com.nemesis:bom:1.5.0.BUILD-SNAPSHOT

I started debugging and I found out that the problem is in this commit:

which migrates the plugin to Maven3.

Furthermore debugging and stacktrace analysis revealed this:

*[ERROR] Failed to determine Java version for profile doclint-java8-disable
@ org.jboss:jboss-parent:19,
line 746, column 15*
and indeed inside my parent pom.xml I have included the jboss bom like this:


which has a parent the jboss-parent.

Now if you debug further more in the maven-archetype-plugin you will see

we create a new DefaultProjectBuildingRequest and don't set any system
properties to it
so it eventually gets passed down to maven-core which cannot find
system property (because there are no properties passed) and it adds the
error that I see.

Now I have a several questions: why have we left the ProjectBuildingRequest
without system properties? Also the ProjectBuildingRequest has no
userProperties set - is this OK? I can fix the system properties with:

buildingRequest.setSystemProperties( System.getProperties() );
buildingRequest.setUserProperties( configurationProperties );

but is this correct?

Regards, Petar!
Karlovo, Bulgaria.
Public PGP Key at:
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message