The code you put in your original email didn't make it to the list, maybe it
was formatted somehow.
What I think you are looking for is:
> /** @parameter default-value="${project}" */
> private org.apache.maven.project.MavenProject mavenProject;
This will give you the MavenProject object, which you can dereference to find
the properties.
HTH, Brian
On Oct 17, 2011, at 11:27 PM, deusaquilus wrote:
> I'm trying to use the maven programmatic APIs to get the properties of the
> default profile (i.e. the stuff in Project->Properties->XYZ) and return them
> as a Java 'Properties' object, so far with no luck. First I thought of
> trying to use the maven invoker e.g:
>
>
>
> That just seems to return null. The other way I tried was using the maven
> builder APIs like so:
>
>
>
> That causes a "mavenTools: null" exception to be thrown from the
> MavenProject class.
> How do I get this to work?
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Programmatically-get-maven-properties-tp4912280p4912280.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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]