maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <khmarba...@gmx.de>
Subject Re: How to access $project.build.sourceEncoding?
Date Sat, 26 Sep 2015 20:33:21 GMT
Hi Jochen,

On 9/26/15 10:28 PM, Jochen Wiedmann wrote:
> Hi,
>
> I'd like to access $[project.build.sourceEncoding} in a Maven Plugin.
> How would I do that? Using what version of maven-model?

Hm...you would like use that for a maven plugin ? Then it's used like this:

@Parameter( property = "encoding", defaultValue = 
"${project.build.sourceEncoding}" )
private String encoding;

That's usually a default value for plugin...

Kind regards
Karl Heinz Marbaise

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


Mime
View raw message