You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gary Gregory (JIRA)" <ji...@codehaus.org> on 2010/01/19 21:40:55 UTC

[jira] Commented: (MECLIPSE-634) projectNameTemplate not applied to project references

    [ http://jira.codehaus.org/browse/MECLIPSE-634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207530#action_207530 ] 

Gary Gregory commented on MECLIPSE-634:
---------------------------------------

The .classpath is also incorrect:
{code:xml}
  <classpathentry kind="src" path="/cxf-common-schemas"/>
  <classpathentry kind="src" path="/cxf-common-utilities"/>
  <classpathentry kind="src" path="/cxf-xjc-dv"/>
{code}

> projectNameTemplate not applied to project references
> -----------------------------------------------------
>
>                 Key: MECLIPSE-634
>                 URL: http://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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira