On 19 July 2011 16:44, Hilco Wijbenga <[email protected]> wrote:
> On 19 July 2011 03:01, Cem Koc <[email protected]> wrote: > > I have 3 level multi module maven project. I want to utilize a common > plugin > > configuration at parent pom and the rest of the 2nd and 3rd level modules > > will utilize this configuration. The plugin configuration has a > > configuration file for 3rd level modules such as: > > > > > <mypluging-config-source-path>../../conf/myplugin</mypluging-config-source-path> > > > > But this configuration could not be used by 2rd level modules. They need > > > > > <mypluging-config-source-path>../conf/myplugin</mypluging-config-source-path> > > > > What is the best way to use a common path for all modules in a project > even > > at root parent pom? > > You could set a property with an absolute path in the parent. > Something like <parent-path>${basedir}</parent-path>. Then you can use > that as a starting point: > Not really as inheritance will kill you by resetting the property in the child project. > > <myplugin-config-source-path>${parent-path}/conf/myplugin</myplugin-config-source-path> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
