You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vijay V <vi...@oracle.com> on 2004/03/17 15:02:19 UTC

Information about the methods available on POM

Hi

I am a new user trying to get my hands with maven.

I would like to know the list of all methods that are available on the pom.

I see few functions like -
"${pom.inceptionYear.equals("currentYear")}
"${pom.build.resources.isEmpty()}"
"${pom.getDependencyPath('aritifact')}"

There should be lot of functions available and should be based on some 
api which exists.
Can any one kindly point as to where this documentation exists or what 
is the basis of invoking different functions or what is
the basic concept on which it is build.

Any pointer will be highly appreciated.

Thanks,
Vijay V




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


Re: Information about the methods available on POM

Posted by Eric Giguere <er...@videotron.ca>.
Hello there

The best way is to look directly at the Java class : 
org.apache.maven.project.Project. This is the source for the Project bean.
Its a Java bean so look at all getter/setters... use them from your 
jelly code without the get/set prefix.

I've not seen any valid documentation on it except maybe a small page on 
the maven wiki :  http://wiki.codehaus.org/maven/WritingMavenXml ... and 
maybe the Java doc of that class.

Hope it helps.

Eric.

Arto Pastinen wrote:

>Hi
>
>I'm not sure, but those look like velocity stuff.
>
>anyway:
>pom.inceptionYear, and pom.build.resource is from project.xml
><project>
>	<inceptionYear>x</inceptionYear>
>	<build>
>		<resources/>
>	</build>
></project>
>
>
>
>On Wed, 2004-03-17 at 16:02, Vijay V wrote:
>  
>
>>Hi
>>
>>I am a new user trying to get my hands with maven.
>>
>>I would like to know the list of all methods that are available on the pom.
>>
>>I see few functions like -
>>"${pom.inceptionYear.equals("currentYear")}
>>"${pom.build.resources.isEmpty()}"
>>"${pom.getDependencyPath('aritifact')}"
>>
>>There should be lot of functions available and should be based on some 
>>api which exists.
>>Can any one kindly point as to where this documentation exists or what 
>>is the basis of invoking different functions or what is
>>the basic concept on which it is build.
>>
>>Any pointer will be highly appreciated.
>>
>>Thanks,
>>Vijay V
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>  
>


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


Re: Information about the methods available on POM

Posted by Arto Pastinen <ar...@ofw.fi>.
Hi

I'm not sure, but those look like velocity stuff.

anyway:
pom.inceptionYear, and pom.build.resource is from project.xml
<project>
	<inceptionYear>x</inceptionYear>
	<build>
		<resources/>
	</build>
</project>



On Wed, 2004-03-17 at 16:02, Vijay V wrote:
> Hi
> 
> I am a new user trying to get my hands with maven.
> 
> I would like to know the list of all methods that are available on the pom.
> 
> I see few functions like -
> "${pom.inceptionYear.equals("currentYear")}
> "${pom.build.resources.isEmpty()}"
> "${pom.getDependencyPath('aritifact')}"
> 
> There should be lot of functions available and should be based on some 
> api which exists.
> Can any one kindly point as to where this documentation exists or what 
> is the basis of invoking different functions or what is
> the basic concept on which it is build.
> 
> Any pointer will be highly appreciated.
> 
> Thanks,
> Vijay V
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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