Mojo injected values

View: New views
3 Messages — Rating Filter:   Alert me  

Mojo injected values

by amorgovsky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.  I would like to know if there exists a resource which lists all the
Maven 2 components of the pom.xml, and includes the corresponding
expressions, in the form of ${project.build.directory}, for example.  I
need to know this so that I know how to referenence all the needed
elements in my Mojo's.  Thanks.


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]

Re: Mojo injected values

by Dan Tran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

${project.*} is your pom.

Perhaps this may help http://www.devx.com/Java/Article/32386/1954?pf=true

-D



On 9/18/06, Morgovsky, Alexander (US - Glen Mills) <amorgovsky@...>
wrote:

>
> Hi.  I would like to know if there exists a resource which lists all the
> Maven 2 components of the pom.xml, and includes the corresponding
> expressions, in the form of ${project.build.directory}, for example.  I
> need to know this so that I know how to referenence all the needed
> elements in my Mojo's.  Thanks.
>
>
> This message (including any attachments) contains confidential information
> intended for a specific individual and purpose, and is protected by law.  If
> you are not the intended recipient, you should delete this message.
>
>
> Any disclosure, copying, or distribution of this message, or the taking of
> any action based on it, is strictly prohibited. [v.E.1]
>
>

Re: Mojo injected values

by franz see :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


dan tran wrote:
${project.*} is your pom.

Perhaps this may help http://www.devx.com/Java/Article/32386/1954?pf=true

-D



On 9/18/06, Morgovsky, Alexander (US - Glen Mills) <amorgovsky@deloitte.com>
wrote:
>
> Hi.  I would like to know if there exists a resource which lists all the
> Maven 2 components of the pom.xml, and includes the corresponding
> expressions, in the form of ${project.build.directory}, for example.  I
> need to know this so that I know how to referenence all the needed
> elements in my Mojo's.  Thanks.
>
>
> This message (including any attachments) contains confidential information
> intended for a specific individual and purpose, and is protected by law.  If
> you are not the intended recipient, you should delete this message.
>
>
> Any disclosure, copying, or distribution of this message, or the taking of
> any action based on it, is strictly prohibited. [v.E.1]
>
>
Good day to you, Alexander,

I am not sure if these are all of them (excluding the plugin-specifics), but this is my list.

    *  project (from [1])
          o project.distributionManagementArtifactRepository
          o project.artifact
          o project.parent
          o project.file
          o project.artifacts
          o project.parentArtifact
          o project.pluginArtifacts
          o project.remoteArtifactRepositories
          o project.pluginArtifactRepositories
          o project.attachedArtifact
    * settings (from [2])
          o settings.offilne
          o settings.interactive
    * rootless (from [3])
          o localRepository
          o reactorProjects
    * java properties (from [4])
          o java.version
          o java.vendor
          o java.vendor.url
          o java.home
          o java.vm.specification.version
          o java.vm.specification.vendor
          o java.vm.specification.name
          o java.vm.version
          o java.vm.vendor
          o java.vm.name
          o java.specification.version
          o java.specification.vendor
          o java.specification.name
          o java.class.version
          o java.class.path
          o java.library.path
          o java.io.tmpdir
          o java.compiler
          o java.ext.dirs
          o os.name
          o os.arch
          o os.version
          o file.separator
          o path.separator
          o line.separator
          o user.name
          o user.home
          o user.dir



[1] http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/maven/plugin-expressions/project.paramdoc.xml
[2] http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/maven/plugin-expressions/rootless.paramdoc.xml
[3] http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/maven/plugin-expressions/settings.paramdoc.xml
[4] http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()