2009/12/29 Kumar Ampani <[email protected]>
> I am not sure if that's a good idea to have one project create files in the
> other project.
>
> If your 'lo' project has the config files, I would create an assembly of
> config files in 'lo' project.
> and then webapp project will use dependency plugin to extract the config
> artifact/assembly from repository and process them as needed.
>
Thank all the above guys, It is not a good idea and I now I will put the
config files directly to the WEB-INF . :).
BTW,how can I now how many inside parameters I can directly use in the pom
file such as the ${basedir} ${project.version} ?
Because I did not get the right value when I tried to use
${parent.version}, I have seen the pom.xsd,but the contents are rather too
big. so I wonder where I can find them?
>
> Hope that helps.
>
> Thanks
> Kumar Ampani
>
> On Mon, Dec 28, 2009 at 12:45 AM, alien.sulin <[email protected]
> >wrote:
>
> > Mayby you can just try it, so you can find whether the targetPath can be
> > set
> > to other module!
> >
> > In my opinion, i would rather put all the config files to a single dir
> than
> > put them in different dir
> >
> > On Sun, Dec 27, 2009 at 2:46 PM, maven apache <[email protected]
> > >wrote:
> >
> > > Hi:
> > > I have a project containing three modules, Server,Io,and Webapp, and
> the
> > > webapp is a pakcage of war, the other two are jars.
> > > Since the web module need to read some config files,so I want to put
> them
> > > under the WEB-INF/conf. However I also want to file the config files
> > under
> > > the Io module by using the resources *filtering*
> > > *
> > > *
> > > That's to say I want to config the the parameter in the pom.xml of the
> Io
> > > module,(under the module there is a config file like the following:
> > > ------------
> > > service=${service.name}
> > > time=${service.time}
> > > ------------
> > > ))
> > > Then I need to use this config file in the Webapp module and it should
> be
> > > put under Webapp/WEB-INF/conf.
> > >
> > > I have seen the resource plugin in the maven site,and I found that
> there
> > is
> > > a parameter named:targetPath,I wonder if I can set this parameter as
> the
> > > following:
> > > ------------------------
> > > <resource>
> > > <directory>src/main/java</directory>
> > > <filtering>true</filtering>
> > > <targetPath>???????</targetPath>(Can I set the path to other module for
> > > example the Webapp module? if yes, how to set? Note that , this xml
> > > fragment is under the Io module)
> > > </resource>
> > > -----------------------
> > > *
> > > *
> > >
> >
> >
> >
> > --
> > alien.sulin(苏琳冲)
> > SuLinchong
> > Qq 387973308
> > Msn [email protected]
> >
>