I've been trying to create a maven archetype. The problem that I am having is
that I am using a class resource. So, for example, if I have a artifact.xml
which looks like this....


<archetype>
  <id>archetype-r-tool</id>
  <sources>
    <source>src/main/java/RAverageProcessor.java</source>
  </sources>
  <testSources>
    <source>src/test/java/RAverageProcessorTest.java</source>
  </testSources>
  <resources>
    <resource>src/main/resources/averageR.r</resource>
  </resources>
</archetype>



RAverageProcessor.java (and the test) gets moved to a directory which depends
on the groupId given when the archetype is used. On the other hand averageR.r
doesn't; it stays resolutely in the root directory. Which breaks projects
build on this archetype because RAverageProcessor loads averageR.r as a class
resource. 

So it has to be in the same directory...

Can anyone tell me how I move this resource according to the group id? 

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to