Hi -

I have the following flat project layout:

workspace/parent-proj/pom.xml
workspace/child1/pom.xml (artifactId = child-project-1)
workspace/child2/pom.xml (artifactId = childProject2)
workspace/child3/pom.xml etc.

When I run mvn eclipse:eclipse on the parent-proj, it writes out the project
files properly, with one exception: it's using the artifactId as the project
directory name for each artifact.

So say child1 depends on artifactId childProject2, but the directory that
artifact is in is actually child2.  Well the eclipse .project file has a
reference to childProject1.  Is there any way to tell the plugin to use the
correct directory name, or am I forced to always use the same directory name
as the artifactId?  I can do the latter, but it's not very practical - I'd
rather configure the eclipse plugin in the parent pom or something.  The
Eclipse projects are inconsistently named, but I want to keep the
artifactIds consistent.  With the incorrect directory name, Eclipse shows
errors in the Problems tab and won't recompile during debug sessions etc. as
a result.

Thanks in advance.

Dave

Reply via email to