Try this:

<build>
    <resources>
      <resource>
        <directory>{basedir}/src/org/geotools/brewer/color/resources</directory>
        <includes>
                <include>**/*.xml</include>
        </includes>
      </resource>
    </resources>
</build>

-Justin

Cory Horner wrote:
Hi Guys,

I'm having trouble getting maven to include some xml files as a resource that the colorbrewer extension needs. At the moment, there are 3 xml files in gt/ext/brewer/src/org/geotools/brewer/color/resources (sequential.xml, diverging.xml, and qualitative.xml).

So, i run:

"maven clean"
"maven -X java:compile"

and get the following, among the output:

[javac] [VERBOSE] org\geotools\brewer\color\resources\diverging.xml skipped - don't know how to handle it [javac] [VERBOSE] org\geotools\brewer\color\resources\qualitative.xml skipped - don't know how to handle it [javac] [VERBOSE] org\geotools\brewer\color\resources\sequential.xml skipped - don't know how to handle it

...anyways, in the end i'm wanting to get those three xml files into:

gt/ext/brewer/target/classes/org/geotools/brewer/color/resources

but all the permutations i've tried have failed. This should work, in theory:

 <build>
   <resources>
     <resource>
<directory>${basedir}/src/org/geotools/brewer/color/resources</directory>
     </resource>
   </resources>
   <unitTest>
...

How can I get these files included without the java compiler trying to eat them? Any thoughts?

Cheers,
Cory.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel



--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to