Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0-beta-1, 3.0-beta-2
-
None
Description
I'm not sure if this is really a problem with Maven 3 or a problem in the Shade plugin, but it only occurs with Maven 3 and not 2.2.1 (or 2.0.x) so I'm reporting it here.
I've attached a sample pom.xml that shows the issue. Just stick it someplace and run mvn install. It ends up with a stack trace like:
[ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf:2.3.0-SNAPSHOT, line 419, column 22
for project test:test-bundle:2.3.0-SNAPSHOT at /tmp/dependency-reduced-pom.xml
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:126)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:85)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:71)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:136)
at org.apache.maven.plugins.shade.mojo.ShadeMojo.createDependencyReducedPom(ShadeMojo.java:836)
at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:496)
... 21 more
Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for test:test-bundle:2.3.0-SNAPSHOT
[ERROR] Failed to determine Java version for profile jdk15 @ org.apache.cxf:cxf:2.3.0-SNAPSHOT, line 419, column 22
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:422)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:365)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:122)