Re: Maven variables

2011-06-23 Thread Kaizer Sogiawala
;> >>>>>>>
>> >>>>>>>> Ok..so, if it is not defined how can I know the default value for
>> >>>>>>>> source parameter in the maven-compiler-plugin verion 2.0.2 if the
>> >>>>>>>> documentation is no more online?
>> >>>>>>>> It should be 1.4 but I want to know how verify it..and I want to
>> >> know
>> >>>>>>>> how to behave in similar situations..
>> >>>>>>>>
>> >>>>>>>> 2010/8/3 Justin Edelson :
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> On Aug 3, 2010, at 4:57 AM, Flavio Pompermaier <
>> >> fla8...@gmail.com>
>> >>>>>>>> wrote:
>> >>>>>>>>>
>> >>>>>>>>>> And the default value is..? I still haven't understand how to
>> >>>>> evaluate
>> >>>>>>>>>> the maven.compiler.xxx variables..
>> >>>>>>>>>> For example, the documentation on the web site says that default
>> >>>>> value
>> >>>>>>>>>> of maven.compiler.source is 1.5,
>> >>>>>>>>> As previously discussed, the documentation says no such thing.
>> >>>>>>>>>
>> >>>>>>>>> maven.compiler.source is not defined by default.
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>> but this holds for the current
>> >>>>>>>>>> version (2.3.1)...
>> >>>>>>>>>> What if I want to know the default value for the
>> >>>>> maven.compiler-plugin
>> >>>>>>>>>> version 2.0.2?
>> >>>>>>>>>> I cannot found any documentation about it..I cannot think that
>> >>>>> there's
>> >>>>>>>>>> no way to evaluate its value!!
>> >>>>>>>>>>
>> >>>>>>>>>> 2010/7/13 Stephen Connolly :
>> >>>>>>>>>>> On 13 July 2010 07:40, Flavio Pompermaier 
>> >>>>> wrote:
>> >>>>>>>>>>>
>> >>>>>>>>>>>> This is the description on the source paramenter of the
>> >> compiler
>> >>>>>>>>>>>> plugin page (of the goal compile:compile):
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> source:
>> >>>>>>>>>>>> The -source argument for the Java compiler.
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>   * Type: java.lang.String
>> >>>>>>>>>>>>   * Since: 2.0
>> >>>>>>>>>>>>   * Required: No
>> >>>>>>>>>>>>   * Expression: ${maven.compiler.source}
>> >>>>>>>>>>>>
>> >>>>>>>>>>> This means that if the property maven.compiler.source is
>> >> defined,
>> >>>>> use
>> >>>>>>>> that
>> >>>>>>>>>>> value, otherwise assume that the value is...
>> >>>>>>>>>>>
>> >>>>>>>>>>>>   * Default: 1.5
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> How can I get that value? If it is not evaluable as an
>> >> expression,
>> >>>>> how
>> >>>>>>>>>>>> can I know how it will be evaluated by the plugin?
>> >>>>>>>>>>>> My JavaHome points to a Java 1.6 but as far as I know the
>> >> 2.0.2
>> >>>>>>>>>>>> compiler use 1.4 compilation, isn't it?
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> 2010/7/13 Anders Hammar :
>> >>>>>>>>>>>>> No, you're not configuring the property that way. You're
>> >>>&g

Re: Maven variables

2010-08-04 Thread Anders Hammar
3 Justin Edelson :
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On Aug 3, 2010, at 4:57 AM, Flavio Pompermaier <
> >> fla8...@gmail.com>
> >>>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>>> And the default value is..? I still haven't understand how to
> >>>>> evaluate
> >>>>>>>>>> the maven.compiler.xxx variables..
> >>>>>>>>>> For example, the documentation on the web site says that default
> >>>>> value
> >>>>>>>>>> of maven.compiler.source is 1.5,
> >>>>>>>>> As previously discussed, the documentation says no such thing.
> >>>>>>>>>
> >>>>>>>>> maven.compiler.source is not defined by default.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> but this holds for the current
> >>>>>>>>>> version (2.3.1)...
> >>>>>>>>>> What if I want to know the default value for the
> >>>>> maven.compiler-plugin
> >>>>>>>>>> version 2.0.2?
> >>>>>>>>>> I cannot found any documentation about it..I cannot think that
> >>>>> there's
> >>>>>>>>>> no way to evaluate its value!!
> >>>>>>>>>>
> >>>>>>>>>> 2010/7/13 Stephen Connolly :
> >>>>>>>>>>> On 13 July 2010 07:40, Flavio Pompermaier 
> >>>>> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> This is the description on the source paramenter of the
> >> compiler
> >>>>>>>>>>>> plugin page (of the goal compile:compile):
> >>>>>>>>>>>>
> >>>>>>>>>>>> source:
> >>>>>>>>>>>> The -source argument for the Java compiler.
> >>>>>>>>>>>>
> >>>>>>>>>>>>   * Type: java.lang.String
> >>>>>>>>>>>>   * Since: 2.0
> >>>>>>>>>>>>   * Required: No
> >>>>>>>>>>>>   * Expression: ${maven.compiler.source}
> >>>>>>>>>>>>
> >>>>>>>>>>> This means that if the property maven.compiler.source is
> >> defined,
> >>>>> use
> >>>>>>>> that
> >>>>>>>>>>> value, otherwise assume that the value is...
> >>>>>>>>>>>
> >>>>>>>>>>>>   * Default: 1.5
> >>>>>>>>>>>>
> >>>>>>>>>>>> How can I get that value? If it is not evaluable as an
> >> expression,
> >>>>> how
> >>>>>>>>>>>> can I know how it will be evaluated by the plugin?
> >>>>>>>>>>>> My JavaHome points to a Java 1.6 but as far as I know the
> >> 2.0.2
> >>>>>>>>>>>> compiler use 1.4 compilation, isn't it?
> >>>>>>>>>>>>
> >>>>>>>>>>>> 2010/7/13 Anders Hammar :
> >>>>>>>>>>>>> No, you're not configuring the property that way. You're
> >>>>> configuring
> >>>>>>>> the
> >>>>>>>>>>>>> plugin, but you're not setting the property.
> >>>>>>>>>>>>> A property is set in hte properties section of the pom.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> /Anders
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier <
> >>>>> fla8...@gmail.com
> >>>>>>>>>
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>
> >>>>>>>>>>>&

Re: Maven variables

2010-08-04 Thread Justin Edelson
gt;>>>>>>>> 
>>>>>>>>> maven.compiler.source is not defined by default.
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> but this holds for the current
>>>>>>>>>> version (2.3.1)...
>>>>>>>>>> What if I want to know the default value for the
>>>>> maven.compiler-plugin
>>>>>>>>>> version 2.0.2?
>>>>>>>>>> I cannot found any documentation about it..I cannot think that
>>>>> there's
>>>>>>>>>> no way to evaluate its value!!
>>>>>>>>>> 
>>>>>>>>>> 2010/7/13 Stephen Connolly :
>>>>>>>>>>> On 13 July 2010 07:40, Flavio Pompermaier 
>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> This is the description on the source paramenter of the
>> compiler
>>>>>>>>>>>> plugin page (of the goal compile:compile):
>>>>>>>>>>>> 
>>>>>>>>>>>> source:
>>>>>>>>>>>> The -source argument for the Java compiler.
>>>>>>>>>>>> 
>>>>>>>>>>>>   * Type: java.lang.String
>>>>>>>>>>>>   * Since: 2.0
>>>>>>>>>>>>   * Required: No
>>>>>>>>>>>>   * Expression: ${maven.compiler.source}
>>>>>>>>>>>> 
>>>>>>>>>>> This means that if the property maven.compiler.source is
>> defined,
>>>>> use
>>>>>>>> that
>>>>>>>>>>> value, otherwise assume that the value is...
>>>>>>>>>>> 
>>>>>>>>>>>>   * Default: 1.5
>>>>>>>>>>>> 
>>>>>>>>>>>> How can I get that value? If it is not evaluable as an
>> expression,
>>>>> how
>>>>>>>>>>>> can I know how it will be evaluated by the plugin?
>>>>>>>>>>>> My JavaHome points to a Java 1.6 but as far as I know the
>> 2.0.2
>>>>>>>>>>>> compiler use 1.4 compilation, isn't it?
>>>>>>>>>>>> 
>>>>>>>>>>>> 2010/7/13 Anders Hammar :
>>>>>>>>>>>>> No, you're not configuring the property that way. You're
>>>>> configuring
>>>>>>>> the
>>>>>>>>>>>>> plugin, but you're not setting the property.
>>>>>>>>>>>>> A property is set in hte properties section of the pom.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> /Anders
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier <
>>>>> fla8...@gmail.com
>>>>>>>>> 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I set that variable via the configuration section of the
>>>>> compiler
>>>>>>>>>>>>>> plugin of my pom.xml but the result of help:evaluate of that
>>>>>>>> variable
>>>>>>>>>>>>>> returns null! My question is: how can I retrieve the default
>>>>> values
>>>>>>>> of
>>>>>>>>>>>>>> the parameters of a certain plugin version?if I look at the
>>>>> plugin
>>>>>>>>>>>>>> site I can see that its default value is 1.5. But this is
>> valid
>>>>> for
>>>>>>>>>>>>>> the current version..if I want to know its default value for
>> an
>>>>>>>> older
>>>>>>>>>>>>>> version what am I supposed to do??
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 2010/7/12, Anders Hammar :
>>>>>>>&g

Re: Maven variables

2010-08-04 Thread Anders Hammar
gt;> >> I cannot found any documentation about it..I cannot think that
> >>> there's
> >>> >>> >> no way to evaluate its value!!
> >>> >>> >>
> >>> >>> >> 2010/7/13 Stephen Connolly :
> >>> >>> >>> On 13 July 2010 07:40, Flavio Pompermaier 
> >>> wrote:
> >>> >>> >>>
> >>> >>> >>>> This is the description on the source paramenter of the
> compiler
> >>> >>> >>>> plugin page (of the goal compile:compile):
> >>> >>> >>>>
> >>> >>> >>>> source:
> >>> >>> >>>> The -source argument for the Java compiler.
> >>> >>> >>>>
> >>> >>> >>>>* Type: java.lang.String
> >>> >>> >>>>* Since: 2.0
> >>> >>> >>>>* Required: No
> >>> >>> >>>>* Expression: ${maven.compiler.source}
> >>> >>> >>>>
> >>> >>> >>> This means that if the property maven.compiler.source is
> defined,
> >>> use
> >>> >>> that
> >>> >>> >>> value, otherwise assume that the value is...
> >>> >>> >>>
> >>> >>> >>>>* Default: 1.5
> >>> >>> >>>>
> >>> >>> >>>> How can I get that value? If it is not evaluable as an
> expression,
> >>> how
> >>> >>> >>>> can I know how it will be evaluated by the plugin?
> >>> >>> >>>> My JavaHome points to a Java 1.6 but as far as I know the
> 2.0.2
> >>> >>> >>>> compiler use 1.4 compilation, isn't it?
> >>> >>> >>>>
> >>> >>> >>>> 2010/7/13 Anders Hammar :
> >>> >>> >>>>> No, you're not configuring the property that way. You're
> >>> configuring
> >>> >>> the
> >>> >>> >>>>> plugin, but you're not setting the property.
> >>> >>> >>>>> A property is set in hte properties section of the pom.
> >>> >>> >>>>>
> >>> >>> >>>>> /Anders
> >>> >>> >>>>>
> >>> >>> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier <
> >>> fla8...@gmail.com
> >>> >>> >
> >>> >>> >>>> wrote:
> >>> >>> >>>>>
> >>> >>> >>>>>> I set that variable via the configuration section of the
> >>> compiler
> >>> >>> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
> >>> >>> variable
> >>> >>> >>>>>> returns null! My question is: how can I retrieve the default
> >>> values
> >>> >>> of
> >>> >>> >>>>>> the parameters of a certain plugin version?if I look at the
> >>> plugin
> >>> >>> >>>>>> site I can see that its default value is 1.5. But this is
> valid
> >>> for
> >>> >>> >>>>>> the current version..if I want to know its default value for
> an
> >>> >>> older
> >>> >>> >>>>>> version what am I supposed to do??
> >>> >>> >>>>>>
> >>> >>> >>>>>> 2010/7/12, Anders Hammar :
> >>> >>> >>>>>>> This does work for me:
> >>> >>> >>>>>>>
> >>> >>> >>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
> >>> >>> >>>>>>> -Dexpression=maven.compiler.source
> >>> >>> >>>>>>>
> >>> >>> >>>>>>> I'm setting the maven.compiler.source property here on
> command
> >>> line
> >>> >>> >>>>>> instead
> >>> >>> >>>>>>&

Re: Maven variables

2010-08-04 Thread Justin Edelson
gt;>
>>> >>> >>>>    * Type: java.lang.String
>>> >>> >>>>    * Since: 2.0
>>> >>> >>>>    * Required: No
>>> >>> >>>>    * Expression: ${maven.compiler.source}
>>> >>> >>>>
>>> >>> >>> This means that if the property maven.compiler.source is defined,
>>> use
>>> >>> that
>>> >>> >>> value, otherwise assume that the value is...
>>> >>> >>>
>>> >>> >>>>    * Default: 1.5
>>> >>> >>>>
>>> >>> >>>> How can I get that value? If it is not evaluable as an expression,
>>> how
>>> >>> >>>> can I know how it will be evaluated by the plugin?
>>> >>> >>>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
>>> >>> >>>> compiler use 1.4 compilation, isn't it?
>>> >>> >>>>
>>> >>> >>>> 2010/7/13 Anders Hammar :
>>> >>> >>>>> No, you're not configuring the property that way. You're
>>> configuring
>>> >>> the
>>> >>> >>>>> plugin, but you're not setting the property.
>>> >>> >>>>> A property is set in hte properties section of the pom.
>>> >>> >>>>>
>>> >>> >>>>> /Anders
>>> >>> >>>>>
>>> >>> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier <
>>> fla8...@gmail.com
>>> >>> >
>>> >>> >>>> wrote:
>>> >>> >>>>>
>>> >>> >>>>>> I set that variable via the configuration section of the
>>> compiler
>>> >>> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
>>> >>> variable
>>> >>> >>>>>> returns null! My question is: how can I retrieve the default
>>> values
>>> >>> of
>>> >>> >>>>>> the parameters of a certain plugin version?if I look at the
>>> plugin
>>> >>> >>>>>> site I can see that its default value is 1.5. But this is valid
>>> for
>>> >>> >>>>>> the current version..if I want to know its default value for an
>>> >>> older
>>> >>> >>>>>> version what am I supposed to do??
>>> >>> >>>>>>
>>> >>> >>>>>> 2010/7/12, Anders Hammar :
>>> >>> >>>>>>> This does work for me:
>>> >>> >>>>>>>
>>> >>> >>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
>>> >>> >>>>>>> -Dexpression=maven.compiler.source
>>> >>> >>>>>>>
>>> >>> >>>>>>> I'm setting the maven.compiler.source property here on command
>>> line
>>> >>> >>>>>> instead
>>> >>> >>>>>>> of specifying it in the project, which should work the same.
>>> >>> >>>>>>>
>>> >>> >>>>>>> /Anders
>>> >>> >>>>>>>
>>> >>> >>>>>>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
>>> >>> >>>>>>> wrote:
>>> >>> >>>>>>>
>>> >>> >>>>>>>> From a shell, help:evaluate should be the right thing to do.
>>> >>> >>>>>>>>
>>> >>> >>>>>>>> Could it be that maven.compiler.source is, in fact, null?
>>> >>> >>>>>>>>
>>> >>> >>>>>>>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>>> >>> >>>>>>>>> I mean,how can I display their value?
>>> >>> >>>>>>>>>
>>> >>> >>>>>>>>> 2010/7/12, Justin Edelson :
>>> >>> >>>>>>>>>> what do you mean by inspect?
>>> >>> >>>>>>>>>>
>>> >>> >>>>>>>>>> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>>> >>> >>>>>>>>>>> Hi to all,
>>> >>> >>>>>>>>>>> is there a way to inspect maven.* variables (such as
>>> >>> >>>>>>>>>>> ${maven.compiler.source})?
>>> >>> >>>>>>>>>>> I tried to use the help:evaluate tool but it tells me "null
>>> >>> >>>> object
>>> >>> >>>>>> or
>>> >>> >>>>>>>>>>> invalid expression".
>>> >>> >>>>>>>>>>>
>>> >>> >>>>>>>>>>> Any idea??
>>> >>> >>>>>>>>>>>
>>> >>> >>>>>>>>>>> Best regards,
>>> >>> >>>>>>>>>>> Flavio
>>> >>> >>>>>>>>>>>
>>> >>> >>>>>>>>>>>
>>> >>> >>>>>>
>>> >>> -
>>> >>> >>>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> >>>>>>>>>>> For additional commands, e-mail:
>>> users-h...@maven.apache.org
>>> >>> >>>>>>>>>>>
>>> >>> >>>>>>>>>>
>>> >>> >>>>>>>>>>
>>> >>> >>>>>>>>>>
>>> >>> >>>>
>>> -
>>> >>> >>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> >>>>>>>>>> For additional commands, e-mail:
>>> users-h...@maven.apache.org
>>> >>> >>>>>>>>>>
>>> >>> >>>>>>>>>>
>>> >>> >>>>>>>>>
>>> >>> >>>>>>>>
>>> >>> >>>>>>>>
>>> >>> >>>>>>>>
>>> >>> -
>>> >>> >>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> >>>>>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> >>> >>>>>>>>
>>> >>> >>>>>>>>
>>> >>> >>>>>>>
>>> >>> >>>>>>
>>> >>> >>>>>> --
>>> >>> >>>>>> Inviato dal mio dispositivo mobile
>>> >>> >>>>>>
>>> >>> >>>>>>
>>> >>> -
>>> >>> >>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> >>>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> >>> >>>>>>
>>> >>> >>>>>>
>>> >>> >>>>>
>>> >>> >>>>
>>> >>> >>>>
>>> -
>>> >>> >>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> >>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> >>> >>>>
>>> >>> >>>>
>>> >>> >>>
>>> >>> >>
>>> >>> >>
>>> -
>>> >>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> >> For additional commands, e-mail: users-h...@maven.apache.org
>>> >>> >>
>>> >>> >
>>> >>> > -
>>> >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> > For additional commands, e-mail: users-h...@maven.apache.org
>>> >>> >
>>> >>> >
>>> >>>
>>> >>> -
>>> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> For additional commands, e-mail: users-h...@maven.apache.org
>>> >>>
>>> >>>
>>> >>
>>> >
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



Re: Maven variables

2010-08-04 Thread Flavio Pompermaier
>> >>>>    * Default: 1.5
>> >>> >>>>
>> >>> >>>> How can I get that value? If it is not evaluable as an expression,
>> how
>> >>> >>>> can I know how it will be evaluated by the plugin?
>> >>> >>>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
>> >>> >>>> compiler use 1.4 compilation, isn't it?
>> >>> >>>>
>> >>> >>>> 2010/7/13 Anders Hammar :
>> >>> >>>>> No, you're not configuring the property that way. You're
>> configuring
>> >>> the
>> >>> >>>>> plugin, but you're not setting the property.
>> >>> >>>>> A property is set in hte properties section of the pom.
>> >>> >>>>>
>> >>> >>>>> /Anders
>> >>> >>>>>
>> >>> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier <
>> fla8...@gmail.com
>> >>> >
>> >>> >>>> wrote:
>> >>> >>>>>
>> >>> >>>>>> I set that variable via the configuration section of the
>> compiler
>> >>> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
>> >>> variable
>> >>> >>>>>> returns null! My question is: how can I retrieve the default
>> values
>> >>> of
>> >>> >>>>>> the parameters of a certain plugin version?if I look at the
>> plugin
>> >>> >>>>>> site I can see that its default value is 1.5. But this is valid
>> for
>> >>> >>>>>> the current version..if I want to know its default value for an
>> >>> older
>> >>> >>>>>> version what am I supposed to do??
>> >>> >>>>>>
>> >>> >>>>>> 2010/7/12, Anders Hammar :
>> >>> >>>>>>> This does work for me:
>> >>> >>>>>>>
>> >>> >>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
>> >>> >>>>>>> -Dexpression=maven.compiler.source
>> >>> >>>>>>>
>> >>> >>>>>>> I'm setting the maven.compiler.source property here on command
>> line
>> >>> >>>>>> instead
>> >>> >>>>>>> of specifying it in the project, which should work the same.
>> >>> >>>>>>>
>> >>> >>>>>>> /Anders
>> >>> >>>>>>>
>> >>> >>>>>>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
>> >>> >>>>>>> wrote:
>> >>> >>>>>>>
>> >>> >>>>>>>> From a shell, help:evaluate should be the right thing to do.
>> >>> >>>>>>>>
>> >>> >>>>>>>> Could it be that maven.compiler.source is, in fact, null?
>> >>> >>>>>>>>
>> >>> >>>>>>>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>> >>> >>>>>>>>> I mean,how can I display their value?
>> >>> >>>>>>>>>
>> >>> >>>>>>>>> 2010/7/12, Justin Edelson :
>> >>> >>>>>>>>>> what do you mean by inspect?
>> >>> >>>>>>>>>>
>> >>> >>>>>>>>>> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>> >>> >>>>>>>>>>> Hi to all,
>> >>> >>>>>>>>>>> is there a way to inspect maven.* variables (such as
>> >>> >>>>>>>>>>> ${maven.compiler.source})?
>> >>> >>>>>>>>>>> I tried to use the help:evaluate tool but it tells me "null
>> >>> >>>> object
>> >>> >>>>>> or
>> >>> >>>>>>>>>>> invalid expression".
>> >>> >>>>>>>>>>>
>> >>> >>>>>>>>>>> Any idea??
>> >>> >>>>>>>>>>>
>> >>> >>>>>>>>>>> Best regards,
>> >>> >>>>>>>>>>> Flavio
>> >>> >>>>>>>>>>>
>> >>> >>>>>>>>>>>
>> >>> >>>>>>
>> >>> -
>> >>> >>>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> >>>>>>>>>>> For additional commands, e-mail:
>> users-h...@maven.apache.org
>> >>> >>>>>>>>>>>
>> >>> >>>>>>>>>>
>> >>> >>>>>>>>>>
>> >>> >>>>>>>>>>
>> >>> >>>>
>> -
>> >>> >>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> >>>>>>>>>> For additional commands, e-mail:
>> users-h...@maven.apache.org
>> >>> >>>>>>>>>>
>> >>> >>>>>>>>>>
>> >>> >>>>>>>>>
>> >>> >>>>>>>>
>> >>> >>>>>>>>
>> >>> >>>>>>>>
>> >>> -
>> >>> >>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> >>>>>>>> For additional commands, e-mail: users-h...@maven.apache.org
>> >>> >>>>>>>>
>> >>> >>>>>>>>
>> >>> >>>>>>>
>> >>> >>>>>>
>> >>> >>>>>> --
>> >>> >>>>>> Inviato dal mio dispositivo mobile
>> >>> >>>>>>
>> >>> >>>>>>
>> >>> -
>> >>> >>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> >>>>>> For additional commands, e-mail: users-h...@maven.apache.org
>> >>> >>>>>>
>> >>> >>>>>>
>> >>> >>>>>
>> >>> >>>>
>> >>> >>>>
>> -
>> >>> >>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> >>>> For additional commands, e-mail: users-h...@maven.apache.org
>> >>> >>>>
>> >>> >>>>
>> >>> >>>
>> >>> >>
>> >>> >>
>> -
>> >>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >>> >>
>> >>> >
>> >>> > -
>> >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> > For additional commands, e-mail: users-h...@maven.apache.org
>> >>> >
>> >>> >
>> >>>
>> >>> -
>> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> For additional commands, e-mail: users-h...@maven.apache.org
>> >>>
>> >>>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

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



Re: Maven variables

2010-08-03 Thread Anders Hammar
t; >>> >>>>>
> >>> >>>>> /Anders
> >>> >>>>>
> >>> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier <
> fla8...@gmail.com
> >>> >
> >>> >>>> wrote:
> >>> >>>>>
> >>> >>>>>> I set that variable via the configuration section of the
> compiler
> >>> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
> >>> variable
> >>> >>>>>> returns null! My question is: how can I retrieve the default
> values
> >>> of
> >>> >>>>>> the parameters of a certain plugin version?if I look at the
> plugin
> >>> >>>>>> site I can see that its default value is 1.5. But this is valid
> for
> >>> >>>>>> the current version..if I want to know its default value for an
> >>> older
> >>> >>>>>> version what am I supposed to do??
> >>> >>>>>>
> >>> >>>>>> 2010/7/12, Anders Hammar :
> >>> >>>>>>> This does work for me:
> >>> >>>>>>>
> >>> >>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
> >>> >>>>>>> -Dexpression=maven.compiler.source
> >>> >>>>>>>
> >>> >>>>>>> I'm setting the maven.compiler.source property here on command
> line
> >>> >>>>>> instead
> >>> >>>>>>> of specifying it in the project, which should work the same.
> >>> >>>>>>>
> >>> >>>>>>> /Anders
> >>> >>>>>>>
> >>> >>>>>>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
> >>> >>>>>>> wrote:
> >>> >>>>>>>
> >>> >>>>>>>> From a shell, help:evaluate should be the right thing to do.
> >>> >>>>>>>>
> >>> >>>>>>>> Could it be that maven.compiler.source is, in fact, null?
> >>> >>>>>>>>
> >>> >>>>>>>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
> >>> >>>>>>>>> I mean,how can I display their value?
> >>> >>>>>>>>>
> >>> >>>>>>>>> 2010/7/12, Justin Edelson :
> >>> >>>>>>>>>> what do you mean by inspect?
> >>> >>>>>>>>>>
> >>> >>>>>>>>>> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
> >>> >>>>>>>>>>> Hi to all,
> >>> >>>>>>>>>>> is there a way to inspect maven.* variables (such as
> >>> >>>>>>>>>>> ${maven.compiler.source})?
> >>> >>>>>>>>>>> I tried to use the help:evaluate tool but it tells me "null
> >>> >>>> object
> >>> >>>>>> or
> >>> >>>>>>>>>>> invalid expression".
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>> Any idea??
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>> Best regards,
> >>> >>>>>>>>>>> Flavio
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>
> >>> -
> >>> >>>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>>>>>>> For additional commands, e-mail:
> users-h...@maven.apache.org
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>
> -
> >>> >>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>>>>>> For additional commands, e-mail:
> users-h...@maven.apache.org
> >>> >>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>>
> >>> -
> >>> >>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>>>> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>
> >>> >>>>>>
> >>> >>>>>> --
> >>> >>>>>> Inviato dal mio dispositivo mobile
> >>> >>>>>>
> >>> >>>>>>
> >>> -
> >>> >>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>>
> >>> >>>>
> >>> >>>>
> -
> >>> >>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>>>
> >>> >>>>
> >>> >>>
> >>> >>
> >>> >>
> -
> >>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>
> >>> >
> >>> > -
> >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> > For additional commands, e-mail: users-h...@maven.apache.org
> >>> >
> >>> >
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >>>
> >>>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven variables

2010-08-03 Thread Anders Hammar
t; >>> >>>>>
> >>> >>>>> /Anders
> >>> >>>>>
> >>> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier <
> fla8...@gmail.com
> >>> >
> >>> >>>> wrote:
> >>> >>>>>
> >>> >>>>>> I set that variable via the configuration section of the
> compiler
> >>> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
> >>> variable
> >>> >>>>>> returns null! My question is: how can I retrieve the default
> values
> >>> of
> >>> >>>>>> the parameters of a certain plugin version?if I look at the
> plugin
> >>> >>>>>> site I can see that its default value is 1.5. But this is valid
> for
> >>> >>>>>> the current version..if I want to know its default value for an
> >>> older
> >>> >>>>>> version what am I supposed to do??
> >>> >>>>>>
> >>> >>>>>> 2010/7/12, Anders Hammar :
> >>> >>>>>>> This does work for me:
> >>> >>>>>>>
> >>> >>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
> >>> >>>>>>> -Dexpression=maven.compiler.source
> >>> >>>>>>>
> >>> >>>>>>> I'm setting the maven.compiler.source property here on command
> line
> >>> >>>>>> instead
> >>> >>>>>>> of specifying it in the project, which should work the same.
> >>> >>>>>>>
> >>> >>>>>>> /Anders
> >>> >>>>>>>
> >>> >>>>>>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
> >>> >>>>>>> wrote:
> >>> >>>>>>>
> >>> >>>>>>>> From a shell, help:evaluate should be the right thing to do.
> >>> >>>>>>>>
> >>> >>>>>>>> Could it be that maven.compiler.source is, in fact, null?
> >>> >>>>>>>>
> >>> >>>>>>>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
> >>> >>>>>>>>> I mean,how can I display their value?
> >>> >>>>>>>>>
> >>> >>>>>>>>> 2010/7/12, Justin Edelson :
> >>> >>>>>>>>>> what do you mean by inspect?
> >>> >>>>>>>>>>
> >>> >>>>>>>>>> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
> >>> >>>>>>>>>>> Hi to all,
> >>> >>>>>>>>>>> is there a way to inspect maven.* variables (such as
> >>> >>>>>>>>>>> ${maven.compiler.source})?
> >>> >>>>>>>>>>> I tried to use the help:evaluate tool but it tells me "null
> >>> >>>> object
> >>> >>>>>> or
> >>> >>>>>>>>>>> invalid expression".
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>> Any idea??
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>> Best regards,
> >>> >>>>>>>>>>> Flavio
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>>
> >>> >>>>>>
> >>> -
> >>> >>>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>>>>>>> For additional commands, e-mail:
> users-h...@maven.apache.org
> >>> >>>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>
> -
> >>> >>>>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>>>>>> For additional commands, e-mail:
> users-h...@maven.apache.org
> >>> >>>>>>>>>>
> >>> >>>>>>>>>>
> >>> >>>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>>
> >>> -
> >>> >>>>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>>>> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>>>>>>>
> >>> >>>>>>>>
> >>> >>>>>>>
> >>> >>>>>>
> >>> >>>>>> --
> >>> >>>>>> Inviato dal mio dispositivo mobile
> >>> >>>>>>
> >>> >>>>>>
> >>> -
> >>> >>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>>>> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>>
> >>> >>>>
> >>> >>>>
> -
> >>> >>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >>>> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>>>
> >>> >>>>
> >>> >>>
> >>> >>
> >>> >>
> -
> >>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>> >>
> >>> >
> >>> > -
> >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> > For additional commands, e-mail: users-h...@maven.apache.org
> >>> >
> >>> >
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >>>
> >>>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven variables

2010-08-03 Thread Flavio Pompermaier
I tried the suggested command with the current version:
   mvn org.apache.maven.plugins:maven-compiler-plugin:2.3.1:help
-Ddetail -Dgoal=compile
and things are fine (as I was searching for).

However for the old version I was searching for (2.0.2) it doesn't
work..such auto-documentation was not implemented for that version..?
   mvn org.apache.maven.plugins:maven-compiler-plugin:2.0.2:help
-Ddetail -Dgoal=compile

2010/8/3 Flavio Pompermaier :
> I think you intend
>
> mvn help:describe -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-compiler-plugin -Dversion=2.0.2
> -Dcmd=compiler:compile -Ddetail
>
> However such documentation doesn't show the default value of
> parameters (not all at least)!
>
> 2010/8/3 Anders Hammar :
>> You can always get the docs from the plugin. Here's how:
>> http://www.sonatype.com/people/2010/06/diy-retrieving-a-maven-plugins-documentation/
>>
>> /Anders
>>
>> On Tue, Aug 3, 2010 at 14:12, Flavio Pompermaier  wrote:
>>
>>> Ok..so, if it is not defined how can I know the default value for
>>> source parameter in the maven-compiler-plugin verion 2.0.2 if the
>>> documentation is no more online?
>>> It should be 1.4 but I want to know how verify it..and I want to know
>>> how to behave in similar situations..
>>>
>>> 2010/8/3 Justin Edelson :
>>> >
>>> >
>>> > On Aug 3, 2010, at 4:57 AM, Flavio Pompermaier 
>>> wrote:
>>> >
>>> >> And the default value is..? I still haven't understand how to evaluate
>>> >> the maven.compiler.xxx variables..
>>> >> For example, the documentation on the web site says that default value
>>> >> of maven.compiler.source is 1.5,
>>> > As previously discussed, the documentation says no such thing.
>>> >
>>> > maven.compiler.source is not defined by default.
>>> >
>>> >
>>> >> but this holds for the current
>>> >> version (2.3.1)...
>>> >> What if I want to know the default value for the maven.compiler-plugin
>>> >> version 2.0.2?
>>> >> I cannot found any documentation about it..I cannot think that there's
>>> >> no way to evaluate its value!!
>>> >>
>>> >> 2010/7/13 Stephen Connolly :
>>> >>> On 13 July 2010 07:40, Flavio Pompermaier  wrote:
>>> >>>
>>> >>>> This is the description on the source paramenter of the compiler
>>> >>>> plugin page (of the goal compile:compile):
>>> >>>>
>>> >>>> source:
>>> >>>> The -source argument for the Java compiler.
>>> >>>>
>>> >>>>    * Type: java.lang.String
>>> >>>>    * Since: 2.0
>>> >>>>    * Required: No
>>> >>>>    * Expression: ${maven.compiler.source}
>>> >>>>
>>> >>> This means that if the property maven.compiler.source is defined, use
>>> that
>>> >>> value, otherwise assume that the value is...
>>> >>>
>>> >>>>    * Default: 1.5
>>> >>>>
>>> >>>> How can I get that value? If it is not evaluable as an expression, how
>>> >>>> can I know how it will be evaluated by the plugin?
>>> >>>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
>>> >>>> compiler use 1.4 compilation, isn't it?
>>> >>>>
>>> >>>> 2010/7/13 Anders Hammar :
>>> >>>>> No, you're not configuring the property that way. You're configuring
>>> the
>>> >>>>> plugin, but you're not setting the property.
>>> >>>>> A property is set in hte properties section of the pom.
>>> >>>>>
>>> >>>>> /Anders
>>> >>>>>
>>> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier >> >
>>> >>>> wrote:
>>> >>>>>
>>> >>>>>> I set that variable via the configuration section of the compiler
>>> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
>>> variable
>>> >>>>>> returns null! My question is: how can I retrieve the default values
>>> of
>>> >>>>>> the parameters of a certain plugin version?if I look at 

Re: Maven variables

2010-08-03 Thread Flavio Pompermaier
I think you intend

mvn help:describe -DgroupId=org.apache.maven.plugins
-DartifactId=maven-compiler-plugin -Dversion=2.0.2
-Dcmd=compiler:compile -Ddetail

However such documentation doesn't show the default value of
parameters (not all at least)!

2010/8/3 Anders Hammar :
> You can always get the docs from the plugin. Here's how:
> http://www.sonatype.com/people/2010/06/diy-retrieving-a-maven-plugins-documentation/
>
> /Anders
>
> On Tue, Aug 3, 2010 at 14:12, Flavio Pompermaier  wrote:
>
>> Ok..so, if it is not defined how can I know the default value for
>> source parameter in the maven-compiler-plugin verion 2.0.2 if the
>> documentation is no more online?
>> It should be 1.4 but I want to know how verify it..and I want to know
>> how to behave in similar situations..
>>
>> 2010/8/3 Justin Edelson :
>> >
>> >
>> > On Aug 3, 2010, at 4:57 AM, Flavio Pompermaier 
>> wrote:
>> >
>> >> And the default value is..? I still haven't understand how to evaluate
>> >> the maven.compiler.xxx variables..
>> >> For example, the documentation on the web site says that default value
>> >> of maven.compiler.source is 1.5,
>> > As previously discussed, the documentation says no such thing.
>> >
>> > maven.compiler.source is not defined by default.
>> >
>> >
>> >> but this holds for the current
>> >> version (2.3.1)...
>> >> What if I want to know the default value for the maven.compiler-plugin
>> >> version 2.0.2?
>> >> I cannot found any documentation about it..I cannot think that there's
>> >> no way to evaluate its value!!
>> >>
>> >> 2010/7/13 Stephen Connolly :
>> >>> On 13 July 2010 07:40, Flavio Pompermaier  wrote:
>> >>>
>> >>>> This is the description on the source paramenter of the compiler
>> >>>> plugin page (of the goal compile:compile):
>> >>>>
>> >>>> source:
>> >>>> The -source argument for the Java compiler.
>> >>>>
>> >>>>    * Type: java.lang.String
>> >>>>    * Since: 2.0
>> >>>>    * Required: No
>> >>>>    * Expression: ${maven.compiler.source}
>> >>>>
>> >>> This means that if the property maven.compiler.source is defined, use
>> that
>> >>> value, otherwise assume that the value is...
>> >>>
>> >>>>    * Default: 1.5
>> >>>>
>> >>>> How can I get that value? If it is not evaluable as an expression, how
>> >>>> can I know how it will be evaluated by the plugin?
>> >>>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
>> >>>> compiler use 1.4 compilation, isn't it?
>> >>>>
>> >>>> 2010/7/13 Anders Hammar :
>> >>>>> No, you're not configuring the property that way. You're configuring
>> the
>> >>>>> plugin, but you're not setting the property.
>> >>>>> A property is set in hte properties section of the pom.
>> >>>>>
>> >>>>> /Anders
>> >>>>>
>> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier > >
>> >>>> wrote:
>> >>>>>
>> >>>>>> I set that variable via the configuration section of the compiler
>> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
>> variable
>> >>>>>> returns null! My question is: how can I retrieve the default values
>> of
>> >>>>>> the parameters of a certain plugin version?if I look at the plugin
>> >>>>>> site I can see that its default value is 1.5. But this is valid for
>> >>>>>> the current version..if I want to know its default value for an
>> older
>> >>>>>> version what am I supposed to do??
>> >>>>>>
>> >>>>>> 2010/7/12, Anders Hammar :
>> >>>>>>> This does work for me:
>> >>>>>>>
>> >>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
>> >>>>>>> -Dexpression=maven.compiler.source
>> >>>>>>>
>> >>>>>>> I'm setting the mave

Re: Maven variables

2010-08-03 Thread Anders Hammar
You can always get the docs from the plugin. Here's how:
http://www.sonatype.com/people/2010/06/diy-retrieving-a-maven-plugins-documentation/

/Anders

On Tue, Aug 3, 2010 at 14:12, Flavio Pompermaier  wrote:

> Ok..so, if it is not defined how can I know the default value for
> source parameter in the maven-compiler-plugin verion 2.0.2 if the
> documentation is no more online?
> It should be 1.4 but I want to know how verify it..and I want to know
> how to behave in similar situations..
>
> 2010/8/3 Justin Edelson :
> >
> >
> > On Aug 3, 2010, at 4:57 AM, Flavio Pompermaier 
> wrote:
> >
> >> And the default value is..? I still haven't understand how to evaluate
> >> the maven.compiler.xxx variables..
> >> For example, the documentation on the web site says that default value
> >> of maven.compiler.source is 1.5,
> > As previously discussed, the documentation says no such thing.
> >
> > maven.compiler.source is not defined by default.
> >
> >
> >> but this holds for the current
> >> version (2.3.1)...
> >> What if I want to know the default value for the maven.compiler-plugin
> >> version 2.0.2?
> >> I cannot found any documentation about it..I cannot think that there's
> >> no way to evaluate its value!!
> >>
> >> 2010/7/13 Stephen Connolly :
> >>> On 13 July 2010 07:40, Flavio Pompermaier  wrote:
> >>>
> >>>> This is the description on the source paramenter of the compiler
> >>>> plugin page (of the goal compile:compile):
> >>>>
> >>>> source:
> >>>> The -source argument for the Java compiler.
> >>>>
> >>>>* Type: java.lang.String
> >>>>* Since: 2.0
> >>>>* Required: No
> >>>>* Expression: ${maven.compiler.source}
> >>>>
> >>> This means that if the property maven.compiler.source is defined, use
> that
> >>> value, otherwise assume that the value is...
> >>>
> >>>>* Default: 1.5
> >>>>
> >>>> How can I get that value? If it is not evaluable as an expression, how
> >>>> can I know how it will be evaluated by the plugin?
> >>>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
> >>>> compiler use 1.4 compilation, isn't it?
> >>>>
> >>>> 2010/7/13 Anders Hammar :
> >>>>> No, you're not configuring the property that way. You're configuring
> the
> >>>>> plugin, but you're not setting the property.
> >>>>> A property is set in hte properties section of the pom.
> >>>>>
> >>>>> /Anders
> >>>>>
> >>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier  >
> >>>> wrote:
> >>>>>
> >>>>>> I set that variable via the configuration section of the compiler
> >>>>>> plugin of my pom.xml but the result of help:evaluate of that
> variable
> >>>>>> returns null! My question is: how can I retrieve the default values
> of
> >>>>>> the parameters of a certain plugin version?if I look at the plugin
> >>>>>> site I can see that its default value is 1.5. But this is valid for
> >>>>>> the current version..if I want to know its default value for an
> older
> >>>>>> version what am I supposed to do??
> >>>>>>
> >>>>>> 2010/7/12, Anders Hammar :
> >>>>>>> This does work for me:
> >>>>>>>
> >>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
> >>>>>>> -Dexpression=maven.compiler.source
> >>>>>>>
> >>>>>>> I'm setting the maven.compiler.source property here on command line
> >>>>>> instead
> >>>>>>> of specifying it in the project, which should work the same.
> >>>>>>>
> >>>>>>> /Anders
> >>>>>>>
> >>>>>>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>>> From a shell, help:evaluate should be the right thing to do.
> >>>>>>>>
> >>>>>>>> Could it be that maven.compiler.source is, in fact, null?
> >>>>>>

Re: Maven variables

2010-08-03 Thread Flavio Pompermaier
Ok..so, if it is not defined how can I know the default value for
source parameter in the maven-compiler-plugin verion 2.0.2 if the
documentation is no more online?
It should be 1.4 but I want to know how verify it..and I want to know
how to behave in similar situations..

2010/8/3 Justin Edelson :
>
>
> On Aug 3, 2010, at 4:57 AM, Flavio Pompermaier  wrote:
>
>> And the default value is..? I still haven't understand how to evaluate
>> the maven.compiler.xxx variables..
>> For example, the documentation on the web site says that default value
>> of maven.compiler.source is 1.5,
> As previously discussed, the documentation says no such thing.
>
> maven.compiler.source is not defined by default.
>
>
>> but this holds for the current
>> version (2.3.1)...
>> What if I want to know the default value for the maven.compiler-plugin
>> version 2.0.2?
>> I cannot found any documentation about it..I cannot think that there's
>> no way to evaluate its value!!
>>
>> 2010/7/13 Stephen Connolly :
>>> On 13 July 2010 07:40, Flavio Pompermaier  wrote:
>>>
>>>> This is the description on the source paramenter of the compiler
>>>> plugin page (of the goal compile:compile):
>>>>
>>>> source:
>>>> The -source argument for the Java compiler.
>>>>
>>>>    * Type: java.lang.String
>>>>    * Since: 2.0
>>>>    * Required: No
>>>>    * Expression: ${maven.compiler.source}
>>>>
>>> This means that if the property maven.compiler.source is defined, use that
>>> value, otherwise assume that the value is...
>>>
>>>>    * Default: 1.5
>>>>
>>>> How can I get that value? If it is not evaluable as an expression, how
>>>> can I know how it will be evaluated by the plugin?
>>>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
>>>> compiler use 1.4 compilation, isn't it?
>>>>
>>>> 2010/7/13 Anders Hammar :
>>>>> No, you're not configuring the property that way. You're configuring the
>>>>> plugin, but you're not setting the property.
>>>>> A property is set in hte properties section of the pom.
>>>>>
>>>>> /Anders
>>>>>
>>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier 
>>>> wrote:
>>>>>
>>>>>> I set that variable via the configuration section of the compiler
>>>>>> plugin of my pom.xml but the result of help:evaluate of that variable
>>>>>> returns null! My question is: how can I retrieve the default values of
>>>>>> the parameters of a certain plugin version?if I look at the plugin
>>>>>> site I can see that its default value is 1.5. But this is valid for
>>>>>> the current version..if I want to know its default value for an older
>>>>>> version what am I supposed to do??
>>>>>>
>>>>>> 2010/7/12, Anders Hammar :
>>>>>>> This does work for me:
>>>>>>>
>>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
>>>>>>> -Dexpression=maven.compiler.source
>>>>>>>
>>>>>>> I'm setting the maven.compiler.source property here on command line
>>>>>> instead
>>>>>>> of specifying it in the project, which should work the same.
>>>>>>>
>>>>>>> /Anders
>>>>>>>
>>>>>>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
>>>>>>> wrote:
>>>>>>>
>>>>>>>> From a shell, help:evaluate should be the right thing to do.
>>>>>>>>
>>>>>>>> Could it be that maven.compiler.source is, in fact, null?
>>>>>>>>
>>>>>>>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>>>>>>>>> I mean,how can I display their value?
>>>>>>>>>
>>>>>>>>> 2010/7/12, Justin Edelson :
>>>>>>>>>> what do you mean by inspect?
>>>>>>>>>>
>>>>>>>>>> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>>>>>>>>>>> Hi to all,
>>>>>>>>>>> is there a way to inspect maven.* vari

Re: Maven variables

2010-08-03 Thread Justin Edelson


On Aug 3, 2010, at 4:57 AM, Flavio Pompermaier  wrote:

> And the default value is..? I still haven't understand how to evaluate
> the maven.compiler.xxx variables..
> For example, the documentation on the web site says that default value
> of maven.compiler.source is 1.5,
As previously discussed, the documentation says no such thing.

maven.compiler.source is not defined by default.


> but this holds for the current
> version (2.3.1)...
> What if I want to know the default value for the maven.compiler-plugin
> version 2.0.2?
> I cannot found any documentation about it..I cannot think that there's
> no way to evaluate its value!!
> 
> 2010/7/13 Stephen Connolly :
>> On 13 July 2010 07:40, Flavio Pompermaier  wrote:
>> 
>>> This is the description on the source paramenter of the compiler
>>> plugin page (of the goal compile:compile):
>>> 
>>> source:
>>> The -source argument for the Java compiler.
>>> 
>>>* Type: java.lang.String
>>>* Since: 2.0
>>>* Required: No
>>>* Expression: ${maven.compiler.source}
>>> 
>> This means that if the property maven.compiler.source is defined, use that
>> value, otherwise assume that the value is...
>> 
>>>* Default: 1.5
>>> 
>>> How can I get that value? If it is not evaluable as an expression, how
>>> can I know how it will be evaluated by the plugin?
>>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
>>> compiler use 1.4 compilation, isn't it?
>>> 
>>> 2010/7/13 Anders Hammar :
>>>> No, you're not configuring the property that way. You're configuring the
>>>> plugin, but you're not setting the property.
>>>> A property is set in hte properties section of the pom.
>>>> 
>>>> /Anders
>>>> 
>>>> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier 
>>> wrote:
>>>> 
>>>>> I set that variable via the configuration section of the compiler
>>>>> plugin of my pom.xml but the result of help:evaluate of that variable
>>>>> returns null! My question is: how can I retrieve the default values of
>>>>> the parameters of a certain plugin version?if I look at the plugin
>>>>> site I can see that its default value is 1.5. But this is valid for
>>>>> the current version..if I want to know its default value for an older
>>>>> version what am I supposed to do??
>>>>> 
>>>>> 2010/7/12, Anders Hammar :
>>>>>> This does work for me:
>>>>>> 
>>>>>> mvn help:evaluate -Dmaven.compiler.source=1.5
>>>>>> -Dexpression=maven.compiler.source
>>>>>> 
>>>>>> I'm setting the maven.compiler.source property here on command line
>>>>> instead
>>>>>> of specifying it in the project, which should work the same.
>>>>>> 
>>>>>> /Anders
>>>>>> 
>>>>>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
>>>>>> wrote:
>>>>>> 
>>>>>>> From a shell, help:evaluate should be the right thing to do.
>>>>>>> 
>>>>>>> Could it be that maven.compiler.source is, in fact, null?
>>>>>>> 
>>>>>>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>>>>>>>> I mean,how can I display their value?
>>>>>>>> 
>>>>>>>> 2010/7/12, Justin Edelson :
>>>>>>>>> what do you mean by inspect?
>>>>>>>>> 
>>>>>>>>> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>>>>>>>>>> Hi to all,
>>>>>>>>>> is there a way to inspect maven.* variables (such as
>>>>>>>>>> ${maven.compiler.source})?
>>>>>>>>>> I tried to use the help:evaluate tool but it tells me "null
>>> object
>>>>> or
>>>>>>>>>> invalid expression".
>>>>>>>>>> 
>>>>>>>>>> Any idea??
>>>>>>>>>> 
>>>>>>>>>> Best regards,
>>>>>>>>>> Flavio
>>>>>>>>>> 
>>>>>>>>>> 
>>>>> 

Re: Maven variables

2010-08-03 Thread Flavio Pompermaier
And the default value is..? I still haven't understand how to evaluate
the maven.compiler.xxx variables..
For example, the documentation on the web site says that default value
of maven.compiler.source is 1.5, but this holds for the current
version (2.3.1)...
What if I want to know the default value for the maven.compiler-plugin
version 2.0.2?
I cannot found any documentation about it..I cannot think that there's
no way to evaluate its value!!

2010/7/13 Stephen Connolly :
> On 13 July 2010 07:40, Flavio Pompermaier  wrote:
>
>> This is the description on the source paramenter of the compiler
>> plugin page (of the goal compile:compile):
>>
>> source:
>> The -source argument for the Java compiler.
>>
>>    * Type: java.lang.String
>>    * Since: 2.0
>>    * Required: No
>>    * Expression: ${maven.compiler.source}
>>
> This means that if the property maven.compiler.source is defined, use that
> value, otherwise assume that the value is...
>
>>    * Default: 1.5
>>
>> How can I get that value? If it is not evaluable as an expression, how
>> can I know how it will be evaluated by the plugin?
>> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
>> compiler use 1.4 compilation, isn't it?
>>
>> 2010/7/13 Anders Hammar :
>> > No, you're not configuring the property that way. You're configuring the
>> > plugin, but you're not setting the property.
>> > A property is set in hte properties section of the pom.
>> >
>> > /Anders
>> >
>> > On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier 
>> wrote:
>> >
>> >> I set that variable via the configuration section of the compiler
>> >> plugin of my pom.xml but the result of help:evaluate of that variable
>> >> returns null! My question is: how can I retrieve the default values of
>> >> the parameters of a certain plugin version?if I look at the plugin
>> >> site I can see that its default value is 1.5. But this is valid for
>> >> the current version..if I want to know its default value for an older
>> >> version what am I supposed to do??
>> >>
>> >> 2010/7/12, Anders Hammar :
>> >> > This does work for me:
>> >> >
>> >> > mvn help:evaluate -Dmaven.compiler.source=1.5
>> >> > -Dexpression=maven.compiler.source
>> >> >
>> >> > I'm setting the maven.compiler.source property here on command line
>> >> instead
>> >> > of specifying it in the project, which should work the same.
>> >> >
>> >> > /Anders
>> >> >
>> >> > On Mon, Jul 12, 2010 at 23:27, Justin Edelson
>> >> > wrote:
>> >> >
>> >> >> From a shell, help:evaluate should be the right thing to do.
>> >> >>
>> >> >> Could it be that maven.compiler.source is, in fact, null?
>> >> >>
>> >> >> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>> >> >> > I mean,how can I display their value?
>> >> >> >
>> >> >> > 2010/7/12, Justin Edelson :
>> >> >> >> what do you mean by inspect?
>> >> >> >>
>> >> >> >> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>> >> >> >>> Hi to all,
>> >> >> >>> is there a way to inspect maven.* variables (such as
>> >> >> >>> ${maven.compiler.source})?
>> >> >> >>> I tried to use the help:evaluate tool but it tells me "null
>> object
>> >> or
>> >> >> >>> invalid expression".
>> >> >> >>>
>> >> >> >>> Any idea??
>> >> >> >>>
>> >> >> >>> Best regards,
>> >> >> >>> Flavio
>> >> >> >>>
>> >> >> >>>
>> >> -
>> >> >> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >> >>> For additional commands, e-mail: users-h...@maven.apache.org
>> >> >> >>>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> -
>> >> >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >>
>> >> >>
>> >> >> -
>> >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >> >>
>> >> >>
>> >> >
>> >>
>> >> --
>> >> Inviato dal mio dispositivo mobile
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

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



Re: Maven variables

2010-07-13 Thread Stephen Connolly
On 13 July 2010 07:40, Flavio Pompermaier  wrote:

> This is the description on the source paramenter of the compiler
> plugin page (of the goal compile:compile):
>
> source:
> The -source argument for the Java compiler.
>
>* Type: java.lang.String
>* Since: 2.0
>* Required: No
>* Expression: ${maven.compiler.source}
>
This means that if the property maven.compiler.source is defined, use that
value, otherwise assume that the value is...

>* Default: 1.5
>
> How can I get that value? If it is not evaluable as an expression, how
> can I know how it will be evaluated by the plugin?
> My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
> compiler use 1.4 compilation, isn't it?
>
> 2010/7/13 Anders Hammar :
> > No, you're not configuring the property that way. You're configuring the
> > plugin, but you're not setting the property.
> > A property is set in hte properties section of the pom.
> >
> > /Anders
> >
> > On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier 
> wrote:
> >
> >> I set that variable via the configuration section of the compiler
> >> plugin of my pom.xml but the result of help:evaluate of that variable
> >> returns null! My question is: how can I retrieve the default values of
> >> the parameters of a certain plugin version?if I look at the plugin
> >> site I can see that its default value is 1.5. But this is valid for
> >> the current version..if I want to know its default value for an older
> >> version what am I supposed to do??
> >>
> >> 2010/7/12, Anders Hammar :
> >> > This does work for me:
> >> >
> >> > mvn help:evaluate -Dmaven.compiler.source=1.5
> >> > -Dexpression=maven.compiler.source
> >> >
> >> > I'm setting the maven.compiler.source property here on command line
> >> instead
> >> > of specifying it in the project, which should work the same.
> >> >
> >> > /Anders
> >> >
> >> > On Mon, Jul 12, 2010 at 23:27, Justin Edelson
> >> > wrote:
> >> >
> >> >> From a shell, help:evaluate should be the right thing to do.
> >> >>
> >> >> Could it be that maven.compiler.source is, in fact, null?
> >> >>
> >> >> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
> >> >> > I mean,how can I display their value?
> >> >> >
> >> >> > 2010/7/12, Justin Edelson :
> >> >> >> what do you mean by inspect?
> >> >> >>
> >> >> >> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
> >> >> >>> Hi to all,
> >> >> >>> is there a way to inspect maven.* variables (such as
> >> >> >>> ${maven.compiler.source})?
> >> >> >>> I tried to use the help:evaluate tool but it tells me "null
> object
> >> or
> >> >> >>> invalid expression".
> >> >> >>>
> >> >> >>> Any idea??
> >> >> >>>
> >> >> >>> Best regards,
> >> >> >>> Flavio
> >> >> >>>
> >> >> >>>
> >> -
> >> >> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> >> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >> >> >>>
> >> >> >>
> >> >> >>
> >> >> >>
> -
> >> >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> >> >> For additional commands, e-mail: users-h...@maven.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >>
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> >> For additional commands, e-mail: users-h...@maven.apache.org
> >> >>
> >> >>
> >> >
> >>
> >> --
> >> Inviato dal mio dispositivo mobile
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven variables

2010-07-12 Thread Flavio Pompermaier
This is the description on the source paramenter of the compiler
plugin page (of the goal compile:compile):

source:
The -source argument for the Java compiler.

* Type: java.lang.String
* Since: 2.0
* Required: No
* Expression: ${maven.compiler.source}
* Default: 1.5

How can I get that value? If it is not evaluable as an expression, how
can I know how it will be evaluated by the plugin?
My JavaHome points to a Java 1.6 but as far as I know the 2.0.2
compiler use 1.4 compilation, isn't it?

2010/7/13 Anders Hammar :
> No, you're not configuring the property that way. You're configuring the
> plugin, but you're not setting the property.
> A property is set in hte properties section of the pom.
>
> /Anders
>
> On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier  wrote:
>
>> I set that variable via the configuration section of the compiler
>> plugin of my pom.xml but the result of help:evaluate of that variable
>> returns null! My question is: how can I retrieve the default values of
>> the parameters of a certain plugin version?if I look at the plugin
>> site I can see that its default value is 1.5. But this is valid for
>> the current version..if I want to know its default value for an older
>> version what am I supposed to do??
>>
>> 2010/7/12, Anders Hammar :
>> > This does work for me:
>> >
>> > mvn help:evaluate -Dmaven.compiler.source=1.5
>> > -Dexpression=maven.compiler.source
>> >
>> > I'm setting the maven.compiler.source property here on command line
>> instead
>> > of specifying it in the project, which should work the same.
>> >
>> > /Anders
>> >
>> > On Mon, Jul 12, 2010 at 23:27, Justin Edelson
>> > wrote:
>> >
>> >> From a shell, help:evaluate should be the right thing to do.
>> >>
>> >> Could it be that maven.compiler.source is, in fact, null?
>> >>
>> >> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>> >> > I mean,how can I display their value?
>> >> >
>> >> > 2010/7/12, Justin Edelson :
>> >> >> what do you mean by inspect?
>> >> >>
>> >> >> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>> >> >>> Hi to all,
>> >> >>> is there a way to inspect maven.* variables (such as
>> >> >>> ${maven.compiler.source})?
>> >> >>> I tried to use the help:evaluate tool but it tells me "null object
>> or
>> >> >>> invalid expression".
>> >> >>>
>> >> >>> Any idea??
>> >> >>>
>> >> >>> Best regards,
>> >> >>> Flavio
>> >> >>>
>> >> >>>
>> -
>> >> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >>> For additional commands, e-mail: users-h...@maven.apache.org
>> >> >>>
>> >> >>
>> >> >>
>> >> >> -
>> >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >> >>
>> >> >>
>> >> >
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >>
>> >>
>> >
>>
>> --
>> Inviato dal mio dispositivo mobile
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

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



Re: Maven variables

2010-07-12 Thread Anders Hammar
No, you're not configuring the property that way. You're configuring the
plugin, but you're not setting the property.
A property is set in hte properties section of the pom.

/Anders

On Tue, Jul 13, 2010 at 00:34, Flavio Pompermaier  wrote:

> I set that variable via the configuration section of the compiler
> plugin of my pom.xml but the result of help:evaluate of that variable
> returns null! My question is: how can I retrieve the default values of
> the parameters of a certain plugin version?if I look at the plugin
> site I can see that its default value is 1.5. But this is valid for
> the current version..if I want to know its default value for an older
> version what am I supposed to do??
>
> 2010/7/12, Anders Hammar :
> > This does work for me:
> >
> > mvn help:evaluate -Dmaven.compiler.source=1.5
> > -Dexpression=maven.compiler.source
> >
> > I'm setting the maven.compiler.source property here on command line
> instead
> > of specifying it in the project, which should work the same.
> >
> > /Anders
> >
> > On Mon, Jul 12, 2010 at 23:27, Justin Edelson
> > wrote:
> >
> >> From a shell, help:evaluate should be the right thing to do.
> >>
> >> Could it be that maven.compiler.source is, in fact, null?
> >>
> >> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
> >> > I mean,how can I display their value?
> >> >
> >> > 2010/7/12, Justin Edelson :
> >> >> what do you mean by inspect?
> >> >>
> >> >> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
> >> >>> Hi to all,
> >> >>> is there a way to inspect maven.* variables (such as
> >> >>> ${maven.compiler.source})?
> >> >>> I tried to use the help:evaluate tool but it tells me "null object
> or
> >> >>> invalid expression".
> >> >>>
> >> >>> Any idea??
> >> >>>
> >> >>> Best regards,
> >> >>> Flavio
> >> >>>
> >> >>>
> -
> >> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >> >>>
> >> >>
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> >> For additional commands, e-mail: users-h...@maven.apache.org
> >> >>
> >> >>
> >> >
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
>
> --
> Inviato dal mio dispositivo mobile
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven variables

2010-07-12 Thread Manfred Moser
Prior to the version 2.3. of the compiler plugin the default was 1.3 I
believe. As of 2.3 it is 1.5.

How are you setting the parameter?  It is probably set wrongly.

manfred


> I set that variable via the configuration section of the compiler
> plugin of my pom.xml but the result of help:evaluate of that variable
> returns null! My question is: how can I retrieve the default values of
> the parameters of a certain plugin version?if I look at the plugin
> site I can see that its default value is 1.5. But this is valid for
> the current version..if I want to know its default value for an older
> version what am I supposed to do??
>
> 2010/7/12, Anders Hammar :
>> This does work for me:
>>
>> mvn help:evaluate -Dmaven.compiler.source=1.5
>> -Dexpression=maven.compiler.source
>>
>> I'm setting the maven.compiler.source property here on command line
>> instead
>> of specifying it in the project, which should work the same.
>>
>> /Anders
>>
>> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
>> wrote:
>>
>>> From a shell, help:evaluate should be the right thing to do.
>>>
>>> Could it be that maven.compiler.source is, in fact, null?
>>>
>>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>>> > I mean,how can I display their value?
>>> >
>>> > 2010/7/12, Justin Edelson :
>>> >> what do you mean by inspect?
>>> >>
>>> >> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>>> >>> Hi to all,
>>> >>> is there a way to inspect maven.* variables (such as
>>> >>> ${maven.compiler.source})?
>>> >>> I tried to use the help:evaluate tool but it tells me "null object
>>> or
>>> >>> invalid expression".
>>> >>>
>>> >>> Any idea??
>>> >>>
>>> >>> Best regards,
>>> >>> Flavio
>>> >>>
>>> >>> -
>>> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >>> For additional commands, e-mail: users-h...@maven.apache.org
>>> >>>
>>> >>
>>> >>
>>> >> -
>>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> >> For additional commands, e-mail: users-h...@maven.apache.org
>>> >>
>>> >>
>>> >
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>
>
> --
> Inviato dal mio dispositivo mobile
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


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



Re: Maven variables

2010-07-12 Thread Flavio Pompermaier
I set that variable via the configuration section of the compiler
plugin of my pom.xml but the result of help:evaluate of that variable
returns null! My question is: how can I retrieve the default values of
the parameters of a certain plugin version?if I look at the plugin
site I can see that its default value is 1.5. But this is valid for
the current version..if I want to know its default value for an older
version what am I supposed to do??

2010/7/12, Anders Hammar :
> This does work for me:
>
> mvn help:evaluate -Dmaven.compiler.source=1.5
> -Dexpression=maven.compiler.source
>
> I'm setting the maven.compiler.source property here on command line instead
> of specifying it in the project, which should work the same.
>
> /Anders
>
> On Mon, Jul 12, 2010 at 23:27, Justin Edelson
> wrote:
>
>> From a shell, help:evaluate should be the right thing to do.
>>
>> Could it be that maven.compiler.source is, in fact, null?
>>
>> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
>> > I mean,how can I display their value?
>> >
>> > 2010/7/12, Justin Edelson :
>> >> what do you mean by inspect?
>> >>
>> >> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>> >>> Hi to all,
>> >>> is there a way to inspect maven.* variables (such as
>> >>> ${maven.compiler.source})?
>> >>> I tried to use the help:evaluate tool but it tells me "null object or
>> >>> invalid expression".
>> >>>
>> >>> Any idea??
>> >>>
>> >>> Best regards,
>> >>> Flavio
>> >>>
>> >>> -
>> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >>> For additional commands, e-mail: users-h...@maven.apache.org
>> >>>
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >>
>> >>
>> >
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

-- 
Inviato dal mio dispositivo mobile

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



Re: Maven variables

2010-07-12 Thread Anders Hammar
This does work for me:

mvn help:evaluate -Dmaven.compiler.source=1.5
-Dexpression=maven.compiler.source

I'm setting the maven.compiler.source property here on command line instead
of specifying it in the project, which should work the same.

/Anders

On Mon, Jul 12, 2010 at 23:27, Justin Edelson wrote:

> From a shell, help:evaluate should be the right thing to do.
>
> Could it be that maven.compiler.source is, in fact, null?
>
> On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
> > I mean,how can I display their value?
> >
> > 2010/7/12, Justin Edelson :
> >> what do you mean by inspect?
> >>
> >> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
> >>> Hi to all,
> >>> is there a way to inspect maven.* variables (such as
> >>> ${maven.compiler.source})?
> >>> I tried to use the help:evaluate tool but it tells me "null object or
> >>> invalid expression".
> >>>
> >>> Any idea??
> >>>
> >>> Best regards,
> >>> Flavio
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >>>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven variables

2010-07-12 Thread Justin Edelson
>From a shell, help:evaluate should be the right thing to do.

Could it be that maven.compiler.source is, in fact, null?

On 7/12/10 5:23 PM, Flavio Pompermaier wrote:
> I mean,how can I display their value?
> 
> 2010/7/12, Justin Edelson :
>> what do you mean by inspect?
>>
>> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>>> Hi to all,
>>> is there a way to inspect maven.* variables (such as
>>> ${maven.compiler.source})?
>>> I tried to use the help:evaluate tool but it tells me "null object or
>>> invalid expression".
>>>
>>> Any idea??
>>>
>>> Best regards,
>>> Flavio
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
> 


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



Re: Maven variables

2010-07-12 Thread Flavio Pompermaier
I mean,how can I display their value?

2010/7/12, Justin Edelson :
> what do you mean by inspect?
>
> On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
>> Hi to all,
>> is there a way to inspect maven.* variables (such as
>> ${maven.compiler.source})?
>> I tried to use the help:evaluate tool but it tells me "null object or
>> invalid expression".
>>
>> Any idea??
>>
>> Best regards,
>> Flavio
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-- 
Inviato dal mio dispositivo mobile

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



Re: Maven variables

2010-07-12 Thread Justin Edelson
what do you mean by inspect?

On 7/12/10 1:13 PM, Flavio Pompermaier wrote:
> Hi to all,
> is there a way to inspect maven.* variables (such as 
> ${maven.compiler.source})?
> I tried to use the help:evaluate tool but it tells me "null object or
> invalid expression".
> 
> Any idea??
> 
> Best regards,
> Flavio
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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



Maven variables

2010-07-12 Thread Flavio Pompermaier
Hi to all,
is there a way to inspect maven.* variables (such as ${maven.compiler.source})?
I tried to use the help:evaluate tool but it tells me "null object or
invalid expression".

Any idea??

Best regards,
Flavio

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



Maven variables

2010-07-12 Thread Flavio Pompermaier
Hi to all,
is there a way to inspect maven.* variables (such as ${maven.compiler.source})?
I tried to use the help:evaluate tool but it tells me "null object or
invalid expression".

Any idea??

Best regards,
Flavio

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



Re: Passing maven variables as system properties

2008-04-04 Thread alex941021

I have been looking for a solution too, but I didn't find one.  Even in ANT,
if you define a variable, you can reference that variable from within the
ant script and from JAVA (JUnit tests) gu using the
System.getProperty("whatever_name...");  
In Maven my workaround was to create a profile in settings.xml, and I
defined my own variables there.  Then I've applied a filter to a given
property file and by doing that maven plugs in the values defined in
settings.xml.  The end product is to have a property file that contains the
name=value pair that I want, and the only way that I can access that
information from JAVA is to define that file as a property file.

I know this thread has been quite for quite a while, but is there a better
way to achieve that?

thanks,
alex


mmistroni wrote:
> 
> Hello,
>  not sure about maven2, but in maven1 i was using following (espeically
> for
> junit)
> 
> maven.junit.sysproperties=db.url db.user db.password db.driver db.seedfile
> maven.final.name
> 
> 
> is there a similar thing for maven2?
> 
> rgds
>  marco
> 
> 
> On 3/11/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
>>
>> Thanks Hermod, you've helped me make *some* progress.
>>
>> It appears the problem is that the variable name I'm using is not
>> recognised, so the original expression is passed unaltered.
>>
>> ${pom.name} works fine for example (expanded)
>>
>> However none of the following work:
>>   ${project.build.outputDirectory}
>>   ${project.build.directory}
>>   ${pom.build.directory}
>>
>> Anyone know what the magic variable name is for passing the
>> outputDirectory (ie dir where main java src gets compiled to) to the
>> unit tests as a system property?
>>
>> Thanks,
>>
>> Simon
>>
>> On Fri, 2006-03-10 at 11:47 +0100, [EMAIL PROTECTED] wrote:
>> > Hi
>> >
>> > Try project.build.directory
>> >
>> > Hermod
>> >
>> > -Original Message-
>> > From: Simon Kitching [mailto:[EMAIL PROTECTED]
>> > Sent: Friday, March 10, 2006 3:53 AM
>> > To: users@maven.apache.org
>> > Subject: Passing maven variables as system properties
>> >
>> >
>> > Hi,
>> >
>> > I'm trying to store some maven vars into system properties so I can
>> > access them from unit test code:
>> >
>> >  
>> > org.apache.maven.plugins
>> > maven-surefire-plugin
>> > 
>> >   
>> > 
>> >   core-static
>> >   ${project.build.outputDirectory}/
>> > 
>> > 
>> >   core-static-tests
>> >   ${project.build.testOutputDirectory}/
>> > 
>> >   
>> > 
>> >   
>> > 
>> >
>> > However the value of
>> >System.getProperty("core-static")
>> > is literally "${project.build.outputDirectory}", not the expanded
>> value.
>> >
>> > Does anyone know how I can pass the value of this expression?
>> >
>> > Thanks,
>> >
>> > Simon
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>> * *
>> >
>> > This email with attachments is solely for the use of the individual or
>> > entity to whom it is addressed. Please also be aware that DnB NOR
>> cannot
>> > accept any payment orders or other legally binding correspondence with
>> > customers as a part of an email.
>> >
>> > This email message has been virus checked by the virus programs used
>> > in the DnB NOR Group.
>> >
>> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>> * *
>> >
>> >
>> > -
>> > 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]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Passing-maven-variables-as-system-properties-tp3332659s177p16508273.html
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: Maven variables?

2008-02-26 Thread Bart Reader
Just wanted to thank for the reply, it was just what I needed.
I thought that there would be more hidden properties.


Bart

---
the closest explanation I've seen to date is here
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

M-
- Original Message -
Wrom: TLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRN
To: 
Sent: Monday, February 25, 2008 10:24 AM
Subject: Maven variables?


> Is there any list of maven variables and their definition?
> I mean the properties that are not custom set like  ${basedir}.
>
> Thanks,
> Bart
>


Re: Maven variables?

2008-02-25 Thread mgainty
the closest explanation I've seen to date is here
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

M-
- Original Message - 
Wrom: TLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRN
To: 
Sent: Monday, February 25, 2008 10:24 AM
Subject: Maven variables?


> Is there any list of maven variables and their definition?
> I mean the properties that are not custom set like  ${basedir}.
> 
> Thanks,
> Bart
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven variables?

2008-02-25 Thread Bart Reader
Is there any list of maven variables and their definition?
I mean the properties that are not custom set like  ${basedir}.

Thanks,
Bart


Re: Passing maven variables

2007-05-07 Thread Wayne Fay

I'd be more inclined to set it in profiles.xml, but sure, you can set
it in settings.xml if you want.

Read this for more details on profiles:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Wayne

On 5/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

We are currently passing the -Dserver=  on the mvn command line.
 This variable is referenced in the pom in the following manor.
   
 src/main/${server}/resources
   true
   
Is it possible to set this variable in the settings.xml file and pass it
to the pom?

Thanks,

David Williams
Software Configuration Engineer
205-271-6159


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passing maven variables

2007-05-07 Thread DavidWilliams
We are currently passing the -Dserver=  on the mvn command line. 
 This variable is referenced in the pom in the following manor.

 src/main/${server}/resources
true

Is it possible to set this variable in the settings.xml file and pass it 
to the pom?

Thanks,

David Williams
Software Configuration Engineer
205-271-6159

Re: Expansion of maven variables

2006-07-25 Thread Simon Kitching
Hi Gilles,

Thanks for your comments.

On Mon, 2006-07-24 at 23:48 -0700, Gilles Scokart wrote:
> ${project.classpathElements} can be used when your parameter is a List . 
> Here you want to place it in a String.

True, and maybe that's the problem. The things that are working are all
of type String.

The data is magically managed via the declaration:
 /**
  * @parameter
  */
 private Properties systemProperties;

I believe that it is the plexus container that implements the necessary
"dependency injection" stuff to take the xml in the pom.xml file and map
it into a Properties object and assign it to systemProperties. Obviously
that code is buried deep down inside plexus where normal mortals can't
see.

A Properties object does implement Map and therefore potentially
supports objects, but the surefire code clearly doesn't support this
(and reasonably too):
   // Add all system properties configured by the user
   Iterator iter = systemProperties.keySet().iterator();
   while ( iter.hasNext() )
   {
 String key = (String) iter.next();
 String value = systemProperties.getProperty( key );
 System.setProperty( key, value );
   }

In my case, it would be ok for the classpath to be mapped from a List to
a string that the unit tests can parse; I therefore tried
  ${project.classpathElements.toString()}
but unfortunately that didn't work either. Oddly, neither did
  ${project.artifactId.substring(8)} 
when used in the properties section, though that expression certainly
does work in other places in the pom. Scary; I thought that this
variable handling/injection was being managed by Plexus and therefore
would work consistently everywhere but that doesn't seem to be the case.


If it's not going to be possible to map the classpath into a string so
it can be passed as a system property, can anyone else suggest a way for
the unit tests to obtain the surefire test-classpath? The unit tests are
explicitly run in a custom classloader to isolate them, so even if there
is some singleton method that the unit tests could call to obtain a
reference to the project object or the surefire plugin object, I expect
they wouldn't be able to see it.

I see that the existing code explicitly sets "basedir" and
"localRepository" system properties so unit tests can retrieve these.
Maybe this could be generalised..


> 
> Moreover, I think that the expension done into the pom, and the things done
> in the plugin is different. So, there is maybe some differences. 

Isn't it all done by Plexus?

Regards,

Simon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Expansion of maven variables

2006-07-24 Thread Gilles Scokart

${project.classpathElements} can be used when your parameter is a List . 
Here you want to place it in a String.

Moreover, I think that the expension done into the pom, and the things done
in the plugin is different. So, there is maybe some differences. 
-- 
View this message in context: 
http://www.nabble.com/Expansion-of-maven-variables-tf1996470.html#a5480707
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Expansion of maven variables

2006-07-24 Thread Simon Kitching
Hi,

I'm confused by the availability of maven variables, in particular
${project.testClasspathElements}.

In a surefire config section, I've got this:


  
**/DumpProps.java
  
  

  test.finalName
  ${project.build.finalName}


  test.artifactId
  ${project.artifactId}


  test.version
  ${project.version}


   testclasspath
   ${project.classpathElements}

  


When run, I get this output:
 test.testclasspath:${project.testClasspathElements}
 test.classpath:${project.classpathElements}
 test.finalName:commons-logging-1.1.1
 test.builddir:${project.build.directory}
 test.artifactId:commons-logging
 test.version:1.1.1

There are clearly a number of variables that don't get expanded. However
all of these are listed as variables in the maven-surefire-plugin docs:
  http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
and of course this documentation is derived straight from the
annotations in the sourcecode:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java


Can anyone explain what's happening here?

Just FYI, what I'm trying to do is pass ${project.testClasspathElements}
to the unit tests so that each test can control its own classpath,
ordering the jars however it needs using a custom classloader. As an
alternate approach, I hoped the assembly:unpack target could be used to
copy dependencies into a subdir of target, so I could hard-wire paths to
them in the sysprops but that isn't working as I do not want the jars
unpacked. Any suggestions for other approaches would be welcome.

Thanks,

Simon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Passing maven variables as system properties

2006-03-11 Thread Marco Mistroni
Hello,
 not sure about maven2, but in maven1 i was using following (espeically for
junit)

maven.junit.sysproperties=db.url db.user db.password db.driver db.seedfile
maven.final.name


is there a similar thing for maven2?

rgds
 marco


On 3/11/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
>
> Thanks Hermod, you've helped me make *some* progress.
>
> It appears the problem is that the variable name I'm using is not
> recognised, so the original expression is passed unaltered.
>
> ${pom.name} works fine for example (expanded)
>
> However none of the following work:
>   ${project.build.outputDirectory}
>   ${project.build.directory}
>   ${pom.build.directory}
>
> Anyone know what the magic variable name is for passing the
> outputDirectory (ie dir where main java src gets compiled to) to the
> unit tests as a system property?
>
> Thanks,
>
> Simon
>
> On Fri, 2006-03-10 at 11:47 +0100, [EMAIL PROTECTED] wrote:
> > Hi
> >
> > Try project.build.directory
> >
> > Hermod
> >
> > -Original Message-
> > From: Simon Kitching [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 10, 2006 3:53 AM
> > To: users@maven.apache.org
> > Subject: Passing maven variables as system properties
> >
> >
> > Hi,
> >
> > I'm trying to store some maven vars into system properties so I can
> > access them from unit test code:
> >
> >  
> > org.apache.maven.plugins
> > maven-surefire-plugin
> > 
> >   
> > 
> >   core-static
> >   ${project.build.outputDirectory}/
> > 
> > 
> >   core-static-tests
> >   ${project.build.testOutputDirectory}/
> > 
> >   
> > 
> >   
> > 
> >
> > However the value of
> >System.getProperty("core-static")
> > is literally "${project.build.outputDirectory}", not the expanded value.
> >
> > Does anyone know how I can pass the value of this expression?
> >
> > Thanks,
> >
> > Simon
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * *
> >
> > This email with attachments is solely for the use of the individual or
> > entity to whom it is addressed. Please also be aware that DnB NOR cannot
> > accept any payment orders or other legally binding correspondence with
> > customers as a part of an email.
> >
> > This email message has been virus checked by the virus programs used
> > in the DnB NOR Group.
> >
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * *
> >
> >
> > -
> > 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: Passing maven variables as system properties

2006-03-10 Thread Simon Kitching
Thanks Hermod, you've helped me make *some* progress.

It appears the problem is that the variable name I'm using is not
recognised, so the original expression is passed unaltered.

${pom.name} works fine for example (expanded)

However none of the following work:
  ${project.build.outputDirectory}
  ${project.build.directory}
  ${pom.build.directory}

Anyone know what the magic variable name is for passing the
outputDirectory (ie dir where main java src gets compiled to) to the
unit tests as a system property?

Thanks,

Simon

On Fri, 2006-03-10 at 11:47 +0100, [EMAIL PROTECTED] wrote:
> Hi
> 
> Try project.build.directory
> 
> Hermod
> 
> -Original Message-
> From: Simon Kitching [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 10, 2006 3:53 AM
> To: users@maven.apache.org
> Subject: Passing maven variables as system properties
> 
> 
> Hi,
> 
> I'm trying to store some maven vars into system properties so I can
> access them from unit test code:
> 
>  
> org.apache.maven.plugins
> maven-surefire-plugin
> 
>   
> 
>   core-static
>   ${project.build.outputDirectory}/
> 
> 
>   core-static-tests
>   ${project.build.testOutputDirectory}/
> 
>   
> 
>   
> 
> 
> However the value of
>System.getProperty("core-static")
> is literally "${project.build.outputDirectory}", not the expanded value.
> 
> Does anyone know how I can pass the value of this expression?
> 
> Thanks,
> 
> Simon
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> 
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that DnB NOR cannot
> accept any payment orders or other legally binding correspondence with
> customers as a part of an email. 
> 
> This email message has been virus checked by the virus programs used
> in the DnB NOR Group.
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> 
> 
> -
> 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: Passing maven variables as system properties

2006-03-10 Thread hermod.opstvedt
Hi

Try project.build.directory

Hermod

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED]
Sent: Friday, March 10, 2006 3:53 AM
To: users@maven.apache.org
Subject: Passing maven variables as system properties


Hi,

I'm trying to store some maven vars into system properties so I can
access them from unit test code:

 
org.apache.maven.plugins
maven-surefire-plugin

  

  core-static
  ${project.build.outputDirectory}/


  core-static-tests
  ${project.build.testOutputDirectory}/

  

  


However the value of
   System.getProperty("core-static")
is literally "${project.build.outputDirectory}", not the expanded value.

Does anyone know how I can pass the value of this expression?

Thanks,

Simon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passing maven variables as system properties

2006-03-09 Thread Simon Kitching
Hi,

I'm trying to store some maven vars into system properties so I can
access them from unit test code:

 
org.apache.maven.plugins
maven-surefire-plugin

  

  core-static
  ${project.build.outputDirectory}/


  core-static-tests
  ${project.build.testOutputDirectory}/

  

  


However the value of
   System.getProperty("core-static")
is literally "${project.build.outputDirectory}", not the expanded value.

Does anyone know how I can pass the value of this expression?

Thanks,

Simon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]