Hi Phill...
I tried this, but no success.
again, i have a structure like this:
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
the uberlibrary pom.xml wants to reference one directory up and include the
conf/ directory and all resources inside it.
I tried this:
<resource>
<directory>${basedir}/conf/</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
In the uberlibrary pom.xml which essentially is trying to include
D:/svn/diamond/prism/prism/editor/uberlibrary/conf
This does not exist. When I run eclipse:eclipse, the <classpathentry> is
not generated for it and it just ignores this completely, so I no longer get
a build path error, but it still is not including the conf dir.
So, I tried this:
<resource>
<directory>${basedir}/../conf/</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
In the uberlibrary pom.xml which essentially is trying to include
D:/svn/diamond/prism/prism/editor/conf
This does exist..it is what I want, but when I run eclipse:eclispe, it does
generate a <classpathentry> for it, but the eclipse IDE still gives me a
build path error that it cannot find that directory.
Note: if there's somewhere else i should take this thead (if this is not the
appropriate forum), let me know where I should post to?
Thx again -- any other ideas are really welcome.
Best regards,
Davis
On 4/16/07, Phill Moran <[EMAIL PROTECTED]> wrote:
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
--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax