eclipse:myeclipse generates wrong .classpath file while eclipse:eclipse 
generates correct one
---------------------------------------------------------------------------------------------

                 Key: MECLIPSE-657
                 URL: http://jira.codehaus.org/browse/MECLIPSE-657
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: MyEclipse support
    Affects Versions: 2.8
         Environment: Windows XP, Maven 2.2.1
            Reporter: Wayne Fuller
            Priority: Minor


In my pom.xml file for a war project, I have the following entry in the 
<build><resources> section

{code:xml|title=pom.xml|borderStyle = solid}
<resources>
        <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
        </resource>
</resources>
<testResources>
        <testResource>
                <directory>src/test/resources</directory>
        </testResource>
</testResources>
{code}

When I generate the eclipse project and classpath files using mvn 
eclipse:eclipse the following is generated which is correct.

{code:title=.classpath|borderStype = solid}
<classpathentry kind="src" path="src/test/java" output="target/test-classes" 
including="**/*.java"/>
<classpathentry kind="src" path="src/test/resources" 
output="target/test-classes" excluding="**/*.java"/>
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
{code}

But if I generate using eclipse:myeclipse the following is generated where the 
output is wrong.

{code:title=.classpath|borderStype = solid}
<classpathentry kind="src" path="src/test/java" output="target/test-classes" 
including="**/*.java"/>
<classpathentry kind="src" path="src/test/resources" 
output="target/test-classes" excluding="**/*.java"/>
<classpathentry kind="src" path="src/main/java" 
output="/src/main/webapp/WEB-INF/classes" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" 
output="/src/main/webapp/WEB-INF/classes" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
{code}

-- 
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

        

Reply via email to