[ 
https://issues.apache.org/jira/browse/CXF-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802008#action_12802008
 ] 

Gary Gregory edited comment on CXF-2595 at 1/19/10 12:55 AM:
-------------------------------------------------------------

I'll leave this closed because it is a Maven bug.

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}

See http://jira.codehaus.org/browse/MECLIPSE-634

      was (Author: ggreg...@seagullsw.com):
    I'll leave this closed because it is a Maven bug.

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}


  
> Facilitate multi-branch development in Eclipse
> ----------------------------------------------
>
>                 Key: CXF-2595
>                 URL: https://issues.apache.org/jira/browse/CXF-2595
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Gary Gregory
>
> It looks like CXF uses the Maven POM project/artifactId to name Eclipse 
> projects when the CXF maven tool is used:
> bq. mvn -Psetup.eclipse 
> This is great until you want to use the same Eclipse workspace to work on 
> multiple branches. 
> For example, I want to be able to compare debug runs in CXF 2.2.x and 2.3.x. 
> Switching workspaces is a pain and does not allow having two debug sessions 
> running at the same time.
> What about having the CXF {{setup.eclipse}} tool generate the Eclipse project 
> name to include the branch name? 
> For example, instead of {{cxf-api}}, use {{cxf-api-2.2.x}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to