Since this module just has files in it, what kind of packaging type should it be?
I'm getting b/c it is currently set as a packaging type of jar, what should it be? On Wed, Apr 18, 2012 at 12:34 PM, Wayne Fay <[email protected]> wrote: > > In a sub-module, I have a assembly.xml file (maven-assembly-plugin) that > I > >> am using to build this module. How can I reference the parent pom's > path? > > > > You can do this using the expression "${project.basedir}/../.." or > however > > many directory levels up you need to go. > > Curtis is right about this but as he said later: > > In an ideal world, you would not > > include references upstream like this, but rather include everything > needed > > IMO this is an anti-pattern in Maven. If someone gets the source code > to build *just* this module, they will be unable to build it > independent of anything else. > > Instead, you set up another module that exists solely to contain these > configuration files and then pull it in as a dependency where you need > them. Use dependency:unpack to put the files where you need them or > the proper assembly configuration. > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
