You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ulath <mu...@gmail.com> on 2009/08/17 11:09:44 UTC

variables aren't replaced into the installed pom

i have a pom.xml in which versions of the depencies are defined as properties
like ${hibernate-version} etc.

when i run mvn install i expect variables are replaced by actual values bu
they aren't ...

any suggestions?

best regards ...


-- 
View this message in context: http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25003490.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: variables aren't replaced into the installed pom

Posted by Ulath <mu...@gmail.com>.
ok, let me explain this way ...

i run mvn install command to deploy own atrifact to local/remote repo and
install plugin deploys pom file with variables to the repo and i think this
pom file is useless ...

i have also read this jira entry http://jira.codehaus.org/browse/MNG-2971
but i could find a solution.

regards ...


Anders Hammar wrote:
> 
> Ok, that's not how it works. The values of the variables are used during
> runtime, that's it. They are not replaced in the actual pom file.
> 
> /Anders
> 
> On Mon, Aug 17, 2009 at 12:12, Ulath <mu...@gmail.com> wrote:
> 
>>
>> i mean; i expect variables are replaces with the defined values;
>>
>> <dependency>
>>  <groupId>org.hibernate</groupId>
>>  <artifactId>hibernate-validator</artifactId>
>>  <version>${hibernate-validator.version}</version>
>> </dependency>
>>
>> replaced by; [in the installed pom file]
>>
>> <dependency>
>>  <groupId>org.hibernate</groupId>
>>  <artifactId>hibernate-validator</artifactId>
>>  <version>3.1.1</version>
>> </dependency>
>>
>> regards ...
>>
>>
>> Anders Hammar wrote:
>> >
>> > How do you mean; do you expect the pom file to be updated (re-written)
>> so
>> > that the variables are replace by the values defined? Or do you get
>> some
>> > kind of error because the value of the property isn't found?
>> >
>> > /Anders
>> >
>> > On Mon, Aug 17, 2009 at 11:09, Ulath <mu...@gmail.com> wrote:
>> >
>> >>
>> >> i have a pom.xml in which versions of the depencies are defined as
>> >> properties
>> >> like ${hibernate-version} etc.
>> >>
>> >> when i run mvn install i expect variables are replaced by actual
>> values
>> >> bu
>> >> they aren't ...
>> >>
>> >> any suggestions?
>> >>
>> >> best regards ...
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25003490.html
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >> For additional commands, e-mail: users-help@maven.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25004235.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25004743.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: variables aren't replaced into the installed pom

Posted by Anders Hammar <an...@hammar.net>.
Ok, that's not how it works. The values of the variables are used during
runtime, that's it. They are not replaced in the actual pom file.

/Anders

On Mon, Aug 17, 2009 at 12:12, Ulath <mu...@gmail.com> wrote:

>
> i mean; i expect variables are replaces with the defined values;
>
> <dependency>
>  <groupId>org.hibernate</groupId>
>  <artifactId>hibernate-validator</artifactId>
>  <version>${hibernate-validator.version}</version>
> </dependency>
>
> replaced by; [in the installed pom file]
>
> <dependency>
>  <groupId>org.hibernate</groupId>
>  <artifactId>hibernate-validator</artifactId>
>  <version>3.1.1</version>
> </dependency>
>
> regards ...
>
>
> Anders Hammar wrote:
> >
> > How do you mean; do you expect the pom file to be updated (re-written) so
> > that the variables are replace by the values defined? Or do you get some
> > kind of error because the value of the property isn't found?
> >
> > /Anders
> >
> > On Mon, Aug 17, 2009 at 11:09, Ulath <mu...@gmail.com> wrote:
> >
> >>
> >> i have a pom.xml in which versions of the depencies are defined as
> >> properties
> >> like ${hibernate-version} etc.
> >>
> >> when i run mvn install i expect variables are replaced by actual values
> >> bu
> >> they aren't ...
> >>
> >> any suggestions?
> >>
> >> best regards ...
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25003490.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25004235.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: variables aren't replaced into the installed pom

Posted by Ulath <mu...@gmail.com>.
i mean; i expect variables are replaces with the defined values;

<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-validator</artifactId>
  <version>${hibernate-validator.version}</version>
</dependency>

replaced by; [in the installed pom file]

<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-validator</artifactId>
  <version>3.1.1</version>
</dependency>

regards ...


Anders Hammar wrote:
> 
> How do you mean; do you expect the pom file to be updated (re-written) so
> that the variables are replace by the values defined? Or do you get some
> kind of error because the value of the property isn't found?
> 
> /Anders
> 
> On Mon, Aug 17, 2009 at 11:09, Ulath <mu...@gmail.com> wrote:
> 
>>
>> i have a pom.xml in which versions of the depencies are defined as
>> properties
>> like ${hibernate-version} etc.
>>
>> when i run mvn install i expect variables are replaced by actual values
>> bu
>> they aren't ...
>>
>> any suggestions?
>>
>> best regards ...
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25003490.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25004235.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: variables aren't replaced into the installed pom

Posted by Anders Hammar <an...@hammar.net>.
How do you mean; do you expect the pom file to be updated (re-written) so
that the variables are replace by the values defined? Or do you get some
kind of error because the value of the property isn't found?

/Anders

On Mon, Aug 17, 2009 at 11:09, Ulath <mu...@gmail.com> wrote:

>
> i have a pom.xml in which versions of the depencies are defined as
> properties
> like ${hibernate-version} etc.
>
> when i run mvn install i expect variables are replaced by actual values bu
> they aren't ...
>
> any suggestions?
>
> best regards ...
>
>
> --
> View this message in context:
> http://www.nabble.com/variables-aren%27t-replaced-into-the-installed-pom-tp25003490p25003490.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>