Re: [m2] Filtering resources
Thanks for the clarification. That will work well enough. On 2/28/07, John J. Franey <[EMAIL PROTECTED]> wrote: Thierry Lach-2 wrote: > > Actually settings properties not being available in filtering might cause > us > some problems in converting to M2. > Properties in settings file are available in resource filtering using a profile. Each user should create a profile in their own settings.xml. Their profile defines user specific values for the property tokens (e.g., ${db.host} ) that are used in src/test/resources/build.properties. A settings.xml sample: myProfile localhost me mypassword Then: mvn -PmyProfile compile The tokens: ${db.host}, ${db.username}, ${db.password} appearing in build.properties will be replaced by the values above. Each developer is required to define private values for these properties. However, the pom.xml can define default values for these properties and they will be overridden by values in settings.xml. For more details, see: http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, John -- View this message in context: http://www.nabble.com/Filtering-resources-tf3307730s177.html#a9225896 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Filtering resources
Thierry Lach-2 wrote: > > Actually settings properties not being available in filtering might cause > us > some problems in converting to M2. > Properties in settings file are available in resource filtering using a profile. Each user should create a profile in their own settings.xml. Their profile defines user specific values for the property tokens (e.g., ${db.host} ) that are used in src/test/resources/build.properties. A settings.xml sample: myProfile localhost me mypassword Then: mvn -PmyProfile compile The tokens: ${db.host}, ${db.username}, ${db.password} appearing in build.properties will be replaced by the values above. Each developer is required to define private values for these properties. However, the pom.xml can define default values for these properties and they will be overridden by values in settings.xml. For more details, see: http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, John -- View this message in context: http://www.nabble.com/Filtering-resources-tf3307730s177.html#a9225896 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] (Filtering Resources) adding timestamp to a property file during releasing
Hi all, any idea how to add a non static property to a property file while build time? Thanks Fredy
[m2] Filtering resources problem
Hi, I'm following the started guide and when I try to replace ${pom.name} for ${settings.localRepository} when filtering a resource I got the string ${settings.localRepository} back. My settings.xml is placed in ~/.m2/settings.xml and working fine cause I can deploy using configurations there. Am I doing something wrong? One other question: is it possible to define properties in the settings.xml as we can do in the pom? []s ps: my settings.xml false lsd marcell pss: I thought 1st it was because the localRepository is not specified, but then i changed for ${settings.offline} and got nothing again :-( -- "Nobody knows who i really am I never felt this empty before And if I never need someone to come along Who's gonna comfort me and keep me strong?" -- Marcell Manfrin Barbacena [EMAIL PROTECTED] MSN Messenger: [EMAIL PROTECTED] ICQ UIN: 63671762 Skype: callto://marcell84bruk +55 (83) 8808-8555 (Oi) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Filtering resources and current time
I think this is already filed.. See MNG-1832 -allan Wim Deblauwe wrote: I could use that too, so please file an issue. 2005/12/15, Edwin Punzalan <[EMAIL PROTECTED]>: AFAIK, there is no ${} expression with the current time as value. You may want to file a jira request for this feature though. The Maven 2 jira is here: http://jira.codehaus.org/browse/MNG Piotr Bzdyl wrote: Hello, I would like to have something like this in my pom.xml src/main/resources true and in src/main/resources/app.properties: app.buildTime=${currentTime} to get current time (the time when I call mvn package for example) in the place of ${currentTime}. Is there a maven built-in property holding current time? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Filtering resources and current time
I could use that too, so please file an issue. 2005/12/15, Edwin Punzalan <[EMAIL PROTECTED]>: > > > AFAIK, there is no ${} expression with the current time as value. You > may want to file a jira request for this feature though. The Maven 2 > jira is here: http://jira.codehaus.org/browse/MNG > > > Piotr Bzdyl wrote: > > > Hello, > > > > I would like to have something like this in my pom.xml > > > > > > > > > > src/main/resources > > true > > > > > > > > > > and in src/main/resources/app.properties: > > app.buildTime=${currentTime} > > > > to get current time (the time when I call mvn package for example) in > > the place of ${currentTime}. Is there a maven built-in property > > holding current time? > > > > Best regards, > > Piotrek > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [m2] Filtering resources and current time
AFAIK, there is no ${} expression with the current time as value. You may want to file a jira request for this feature though. The Maven 2 jira is here: http://jira.codehaus.org/browse/MNG Piotr Bzdyl wrote: Hello, I would like to have something like this in my pom.xml src/main/resources true and in src/main/resources/app.properties: app.buildTime=${currentTime} to get current time (the time when I call mvn package for example) in the place of ${currentTime}. Is there a maven built-in property holding current time? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Filtering resources and current time
Hello, I would like to have something like this in my pom.xml src/main/resources true and in src/main/resources/app.properties: app.buildTime=${currentTime} to get current time (the time when I call mvn package for example) in the place of ${currentTime}. Is there a maven built-in property holding current time? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]