I think there are issues with directories that are not UNDER the project
directory. It looks like yours is at the same level as the project directory. A
project directory is the one that the POM lives in
Actually now that I review your original post you are saying it is at the same
level but it is not. Take out the "..".
This is what mine looks like. All are relative to the base dir (where the POM
lives)
<resources>
<resource>
<filtering>false</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.dtd</include>
<include>**/*.tld</include>
<include>**/*.properties</include>
<include>**/*.class</include>
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.dtd</include>
</includes>
</testResource>
<testResource>
<directory>${basedir}/src/test/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.dtd</include>
<include>**/*.properties</include>
</includes>
</testResource>
</testResources>
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davis Ford
Sent: April 16, 2007 2:11 PM
To: [email protected]
Subject: Re: [m2eclipse-user] eclipse .classpath build path error
Hi Phill, sorry to sound dense, but isn't ../ indicative of a relative path?
How do you mean exactly? I'll try anything (once) :)
--davis
On 4/16/07, Phill Moran <[EMAIL PROTECTED]> wrote:
Can you make you path relative to the based project instead of using the "../"
designator?
Phill
_____
From: Davis Ford [mailto:[EMAIL PROTECTED]
Sent: April 16, 2007 1:51 PM
To: [email protected]
Subject: [m2eclipse-user] eclipse .classpath build path error
Hi, I'm using the eclipse plugin with mvn 2.0.6.
I have a project structure:
D:/svn/diamond/prism/prism/editor/pom.xml
D:/svn/diamond/prism/prism/editor/conf/some.config.xml
D:/svn/diamond/prism/prism/editor/uberlibrary/pom.xml
D:/svn/diamond/prism/prism/editor/uberlibrary/src/<etc. sources under here>
project uberlibrary is a child <module> of project editor.
in the pom.xml of project uberlibrary i have this - so that i can reference
conf/some.config.xml from the child project.
<build>
<resources>
<resource>
<!-- this is relative to your project root -->
<directory>../conf</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
</build>
If I run mvn eclipse:eclipse on the uberlibrary project, it generates this in
the .classpath file:
<classpathentry kind="src" path="D:/svn/diamond/prism/prism/editor/conf"
including="**/*" excluding="**/*.java"/>
...which seems completely fine, but if I import the project into eclispe, it
complains that it cannot find this folder ->
Severity and Description Path Resource Location Creation Time Id
Project uberlibrary is missing required source folder:
'D:/svn/diamond/prism/prism/editor/conf' uberlibrary Build path 1176744665715
50691
What am I doing wrong here?
Thanks in advance,
Davis
--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax