Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.7
-
None
-
None
Description
When I run the command:
mvn -Psetup.eclipse -Declipse.projectNameTemplate=[artifactId]-2.2.x
I get .project files like this one:
<projectDescription> <name>cxf-api-2.2.x</name> <comment/> <projects> <project>cxf-common-schemas</project> <project>cxf-common-utilities</project> <project>cxf-xjc-dv</project> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> </buildCommand> <buildCommand> <name>net.sourceforge.pmd.eclipse.plugin.pmdBuilder</name> </buildCommand> <buildCommand> <name>net.sf.eclipsecs.core.CheckstyleBuilder</name> </buildCommand> <buildCommand> <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>net.sourceforge.pmd.eclipse.plugin.pmdNature</nature> <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription>
You will notice the name has been correctly written:
<name>cxf-api-2.2.x</name>
BUT, the references do not have the correct names:
<projects> <project>cxf-common-schemas</project> <project>cxf-common-utilities</project> <project>cxf-xjc-dv</project> </projects>
They should be:
<projects> <project>cxf-common-schemas-2.2.x</project> <project>cxf-common-utilities-2.2.x</project> <project>cxf-xjc-dv-2.2.x</project> </projects>
Which cause the projects to be marked with errors in Eclipse and the workspace build cannot complete.