You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Rosendorf (JIRA)" <ji...@codehaus.org> on 2008/12/19 14:40:19 UTC

[jira] Created: (MECLIPSE-515) eclipse:eclipse generates wrong .classpath-File when usinga relative Source-Folder (../xyz)

eclipse:eclipse generates wrong .classpath-File when usinga relative Source-Folder (../xyz)
-------------------------------------------------------------------------------------------

                 Key: MECLIPSE-515
                 URL: http://jira.codehaus.org/browse/MECLIPSE-515
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: Core : Dependencies resolution and build path (.classpath)
    Affects Versions: 2.5.1
         Environment: Maven 2.0.9
Eclipse 3.3.0
Windows XP
            Reporter: Thomas Rosendorf
         Attachments: relativePathBug.zip

Hi,

I want to migrate some existing projects to maven.

My Directory-Stucture looks following:

D:\
- Projekte
   - Maven
     -maven-user-list
        - maven-project-dir
        - existing-src-dir

I need to add the Sources in "existing-src-dir" to the pom in 
"maven-project-dir".

In my pom.xml I have only added the sourceDirectory:

  <build>
    <sourceDirectory>../existing-src-dir</sourceDirectory>
  </build>

the goal eclipse:eclipse generates a wrong .classpath -File. 
.classpath-File
<classpath>
  <classpathentry kind="src" path="src/test/java" output=
"target/test-classes"/>
  <classpathentry kind="src" path=
"D:/Projekte/Maven/maven-user-list/existing-src-dir"/>
  <classpathentry kind="output" path="target/classes"/>
  <classpathentry kind="con" path=
"org.eclipse.jdt.launching.JRE_CONTAINER"/>
  <classpathentry kind="var" path=
"M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath=
"M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
</classpath>

Eclipse showes following Error:

Project 'maven-project-dir' is missing required source folder: 
'D:/Projekte/Maven/maven-user-list/existing-src-dir' maven-project-dir 
Build path      1229511521041   2372324


Can anybody help me?

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