You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Russell Gold <ru...@gold-family.us> on 2013/03/13 15:35:21 UTC

Finding Maven properties?

Hi,

How does one get a complete list of available Maven properties? I found a sonatype doc which suggested looking at the Javadoc for the Model class in Maven http://maven.apache.org/ref/3.0.3/maven-model/apidocs/ but I cannot find any mention there of methods which would define project.build.sourceEncoding, which is clearly a real property. That suggests that there must be other properties available that somehow are not part of the model.

- thanks
Russ Gold
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>, 
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!





Re: Finding Maven properties?

Posted by Hervé BOUTEMY <he...@free.fr>.
a reference list does not exist per-se, because the structure is extensible: 
it's not really "properties" but more pseudo-properties with multiple sources

one reference source of information is the structure documentation: 
http://maven.apache.org/ref/3-LATEST/maven-model-builder/

Regards,

Hervé

Le mercredi 13 mars 2013 10:35:21 Russell Gold a écrit :
> Hi,
> 
> How does one get a complete list of available Maven properties? I found a
> sonatype doc which suggested looking at the Javadoc for the Model class in
> Maven http://maven.apache.org/ref/3.0.3/maven-model/apidocs/ but I cannot
> find any mention there of methods which would define
> project.build.sourceEncoding, which is clearly a real property. That
> suggests that there must be other properties available that somehow are not
> part of the model.
> 
> - thanks
> Russ Gold
> -----------------
> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
> and listen to the Misfile radio play
> <http://www.gold-family.us/audio/misfile.html>!

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


Re: Finding Maven properties?

Posted by Curtis Rueden <ct...@wisc.edu>.
Hi Russ,

> How does one get a complete list of available Maven properties?

As far as I know, there is no complete list of Maven properties. If I
understand correctly, creating such a list would be tricky, because they
are ultimately resolved dynamically from the Java object model. See "How do
I get a list of all available properties?" in the FAQ:

    http://docs.codehaus.org/display/MAVENUSER/FAQs

There is also a (very incomplete) static list at:

    http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

If there is something specific you need you may be able to follow the
advice of the FAQ entry linked above: use "mvn help:effective-pom" and
derive your parameter name from what you see there.

Lastly, there is an interesting hack on Stack Overflow that might help you:

    http://stackoverflow.com/questions/12317609

Regards,
Curtis


On Wed, Mar 13, 2013 at 9:35 AM, Russell Gold <ru...@gold-family.us> wrote:

> Hi,
>
> How does one get a complete list of available Maven properties? I found a
> sonatype doc which suggested looking at the Javadoc for the Model class in
> Maven http://maven.apache.org/ref/3.0.3/maven-model/apidocs/ but I cannot
> find any mention there of methods which would define
> project.build.sourceEncoding, which is clearly a real property. That
> suggests that there must be other properties available that somehow are not
> part of the model.
>
> - thanks
> Russ Gold
> -----------------
> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
> and listen to the Misfile radio play <
> http://www.gold-family.us/audio/misfile.html>!
>
>
>
>
>