Re: Accessing licenses/license as POM properties?

2018-05-19 Thread Mark Raynsford
This seems to be a bug or something not quite right with the bnd-maven-plugin. I've filed an issue: https://github.com/bndtools/bnd/issues/2454 Plugins like the maven-jar-plugin (and evidently the maven-bundle-plugin) appear to do the right thing, but the bnd-maven-plugin seems not to. Strangely,

Re: Accessing licenses/license as POM properties?

2018-05-19 Thread Mark Raynsford
On 2018-05-19T14:35:25 +0200 Andreas Sewe wrote: > > Maybe it depends on the Maven version (here: 3.5.2)? Try to clone the > above Github repository, do a "mvn clean verify" and check what "unzip > -p > bundles/com.ctrlflow.aer.client.dto/target/com.ctrlflow.aer.client.dto-2.0.2-SNAPSHOT.jar > MET

Re: Accessing licenses/license as POM properties?

2018-05-19 Thread Andreas Sewe
Mark Raynsford wrote: > Spoke a bit too soon. I'm using the bnd-maven-plugin, but I don't think > that changes anything. I have: > > > biz.aQute.bnd > bnd-maven-plugin > ${io7m.bnd-maven-plugin.version} > > > > > >

Re: Accessing licenses/license as POM properties?

2018-05-18 Thread Mark Raynsford
On 2018-05-18T16:50:56 +0100 org.apache.maven.u...@io7m.com wrote: > On 2018-05-18T17:01:52 +0200 > Andreas Sewe wrote: > > > here's what I use as an for the maven-bundle-plugin to > > generate a Bundle-License line in my MANIFEST.MF: > > > > > ${project.licenses[0].url};description="${projec

Re: Accessing licenses/license as POM properties?

2018-05-18 Thread org . apache . maven . user
On 2018-05-18T17:01:52 +0200 Andreas Sewe wrote: > Hi, > > > Is there a way to access the contents of the element as POM > > properties? I'd like to reference the URL of the first license element > > in a plugin execution, but there doesn't appear to be a

Re: Accessing licenses/license as POM properties?

2018-05-18 Thread Andreas Sewe
Hi, > Is there a way to access the contents of the element as POM > properties? I'd like to reference the URL of the first license element > in a plugin execution, but there doesn't appear to be a > ${pom.license.url} or anything similar. here's what I use as an for

Accessing licenses/license as POM properties?

2018-05-18 Thread Mark Raynsford
Hello. Is there a way to access the contents of the element as POM properties? I'd like to reference the URL of the first license element in a plugin execution, but there doesn't appear to be a ${pom.license.url} or anything similar. -- Mark Raynsford | http://www.io7m.com pgppgAg

Re: Setting pom properties from Maven Plugin for resource filtering

2011-06-23 Thread Marc Rohlfs
Hi Ronen, take a look at the Properties Maven Plugin [1]. I don't have any experience with that plugin, because I haven't used it yet. But it looks like it should do exactly what You want to achieve with Your custom Maven plugin. However, if it doesn't work out for You, You could at least take

Setting pom properties from Maven Plugin for resource filtering

2011-06-22 Thread Ronen Perez
I have a conf file in a java app that contains an IP address parameter. I want to be able to put in this parameter the local ip address automatically at build time. I used maven resources-plugin as follows: org.apache.maven.plugins maven-resources-plugin 2.5

Re: Super pom properties in child pom

2009-06-05 Thread dkowis
On Fri, 05 Jun 2009 14:12:50 -0500, dkowis wrote: > Say I've got a super pom with a defined SCM section like so: > > scm:git:git://server/repos/${artifactId}.git > > > Well in the child pom, it's taking the super pom's name and appending / > child pom's name. > Like so: > > scm:git:git://serve

Super pom properties in child pom

2009-06-05 Thread dkowis
Say I've got a super pom with a defined SCM section like so: scm:git:git://server/repos/${artifactId}.git Well in the child pom, it's taking the super pom's name and appending / child pom's name. Like so: scm:git:git://server/repos/Super/Child.git That's not what I wanted it to do, I need it

Re: Read pom properties from a custom location

2009-01-22 Thread Wayne Fay
> I'd like to read POM properties from a custom file if it exists. > ie: i'd like to read from pom.properties and pom-${user.name}.properties > > I can't see any examples on the web of how to do this. Maven is not Ant. Properties in Maven belong in the pom.xml file. Th

Read pom properties from a custom location

2009-01-22 Thread Lance Java
I'd like to read POM properties from a custom file if it exists. ie: i'd like to read from pom.properties and pom-${user.name}.properties I can't see any examples on the web of how to do this. Cheers, Lance.

Re: pom properties

2008-11-26 Thread Brett Porter
${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

Re: pom properties

2008-11-25 Thread Gabriele Columbro
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: > > >1 > > >${proje

pom properties

2008-11-25 Thread Randy Kamradt
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: 1 ${project.one

Re: Using POM properties in XDoc

2008-09-22 Thread Simone Tripodi
Hi Dennis, Thank you for your suggestion,I read the page you linked many times but I've always missed the right section! Thank you again,best regards Simone Sent from my iPhone On Sep 22, 2008, at 7:57 PM, Dennis Lundberg <[EMAIL PROTECTED]> wrote: There is built in filtering in the site-pl

Re: Using POM properties in XDoc

2008-09-22 Thread Dennis Lundberg
There is built in filtering in the site-plugin starting with version 2.0-beta-6. See the "Filtering" section at http://maven.apache.org/plugins/maven-site-plugin/examples/creating-content.html I haven't tried it for xdoc files myself. Simone Tripodi wrote: > Hi everybody, > using the site plugi

Re: Using POM properties in XDoc

2008-09-22 Thread Simone Tripodi
I'll try it, thank you very much :) 2008/9/22 Stephen Connolly <[EMAIL PROTECTED]>: > You might have to hack filtering with the resource plugin > > On 22 September 2008 09:22, Simone Tripodi <[EMAIL PROTECTED]> wrote: > >> Hi everybody, >> using the site plugin, I would like to know if is allowed

Re: Using POM properties in XDoc

2008-09-22 Thread Stephen Connolly
You might have to hack filtering with the resource plugin On 22 September 2008 09:22, Simone Tripodi <[EMAIL PROTECTED]> wrote: > Hi everybody, > using the site plugin, I would like to know if is allowed using pom's > properties in xdoc documents - I tried with ${pom.version}, > unfortunatly with

Using POM properties in XDoc

2008-09-22 Thread Simone Tripodi
Hi everybody, using the site plugin, I would like to know if is allowed using pom's properties in xdoc documents - I tried with ${pom.version}, unfortunatly without any good result, the text won't change. Do you have any suggestion? Thanks in advance! Best regards, Simone -

Re: Parent POM properties not inherited

2008-09-17 Thread dmcgeown
gt; > Darragh > -- View this message in context: http://www.nabble.com/Parent-POM-properties-not-inherited-tp19529658p19530925.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e

Parent POM properties not inherited

2008-09-17 Thread dmcgeown
rties file and load them within the pom? If i could do that i could just refernce the properties file via a relative path in each pom. Thanks in advance. Darragh -- View this message in context: http://www.nabble.com/Parent-POM-properties-not-inherited-tp19529658p19529658.html Sent from the Mav

Re: How to override POM properties from CLI

2008-02-22 Thread avalon
Paul Gier wrote: > > This seems to work ok for me. I tried it locally and my profile > properties > override my pom properties, and cli props defined with -D override both > pom and > profile properties. I tried with maven 2.0.6 and 2.0.8. > Can you attach a small zip

Re: How to override POM properties from CLI

2008-02-21 Thread Paul Gier
This seems to work ok for me. I tried it locally and my profile properties override my pom properties, and cli props defined with -D override both pom and profile properties. I tried with maven 2.0.6 and 2.0.8. Can you attach a small zipped project to a jira issue that reproduces the problem

Re: How to override POM properties from CLI

2008-02-20 Thread Arnaud HERITIER
ferent > databases from an automated build system is a real pain. So first one > needs > to create profiles for all supported databases to be able to retrieve the > jdbc driver. Then how many additional profiles for all combinations one > needs? And then for developers' local runs?

Re: How to override POM properties from CLI

2008-02-20 Thread avalon
es for all combinations one needs? And then for developers' local runs? Please, anybody aware how to override pom properties? Wayne Fay wrote: > > You should put the properties in different profiles, and then specify > which profile using -Penv1 when running Maven. > > Wayn

Re: How to override POM properties from CLI

2008-02-07 Thread Igor Romanov
ew this message in context: http://www.nabble.com/How-to-override-POM-properties-from-CLI-tp15344487s177p15347745.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECT

Re: How to override POM properties from CLI

2008-02-07 Thread Wayne Fay
You should put the properties in different profiles, and then specify which profile using -Penv1 when running Maven. Wayne On 2/7/08, Igor Romanov <[EMAIL PROTECTED]> wrote: > Hello, > > I have properties in a POM file I need to be able to override with > command line –D option, > to run build i

How to override POM properties from CLI

2008-02-07 Thread Igor Romanov
Hello, I have properties in a POM file I need to be able to override with command line –D option, to run build in a different environments. How can I do this? Simple example below doesn't work as I expect it should, i.e. test.txt will contain FALSE after running c:\temp\module> mvn -Dtest.result

Re: Problem by injecting POM Properties via Settings.xml

2008-01-02 Thread Olivier Lamy
Hi, The profile in your settings need to be active. Try with : > > normal true > > 3.8.1 > > > Use mvn help:effective-pom to see the pom interpolated. -- Olivier 2008/1/2, Thomas Chang <[EMAIL PROTECTED]>: > Hi all, > > According to the link > htt

Problem by injecting POM Properties via Settings.xml

2008-01-02 Thread Thomas Chang
Hi all, According to the link http://maven.apache.org/examples/injecting-properties-via-settings.html I do in my "pom.xml" and "settings.xml" followings: in the "pom.xml": = ... junit junit ${myversion} ... in the "settings.xml": ===

Re: Interpolation of Pom Properties in Assembly Descriptor

2007-12-11 Thread Mark Reynolds
I'll assume this is a regression in the latest 2.2-beta-2-SNAPSHOT. http://jira.codehaus.org/browse/MASSEMBLY-256 On Nov 28, 2007 12:45 PM, Mark Reynolds <[EMAIL PROTECTED]> wrote: > That wasn't it, but thanks. > > > On Nov 27, 2007 12:36 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > > > I've seen

Re: Interpolation of Pom Properties in Assembly Descriptor

2007-11-28 Thread Mark Reynolds
That wasn't it, but thanks. On Nov 27, 2007 12:36 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > I've seen that mentioned on this list a couple times, and I generally > use this notation myself as well for no particular reason. > > Wayne > > On 11/27/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote: > >

Re: Interpolation of Pom Properties in Assembly Descriptor

2007-11-27 Thread Wayne Fay
I've seen that mentioned on this list a couple times, and I generally use this notation myself as well for no particular reason. Wayne On 11/27/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote: > Some time back I encountered a problem with properties in the pom using > a dot-notation. I solved that

Re: Interpolation of Pom Properties in Assembly Descriptor

2007-11-27 Thread Dennis Lundberg
Some time back I encountered a problem with properties in the pom using a dot-notation. I solved that by using camelHump-notation instead. In your case that would mean replacing "my.path" with "myPath". Not sure if it will work in this case, but it's worth a try. Mark Reynolds wrote: I was us

Interpolation of Pom Properties in Assembly Descriptor

2007-11-26 Thread Mark Reynolds
I was using maven-assembly-plugin 2.2-SNAPSHOT and tried to switch to 2.2-beta-2-SNAPSHOT but encountered a problem. I reference properties from my pom in the assembly descriptor, like this: ... myapp/WEB-INF .. ... ${basedir}/target/config/somefile.conf $

Re: ant tasks and pom properties

2007-11-23 Thread Hervé BOUTEMY
I opened a Jira issue about this: http://jira.codehaus.org/browse/MANTTASKS-101 and made the enhancement This will work in Maven Ant Tasks 2.0.8. Hervé Le mardi 20 novembre 2007, Hervé BOUTEMY a écrit : > Le lundi 19 novembre 2007, Kevin Stembridge a écrit : > > Hi all, > > Is it possible for

Re: ant tasks and pom properties

2007-11-20 Thread Hervé BOUTEMY
Le lundi 19 novembre 2007, Kevin Stembridge a écrit : > Hi all, > Is it possible for the ant tasks to read in arbitrary pom.xml > properties? > > I'm not having any trouble getting at the normal properties that are > part of the POM schema (project.version, project.build.directory etc) > but I can'

ant tasks and pom properties

2007-11-19 Thread Kevin Stembridge
Hi all, Is it possible for the ant tasks to read in arbitrary pom.xml properties? I'm not having any trouble getting at the normal properties that are part of the POM schema (project.version, project.build.directory etc) but I can't read in any properties that I define in a tag. Is this suppose

Using POM properties into the filters

2007-10-04 Thread mateamargo
Is there any way to use the propeties defined in the POM (or even the settings.xml) in the files that will be used as filters? Thanks. -- View this message in context: http://www.nabble.com/Using-POM-properties-into-the-filters-tf4569192s177.html#a13041084 Sent from the Maven - Users mailing

Re: Accessing POM properties in a filter

2007-08-26 Thread William Ferguson
Ah, but the filters file *is* filtered. At least for Java System properties and for other filter tokens, and (because of the order that the filtering mechanism is implemented) also for values of simple POM elements (but not POM properties as they are complex). In order to allow replacement of POM

Accessing POM properties in a filter

2007-08-25 Thread William Ferguson
Resending as its been 24 hours and the message hasn't shown up. In a resource filter, I can specify tokens like: token1=${project.version} token2=${project.properties} Which when used in a resource file evaluates to: valueForToken1=1.0-SNAPSHOT valueForToken2={myProp1=value1, myProp2=value2} H

Re: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the email addresses

2007-08-23 Thread Tim Kettler
=SomeValue William -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Friday, 24 August 2007 12:36 PM To: Maven Users List Subject: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the email addr

RE: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the email addresses

2007-08-23 Thread William Ferguson
token=SomeValue William -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Friday, 24 August 2007 12:36 PM To: Maven Users List Subject: [***POSSIBLE SPAM***] - Re: Accessing POM properties in a filter - Email has different SMTP TO: and MIME TO: fields in the

Re: Accessing POM properties in a filter

2007-08-23 Thread Eric Redmond
Why can't you just use ${myProp1} ? Why go through the trouble of refering via "project.properties"? -- Eric Redmond http://blog.propellors.net On 8/23/07, William Ferguson <[EMAIL PROTECTED]> wrote: > > In a resource filter, I can specify tokens like: > > token1=${project.version} > token2=${pr

RE: Accessing POM properties in a filter

2007-08-23 Thread William Ferguson
OK, well after a bit of investigation I found that the maven-resources-plugin only resolves System properties and simple POM elements, but not POM properties within the Filter before applying them. So I have created a patch that resolves POM properties within filter files too. http

Accessing POM properties in a filter

2007-08-23 Thread William Ferguson
In a resource filter, I can specify tokens like: token1=${project.version} token2=${project.properties} Which when used in a resource file evaluates to: valueForToken1=1.0-SNAPSHOT valueForToken2={myProp1=value1, myProp2=value2} How do I specify a token in the resource filter that resolves to t

Re: Parent POM, properties and scm problem

2007-08-07 Thread Eric Redmond
Might I suggest for the time being, to download and install the maven-pom-plugin ( http://svn.apache.org/repos/asf/maven/sandbox/trunk/plugins/maven-pom-plugin/) and manually manage the scm fields in the projects. I know it's a hack, but non-standard layouts tend to produce non-standard solutions.

RE: Parent POM, properties and scm problem

2007-08-06 Thread Jörg Schaible
Oscar Picasso wrote on Wednesday, August 01, 2007 7:31 PM: > The current Maven behaviour is fine for multimodule projects. > > However I am trying to write a organizational POM that all my projets > would inherited and wanted to avoid duplication of the scm section. > > So in case of independent

Re: Parent POM, properties and scm problem

2007-08-06 Thread Jared Bunting
onal pom by itself, and have your projects use it, from the > > repository, as a parent for definition purposes, though not build > > purposes. > > > > I'd be interested to know whether this works. It seems useful. > > > > -- Bryan > > > > -Orig

Re: Parent POM, properties and scm problem

2007-08-02 Thread Oscar Picasso
gt; > -- Bryan > > -Original Message- > From: Oscar Picasso [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 01, 2007 10:31 AM > To: Maven Users List > Subject: Re: Parent POM, properties and scm problem > > The current Maven behaviour is fine for multimodul

RE: Parent POM, properties and scm problem

2007-08-01 Thread Bryan Loofbourrow
al Message- From: Oscar Picasso [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 10:31 AM To: Maven Users List Subject: Re: Parent POM, properties and scm problem The current Maven behaviour is fine for multimodule projects. However I am trying to write a organizational POM that

Re: Parent POM, properties and scm problem

2007-08-01 Thread Oscar Picasso
The current Maven behaviour is fine for multimodule projects. However I am trying to write a organizational POM that all my projets would inherited and wanted to avoid duplication of the scm section. So in case of independent projects it does not make sense to put all them inside the same trunk.

Re: Parent POM, properties and scm problem

2007-07-31 Thread Eric Redmond
Maven does this so that child module's scm can be defined once in the parent. scm:svn:https://url/project/trunk Child Then the Child module's scm url is automatically set as: scm:svn:https://url/project/trunk/Child Which is the convention for a multi-module project. If your "Child"

Re: Parent POM, properties and scm problem

2007-07-30 Thread Oscar Picasso
I have also noticed the same behavior with the project url, the sit url and the scm url even if in the effective the corresponding properties are correct (without the artifactId appended). On 7/30/07, Oscar Picasso <[EMAIL PROTECTED]> wrote: > > Hi, > > In the parent POM I have the following: > [.

Parent POM, properties and scm problem

2007-07-30 Thread Oscar Picasso
Hi, In the parent POM I have the following: [...] http://localhost/repos/repo/${groupId}/${artifactId}/trunk ${scmConnection} ${scmConnection} [...] The child POM has nothing expect mandatory elements and the reference to the parent POM. Both the child and the parent ar

AW: Referencing list POM properties

2007-04-12 Thread Kanzlers, Andreas
. ... -Ursprüngliche Nachricht- Von: Kanzlers, Andreas [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. April 2007 09:48 An: Maven Users List Betreff: Referencing list POM properties You can reference all properties defined in the POM xml like project.version, project.build.finalName via

Referencing list POM properties

2007-04-12 Thread Kanzlers, Andreas
You can reference all properties defined in the POM xml like project.version, project.build.finalName via ${project.version}, ${project.build.finalName}. But how can I access a list property, for example the version of a specific dependency ? ... ... ...

Re: Refer to overridden parent POM properties?

2007-02-01 Thread Manos Batsis
Manos Batsis wrote: In multiproject modules i would like to refer to (soon to be) overridden parent POM properties. For exampe, how can i do something like ${parent.project.artifactId} Obviously this does not make sense, i meant something like ${parent.project.artifactId}-module1

Refer to overridden parent POM properties?

2007-02-01 Thread Manos Batsis
Hello, In multiproject modules i would like to refer to (soon to be) overridden parent POM properties. For exampe, how can i do something like ${parent.project.artifactId} When i try using the pre-overridden value like ${project.artifactId} i get an ModelInterpolationException. Using a

[M2] Using Special Chars (& etc.) in POM properties

2006-07-28 Thread Graham Whitehead
. Any help would be greatly appreciated. Thanks, Graham. -- View this message in context: http://www.nabble.com/-M2--Using-Special-Chars-%28--etc.%29-in-POM-properties-tf2015885.html#a5541211 Sent from the Maven - Users forum at Nabble.com. --

Re: [fixed] Problem with filtering on pom properties

2006-05-19 Thread Toni Price
Sorry - yes, meant to mention that I've still got dots in the names and it's now working fine. -- View this message in context: http://www.nabble.com/Problem+with+filtering+on+pom+properties-t1649749.html#a4470255 Sent from the Maven - Users forum at

Re: [fixed] Problem with filtering on pom properties

2006-05-19 Thread Jorg Heymans
mb :-) nonetheless, it's working now! Toni -- View this message in context: http://www.nabble.com/Problem+with+filtering+on+pom+properties-t1649749.html#a4469849 Sent from the Maven - Users forum at Nabble.com. - To u

Re: [fixed] Problem with filtering on pom properties

2006-05-19 Thread Toni Price
derstand is why 'mvn help:effective-settings' yielded a result that made me think the property was being set correctly ... (maybe I was just being dumb :-) nonetheless, it's working now! Toni -- View this message in context: http://www.nabble.com/Problem+with+filtering+on+pom+pro

Re: Problem with filtering on pom properties

2006-05-19 Thread Toni Price
ed to work OK). In any event, I tried changing the relevant ones by removing the dots but unfortunately it still doesn't filter properly ... -- View this message in context: http://www.nabble.com/Problem+with+filtering+on+pom+properties-t1649749.html#a4469122 Sent from the Maven - Users foru

Re: Problem with filtering on pom properties

2006-05-19 Thread Jorg Heymans
... Thanks Toni -- View this message in context: http://www.nabble.com/Problem+with+filtering+on+pom+properties-t1649749.html#a4468317 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with filtering on pom properties

2006-05-19 Thread Toni Price
e thought this is a common sort of use case.) If anyone can point out where I'm going wrong I'd be grateful ... Thanks Toni -- View this message in context: http://www.nabble.com/Problem+with+filtering+on+pom+proper

Re: [M2] xdoc pom properties

2006-04-27 Thread juju
are ok and return Scratch : $project.getProperties().get("value") $project.properties.get("value") $project.properties.value Is there another method to substitute a value in xdoc file with a value in the pom.xml or another value in a file.properties ? -- View this message in

Re: [M2] xdoc pom properties

2006-04-26 Thread Jamie Bisotti
hat in a velocity template, but I would like to do that in a > xdoc file. > > thanks. > -- > View this message in context: > http://www.nabble.com/-M2-xdoc-pom-properties-t1512658.html#a4104278 > Sent from the Maven - Users forum at Nabble.com. > > > ---

[M2] xdoc pom properties

2006-04-26 Thread juju
le.com/-M2-xdoc-pom-properties-t1512658.html#a4104278 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Setting pom properties in mojo

2006-02-22 Thread Sachin Patel
Nope that didn't work. - sachin On Feb 22, 2006, at 6:27 PM, Alexandre Poitras wrote: I have no idea if it has something to do with it but have you tried to get ride of the @readonly annotations on the project property? On 2/22/06, Sachin Patel <[EMAIL PROTECTED]> wrote: How can I set a pr

Re: Setting pom properties in mojo

2006-02-22 Thread Alexandre Poitras
I have no idea if it has something to do with it but have you tried to get ride of the @readonly annotations on the project property? On 2/22/06, Sachin Patel <[EMAIL PROTECTED]> wrote: > How can I set a property in a mojo so that it is accessible in a pom? > > For example I have a dependency... >

Setting pom properties in mojo

2006-02-22 Thread Sachin Patel
How can I set a property in a mojo so that it is accessible in a pom? For example I have a dependency... eclipse org.eclipse.wst.server.core ${version} I have a mojo that needs to dynamically set the versions of my dependencies so I tried adding... /** * @para

Re: [m2] pom properties how-to ?

2005-12-06 Thread Samuel Le Berrigaud
Thanks Odea, however, just a minor change to what you wrote: HELLO There are no "property" tag within "properties". SaM On 12/6/05, Odea Ching <[EMAIL PROTECTED]> wrote: > > Hi Samuel, > > You can use the properties element to set the value of a property in a > resource file through the po

Re: [m2] pom properties how-to ?

2005-12-06 Thread Odea Ching
Hi Samuel, You can use the properties element to set the value of a property in a resource file through the pom's properties section. #sample.properties samle.property=${hello.value} pom.xml: HELLO You can also use it to declare properties/variables that you can use on your plugin

[m2] pom properties how-to ?

2005-12-06 Thread Samuel Le Berrigaud
Hi, just wanted to know how to use the "properties" in the POM (the one defined under project/properties) I tried something like: a.name a.value but it does not work... And then can reference the properties in the POM like that ${a.name} ? Thanks, -- Samuel Le Berrigaud

Re: Parent POM Properties

2005-11-25 Thread Pete
Bruno or Anyone, Was there ever a resolution to reference the parent poms properties ? Pete On 29/10/05, Frank Mena <[EMAIL PROTECTED]> wrote: > BTW, there is a bug when you use ${basedir} inside of > {$basedir}/somemodule > > For example, if your basedir is d:\app\module2, it expands to > d:\ap

Re: Parent POM Properties

2005-10-29 Thread Frank Mena
BTW, there is a bug when you use ${basedir} inside of {$basedir}/somemodule For example, if your basedir is d:\app\module2, it expands to d:\app\module2d:\app\module2 I'm also trying to do somewthinbg similar to you. I'm using a Java/XML binding library (jibx) that requires it to bytecode enhance

Re: POM properties

2005-10-28 Thread Jason van Zyl
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

Re: POM properties

2005-10-28 Thread Tomislav Stojcevich
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 ar

Re: Parent POM Properties

2005-10-28 Thread Bruno Essmann
Jason van Zyl wrote: What is it concretely you are trying to do. Often users give us solutions to their problems without actually telling us what the problem is. We really need to know what you're trying to do first. We definitely don't want duplication and is something we try to avoid so we need

Re: Parent POM Properties

2005-10-27 Thread Jason van Zyl
On Thu, 2005-10-27 at 10:51 +0200, Bruno Essmann wrote: > Hi > > > Is there any way to access property values of a parent POM? > > I'm aware that any tag in a POM serves as valid property, however I'm > looking for a way to access the values of the POM defined by > ${pom.parent.relativePath}. >

Re: Parent POM Properties

2005-10-27 Thread Bruno Essmann
Hmm... I think I'm not clearly expressing what I want to do. I'll try again with an example... Imagine the parent POM states somwhere, e.g. in a plugin configuration: ... ${basedir}/somedir ... Now my subproject inherits this configuration, however the ${basedi

Re: Parent POM Properties

2005-10-27 Thread Bruno Essmann
Yes, I'm aware of the propagation, hence the question if there is a way to *explicitly* access the values of the parent POM. :-) But from the answer I also presume that there is no way, forcing me to put common data to a webpage or some other obscure location rather than into a repo... Cheers, /

Re: Parent POM Properties

2005-10-27 Thread Edwin Punzalan
Hi, All of the configuration values in a parent is propagated to its children. So you may not put a configuration in a child when the parent already has it. Bruno Essmann wrote: Hi Is there any way to access property values of a parent POM? I'm aware that any tag in a POM serves as val

Parent POM Properties

2005-10-27 Thread Bruno Essmann
Hi Is there any way to access property values of a parent POM? I'm aware that any tag in a POM serves as valid property, however I'm looking for a way to access the values of the POM defined by ${pom.parent.relativePath}. Taking this a step further: I'm also looking for a way to access value

RE: POM properties

2005-10-26 Thread Jason van Zyl
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 > > > > > > -Original Message- > From: Jason van Zyl [mailto:[EMAIL PROTECTED] > S

RE: POM properties

2005-10-26 Thread Michael McCrann
ailto:[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

Re: POM properties

2005-10-26 Thread Jason van Zyl
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

POM properties

2005-10-26 Thread Michael McCrann
Hi, Is there any documentation that describes what things from the POM are available as variables? For example, I want to copy my war file into the Weblogic application dir. In my POM I have maven-antrun-plugin package

[m1] How to set pom properties from maven.xml ?

2005-09-23 Thread Guillaume Durand
Hi list, I'd like to modify some existing pom property (declared in the property tag in project.xml) from a maven.xml script. How can I achieve this? I've tried things like pom.getProperties().setProperty(), or pom.setProperties(pom.getProperties().setProperty()) or pom.context.setVariable but

pom properties after the fact [was: do something...]

2004-11-19 Thread Ben Anderson
now best.qb.ever is "Ben Roethlisberger" however, I don't see this behavior for project.xml(pom) properties: project.properties -- best.qb.ever=Tommy Maddox project.xml - ${best.qb.ever} maven.xml pom.b

Re: reference list of all pom.* properties?

2004-09-09 Thread Brett Porter
This is the most comprehensive one: http://cvs.apache.org/viewcvs.cgi/maven/src/java/org/apache/maven/project/Project.java?rev=1.99&view=markup On Thu, 9 Sep 2004 23:14:11 -0400, Springer, Ian P. <[EMAIL PROTECTED]> wrote: > Is there a reference available anywhere for all the pom

reference list of all pom.* properties?

2004-09-09 Thread Springer, Ian P.
Is there a reference available anywhere for all the pom.* properties (pom.artifactId, pom.currentVersion, etc..), as well as pom.* functions (pom.getPluginContext('maven-java-plugin'), pom.getDependency('junit'), etc..) that are defined by

Re: Using POM properties in xdocs

2003-10-06 Thread Arik Kfir
dist, etc'). For trivial tasks it is sometimes obvious, but not always. None-the-less: well done Maven team! - Original Message - From: "Jason van Zyl" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Sunday, October 05, 2003 10:

Re: Using POM properties in xdocs

2003-10-05 Thread Jason van Zyl
On Sun, 2003-10-05 at 18:00, Arik Kfir wrote: > Hello, > > Is it possible to use POM properties in xdoc files? If so, how? There isn't actually a way to interpolate the POM generally into the xdocs but now that I realize that isn't possible that seems strange. I'm surpri

Using POM properties in xdocs

2003-10-05 Thread Arik Kfir
Hello, Is it possible to use POM properties in xdoc files? If so, how? I imagine some sort of token filtering on these files should be applied before generating the site, but I'm not quite sure where to start, as I am a bit new to maven, and I was also hoping some sort of an auto

POM Properties Reference

2003-07-31 Thread Dave Ford
Where can I find a reference of all of the general Maven properties? Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [