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