Just for the record, all that information can be also edited from the Project / Properties / Java Build Path

 regards,
 Eugene


Roland Klein wrote:
Your source will need to be in /src/main/java and your test source in /src/test/java, otherwise you will need to add configuration in your POM to tell Maven where your source is.

Here's the default config (from the super POM supplied by Maven) - you can add something like this to your POM with your own choice of directories. However, I would recommend sticking to the
default layout.

I also recommend You to use the default directory scheme, but to help You with Eclipse edit the
.classpath file and check if the following is in it.

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry output="target/classes" kind="src" path="src/main/java"/> <classpathentry output="target/classes" kind="src" path="src/main/resources"/> <classpathentry output="target/test-classes" kind="src" path="src/test/java"/> <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
    <classpathentry kind="output" path="target/classes"/>
</classpath>

After changing the file, refresh the view in eclipse (right-mouse click -> refresh) eclipse and maven compile to same directories.



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to