You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Franey <jj...@verizon.net> on 2005/08/20 03:59:35 UTC

[M2] system property dictionary ??

I've looked and searched, but came up empty.

Is there a maven 2 system property dictionary somewhere?   This would 
list the system properties that have value relative to lifecycle phase, 
and what the value would be if not overridden by user's POM or -D 
option.  Also with the list is a short description... hope I don't ask 
too much...

Now that I've posted that question, another comes to mind.... what is 
the syntax for specifying the expressions of a default value of a 
parameter?  Plugin documentation show the default values on the basis of 
something called an 'expression'.  Apparently, these expressions are 
written with system properties as variables.  Can something more than 
just a system property name be 'expressed ;-) ' in an expression    How 
can I learn more about this?

Thanks,
John


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


Re: [M2] system property dictionary ??

Posted by Brett Porter <br...@gmail.com>.
This isn't everything, but its probably everything you'll want to use.
It is structured according to the XML, as you noticed above, so there
isn't anything else you need to know there.

- Brett

On 8/21/05, John Franey <jj...@verizon.net> wrote:
> I will look into the maven-model source code.   Of course I have no idea
> what to look for.

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


Re: [M2] system property dictionary ??

Posted by John Franey <jj...@verizon.net>.
I will look into the maven-model source code.   Of course I have no idea 
what to look for. 

Thanks,
John


Edwin Punzalan wrote:

> With regards to a list, I believe there isn't one available yet.
>
> With regards to the default values in pom.xml, you may want to take a 
> look at the maven-model source code.  Most, if not all, is in there.
>
>
>
>
> John Franey wrote:
>
>> I've looked and searched, but came up empty.
>>
>> Is there a maven 2 system property dictionary somewhere?   This would 
>> list the system properties that have value relative to lifecycle 
>> phase, and what the value would be if not overridden by user's POM or 
>> -D option.  
>
>
>
>


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


Re: [M2] system property dictionary ??

Posted by Edwin Punzalan <ep...@exist.com>.
With regards to a list, I believe there isn't one available yet.

With regards to the default values in pom.xml, you may want to take a 
look at the maven-model source code.  Most, if not all, is in there.




John Franey wrote:

> I've looked and searched, but came up empty.
>
> Is there a maven 2 system property dictionary somewhere?   This would 
> list the system properties that have value relative to lifecycle 
> phase, and what the value would be if not overridden by user's POM or 
> -D option.  Also with the list is a short description... hope I don't 
> ask too much...
>
> Now that I've posted that question, another comes to mind.... what is 
> the syntax for specifying the expressions of a default value of a 
> parameter?  Plugin documentation show the default values on the basis 
> of something called an 'expression'.  Apparently, these expressions 
> are written with system properties as variables.  Can something more 
> than just a system property name be 'expressed ;-) ' in an 
> expression    How can I learn more about this?
>
> Thanks,
> John
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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


Re: [M2] system property dictionary ??

Posted by John Franey <jj...@verizon.net>.
Edwin,

Thanks.  This is mostly what I know, too, that these are the three 
sources from where properties are set.  I didn't know though that there 
is a pattern to the names of the property in relation to its path in the 
pom xml file.  For example, you point out that 
project.build.outputdirectory comes from 
<project>...<build>...<outputdirectory>......  This I didn't know, and 
will look into it.

Thanks,
John


Edwin Punzalan wrote:

>
> Hi,
>
> m2 collects these "expressions" from several sources.  To start, this 
> is some of what I know:
>
> 1) System environment properties
>
> 2) pom.xml -> expressions here are somewhat bean based.  For example, 
> to get the value for the output directory in your pom.xml, you use 
> ${project.build.outputDirectory}, which is a direct pattern from 
> pom.xml's <project> <build> <outputDirectory>.
>
> 3) -D command parameters, (may also come from MAVEN_OPTS environment 
> variable)
>
>
>
>
> John Franey wrote:
>
>> I've looked and searched, but came up empty.
>>
>> Is there a maven 2 system property dictionary somewhere?  
>> Thanks,
>> John
>>
>
>


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


Re: [M2] system property dictionary ??

Posted by Edwin Punzalan <ep...@exist.com>.
Hi,

m2 collects these "expressions" from several sources.  To start, this is 
some of what I know:

1) System environment properties

2) pom.xml -> expressions here are somewhat bean based.  For example, to 
get the value for the output directory in your pom.xml, you use 
${project.build.outputDirectory}, which is a direct pattern from 
pom.xml's <project> <build> <outputDirectory>.

3) -D command parameters, (may also come from MAVEN_OPTS environment 
variable)




John Franey wrote:

> I've looked and searched, but came up empty.
>
> Is there a maven 2 system property dictionary somewhere?   This would 
> list the system properties that have value relative to lifecycle 
> phase, and what the value would be if not overridden by user's POM or 
> -D option.  Also with the list is a short description... hope I don't 
> ask too much...
>
> Now that I've posted that question, another comes to mind.... what is 
> the syntax for specifying the expressions of a default value of a 
> parameter?  Plugin documentation show the default values on the basis 
> of something called an 'expression'.  Apparently, these expressions 
> are written with system properties as variables.  Can something more 
> than just a system property name be 'expressed ;-) ' in an 
> expression    How can I learn more about this?
>
> Thanks,
> John
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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