|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Specifying a different POM fileI wanted to know if there is a way you can specify a different pom file to maven at the top level other than the default "pom.xml". we have multiple modules which maybe not be required for some developers and we want to add fewer modules in another parent pom which also deploys the application to local tomcat. Is there any way we can achieve that. Any help is appreciated.
|
|
|
Re: Specifying a different POM fileYou can take a look at the advanced reactor options.[1] Or simply use the -f
option to specify another pom file. [1] http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-advanced-reactor-options/ Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Nov 3, 2009 at 4:42 PM, chicagopooldude <Seshu.Pitcha@...>wrote: > > I wanted to know if there is a way you can specify a different pom file to > maven at the top level other than the default "pom.xml". we have multiple > modules which maybe not be required for some developers and we want to add > fewer modules in another parent pom which also deploys the application to > local tomcat. Is there any way we can achieve that. Any help is > appreciated. > -- > View this message in context: > http://old.nabble.com/Specifying-a-different-POM-file-tp26160205p26160205.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: Specifying a different POM fileAnother option is to define the modules in a profile.
2009/11/3 chicagopooldude <Seshu.Pitcha@...> > > I wanted to know if there is a way you can specify a different pom file to > maven at the top level other than the default "pom.xml". we have multiple > modules which maybe not be required for some developers and we want to add > fewer modules in another parent pom which also deploys the application to > local tomcat. Is there any way we can achieve that. Any help is > appreciated. > -- > View this message in context: > http://old.nabble.com/Specifying-a-different-POM-file-tp26160205p26160205.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: Specifying a different POM filei am trying to use the profiles in my parent pom like this
<profile> <id>dev</id> <activation> <property> <name>env</name> <value>dev</value> </property> </activation> <modules> <module>client</module> </modules> </profile> I want only the client module which is a child module in my project to build and install when i call like this > mvn -Denv=dev clean install I do it and nothing happens how can this be done?
|
|
|
Re: Specifying a different POM fileStephen,
Thanks for your reply I have tried profile with no success here is what I am doing and this is located in parent pom. <profile> <id>dev</id> <activation> <property> <name>env</name> <value>dev</value> </property> </activation> <modules> <module>client</module> </modules> </profile> > mvn -Denv=dev clean install This is how I am evoking this profile but nothing is happening and all the sub modules are getting cleaned up. When we specifiy a name value pair in activation element how to envoke it from command line, I also dont want to put some thing specific in settings.xml. Any help is appreciated. Regards Seshu Pitcha (CME Group Chicago IL) |
|
|
Re: Specifying a different POM filewhy activate with properties, better to just activate the profile you want, e.g.
mvn -Pdev clean install also, you will need to put all the modules you don't want run with that profile into a separate profile (probably one that is activeByDefault) that way when you specify -Pdev (which will deactivate all profiles and activate the one you specify) only the module(s) you want will be active in your project model 2009/11/4 chicagopooldude <Seshu.Pitcha@...>: > > Stephen, > Thanks for your reply I have tried profile with no success here is what I > am doing and this is located in parent pom. > <profile> > <id>dev</id> > <activation> > <property> > > <name>env</name> > <value>dev</value> > </property> > > </activation> > <modules> > <module>client</module> > </modules> > </profile> > >> mvn -Denv=dev clean install > This is how I am evoking this profile but nothing is happening and all the > sub modules are getting cleaned up. When we specifiy a name value pair in > activation element how to envoke it from command line, I also dont want to > put some thing specific in settings.xml. > > Any help is appreciated. > > Regards > Seshu Pitcha (CME Group Chicago IL) > > > -- > View this message in context: http://old.nabble.com/Specifying-a-different-POM-file-tp26160205p26197443.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |