[ https://jira.codehaus.org/browse/MECLIPSE-634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=322703#comment-322703 ]
Patrik Martinovský commented on MECLIPSE-634: --------------------------------------------- isn't it a duplicate of http://jira.codehaus.org/browse/MECLIPSE-586 ? > projectNameTemplate not applied to project references > ----------------------------------------------------- > > Key: MECLIPSE-634 > URL: https://jira.codehaus.org/browse/MECLIPSE-634 > Project: Maven 2.x Eclipse Plugin > Issue Type: Bug > Components: Core : .project > Affects Versions: 2.7 > Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700) > Java version: 1.6.0_16 > Java home: C:\Program Files\Java\jdk1.6.0_16\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows vista" version: "6.0" arch: "amd64" Family: "windows" > Reporter: Gary Gregory > > When I run the command: > mvn -Psetup.eclipse -Declipse.projectNameTemplate=[artifactId]-2.2.x > I get .project files like this one: > {code:xml} > <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> > {code} > You will notice the name has been correctly written: > {code:xml} > <name>cxf-api-2.2.x</name> > {code} > BUT, the references do not have the correct names: > {code:xml} > <projects> > <project>cxf-common-schemas</project> > <project>cxf-common-utilities</project> > <project>cxf-xjc-dv</project> > </projects> > {code} > They should be: > {code:xml} > <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> > {code} > Which cause the projects to be marked with errors in Eclipse and the > workspace build cannot complete. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira