You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "LaCasse, John" <JL...@filenet.com> on 2006/05/05 01:44:14 UTC

Version tag and properties

Why is it that properties don't get expanded when used inside of a
version tag? This seems like a bug to me and is making it impossible to
incorporate maven into our build environment because we can't get maven
to use a version property from outside, i.e. via an environment variable
or something of that sort.

 

I've post similar questions to the user group with no response; it is
getting very frustrating. For how great Maven is with versioning this
appears to be a major drawback. Please tell me if I'm missing something
here or if there is another way to accomplish the same thing.

 

It's also inconsistent; as when you do an install to the repository; it
uses the expanded property name; but inside the pom, the version isn't
expanded. And if I try to build a child project it doesn't expand the
parent version property and is therefore looking for a parent with a
version named something like ${blah blah blah}.

 

Thanks,

Jpl

 

 


Re: Version tag and properties

Posted by Brett Porter <br...@apache.org>.
I'll reply on the user list.

LaCasse, John wrote:
> Why is it that properties don't get expanded when used inside of a
> version tag? This seems like a bug to me and is making it impossible to
> incorporate maven into our build environment because we can't get maven
> to use a version property from outside, i.e. via an environment variable
> or something of that sort.
> 
>  
> 
> I've post similar questions to the user group with no response; it is
> getting very frustrating. For how great Maven is with versioning this
> appears to be a major drawback. Please tell me if I'm missing something
> here or if there is another way to accomplish the same thing.
> 
>  
> 
> It's also inconsistent; as when you do an install to the repository; it
> uses the expanded property name; but inside the pom, the version isn't
> expanded. And if I try to build a child project it doesn't expand the
> parent version property and is therefore looking for a parent with a
> version named something like ${blah blah blah}.
> 
>  
> 
> Thanks,
> 
> Jpl
> 
>  
> 
>  
> 
> 

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