You're welcome!! 2010/1/26 <[email protected]>
> Thanks Manuel!! > > -----Original Message----- > From: Manuel Grau [mailto:[email protected]] > Sent: Monday, January 25, 2010 2:09 PM > To: Maven Users List > Subject: Re: Resource Filter files > > Yes, is possible, I did it in my work recently. But, there is a better way. > Notice what I'm doing. I have 4 profiles, activated with a var called env. > So, when I call maven I always do: > > mvn -Denv=pre compile (or anything) > > I have four files called ${env}.pom.properties. So, you can put this in > your main build tag: > > <filters> > <filter>${env}.pom.properties</filter> > <filters> > > So, when activate pre profile, the properties file loaded is > pre.pom.properties. > > El 25/01/2010, a las 21:01, <[email protected]> escribió: > > > Is it possible to define filters by profile? See below for example. > > > > <build> > > ... > > <filters> > > <filter> [a filter property] </filter> > > </filters> > > ... > > </build> > > > > Thanks, > > > > David > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- "Everything should be made as simple as possible, but not simpler" Albert Einstein
