On 30/07/2009, Rahul Akolkar <[email protected]> wrote: > On Wed, Jul 29, 2009 at 7:39 PM, sebb<[email protected]> wrote: > > On 30/07/2009, Rahul Akolkar <[email protected]> wrote: > >> On Wed, Jul 29, 2009 at 7:02 PM, Jörg Schaible<[email protected]> > wrote: > >> > Rahul Akolkar wrote: > >> > > >> > [snip] > >> >> I have to step out in a minute or two (I can try later), but what I'd > >> >> try is to make the complete transition to the standard directory > >> >> layout: > >> >> > >> >> 1) Move sources to src/main/java > >> >> > >> >> 2) Move tests to src/test/java > >> >> > >> >> 3) Remove following from pom: > >> >> <sourceDirectory>src/java</sourceDirectory> > >> >> <testSourceDirectory>src/test</testSourceDirectory> > >> >> > >> >> 4) Change any bits in the pom that refer to old paths in 1 and 2 > >> >> > >> >> 5) Build > >> > > >> > Resources should be in src/main/resources i.e. there should be > >> > META-INF/services/javax.script.ScriptEngineFactory > >> > > > > > Done. > > > >> <snip/> > >> > >> That circles to the top of this thread ;-) Apparently, it still isn't > working. > > > > This is because of steps 1-3) above not yet having been done. > > > > <snip/> > > Got a chance to look at this -- the commons parent pom needs this > added to the <resources> section: > > <resource> > <directory>src/main/resources</directory> > </resource> > > But that'll mean a parent release etc. Interim, we can add a > <resources> section to the JEXL pom that matches the one in the > parent, plus the <resource> above. >
Yes, it looks like the parent config is overriding the default rather than adding the new files. The documentation for the Maven resources plugin is rather unclear on this... A brief test works fine for me, and is a lot neater than the Ant method. > -Rahul > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
