Re: pom properties
${one} in that case, ${project.*} should be used to access the actual elements of the project. - Brett On 26/11/2008, at 2:49 AM, Randy Kamradt wrote: There has been some confusion in the past about accessing pom properties using the ${} notation. I know that to access the project version you should use ${project.version}. But for pom defined properties is the project prefix required? for instance, in a pom.xml: properties one1/one /properties ${project.one} or ${one} either seems to work, but is there a preferred method? -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pom properties
I've noticed OS dependent effects in the expansion of such properties (I often saw also 'pom.*' notation used) . The one which IMHO seems to always work is though: ${project.*} HTH, Gab 2008/11/25 Randy Kamradt [EMAIL PROTECTED] There has been some confusion in the past about accessing pom properties using the ${} notation. I know that to access the project version you should use ${project.version}. But for pom defined properties is the project prefix required? for instance, in a pom.xml: properties one1/one /properties ${project.one} or ${one} either seems to work, but is there a preferred method? -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source
Re: POM properties
How do you reference something that is a collection in the POM? Let's say there are 2 developers and I want to get their email addresses to put in the notifier.address section of the ciManagement section (I know a mailing list is preferred but we don't have one set up right now and I know there are JIRA's in Continuum to propogate the developers into continuum as users and the users as the notifiers but until then...) ${project.developers.developer.xxx.email} (where xxx is ther id) or ${project.developers.developer[0].email) On 10/27/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote: Hi, Is there any documentation that describes what things from the POM are available as variables? Anything in the POM itself: http://maven.apache.org/maven-model/maven.html How do I specify 'target' as a property? The things I have tried haven't worked: You can take a look at this: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Which shows the Super POM which has most of the build elements that you might want to use. $(pom.build.outputDirectory} ${pom.build.dir} ${build.dir} Close but no cigar :-) ${pom.build.directory} NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM properties
On Fri, 2005-10-28 at 09:23 -0400, Tomislav Stojcevich wrote: How do you reference something that is a collection in the POM? Let's say there are 2 developers and I want to get their email addresses to put in the notifier.address section of the ciManagement section (I know a mailing list is preferred but we don't have one set up right now and I know there are JIRA's in Continuum to propogate the developers into continuum as users and the users as the notifiers but until then...) ${project.developers.developer.xxx.email} (where xxx is ther id) or ${project.developers.developer[0].email) Currently the interpolation won't allow that but there is a JIRA issue for moving toward using Velocity like interpolation which would make this easier. On 10/27/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote: Hi, Is there any documentation that describes what things from the POM are available as variables? Anything in the POM itself: http://maven.apache.org/maven-model/maven.html How do I specify 'target' as a property? The things I have tried haven't worked: You can take a look at this: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Which shows the Super POM which has most of the build elements that you might want to use. $(pom.build.outputDirectory} ${pom.build.dir} ${build.dir} Close but no cigar :-) ${pom.build.directory} NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org We all have problems. How we deal with them is a measure of our worth. -- Unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM properties
On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote: Hi, Is there any documentation that describes what things from the POM are available as variables? Anything in the POM itself: http://maven.apache.org/maven-model/maven.html How do I specify 'target' as a property? The things I have tried haven't worked: You can take a look at this: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Which shows the Super POM which has most of the build elements that you might want to use. $(pom.build.outputDirectory} ${pom.build.dir} ${build.dir} Close but no cigar :-) ${pom.build.directory} NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: POM properties
Jason, Thanks, I have read through those documents but it still not clear to me how the build directory should be expressed as a variable. I thought it would be: ${pom.build.directory} but this doesn't seem to work. Michael project build directory/directory -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 October 2005 4:14 PM To: Maven Users List Subject: Re: POM properties On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote: Hi, Is there any documentation that describes what things from the POM are available as variables? Anything in the POM itself: http://maven.apache.org/maven-model/maven.html How do I specify 'target' as a property? The things I have tried haven't worked: You can take a look at this: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Which shows the Super POM which has most of the build elements that you might want to use. $(pom.build.outputDirectory} ${pom.build.dir} ${build.dir} Close but no cigar :-) ${pom.build.directory} NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - 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: POM properties
On Thu, 2005-10-27 at 16:30 +1000, Michael McCrann wrote: Jason, Thanks, I have read through those documents but it still not clear to me how the build directory should be expressed as a variable. I thought it would be: ${pom.build.directory} You're right, it's null and that's a bug. I will file an issue in JIRA when it comes back up. but this doesn't seem to work. Michael project build directory/directory -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 October 2005 4:14 PM To: Maven Users List Subject: Re: POM properties On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote: Hi, Is there any documentation that describes what things from the POM are available as variables? Anything in the POM itself: http://maven.apache.org/maven-model/maven.html How do I specify 'target' as a property? The things I have tried haven't worked: You can take a look at this: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Which shows the Super POM which has most of the build elements that you might want to use. $(pom.build.outputDirectory} ${pom.build.dir} ${build.dir} Close but no cigar :-) ${pom.build.directory} NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org We know what we are, but know not what we may be. -- Shakespeare - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]