true, no method we documented it in the notice at the end of model building reference documentation [1]
But for sure, once Maven 4 is out with an improved model and compatibility layer for Maven 3, these 2 encoding parameters are the first candidates to go into the enhanced model :) Regards, Hervé [1] http://maven.apache.org/ref/current/maven-model-builder/ ----- Mail original ----- De: "Jochen Wiedmann" <[email protected]> À: "Maven Developers List" <[email protected]> Envoyé: Dimanche 27 Septembre 2015 15:42:51 Objet: Re: How to access $project.build.sourceEncoding? On Sun, Sep 27, 2015 at 11:25 AM, Lennart Jörelid <[email protected]> wrote: > 2. Inject a MavenProject and use it to acquire any build property you like: > > @Parameter(defaultValue = "${project}", readonly = true) > private MavenProject project; This one sounds like what I wanted. However, there is no method like getSourceEncoding() in org.apache.maven.model.Build, at least not in maven-model 2.2.1. Thanks, Jochen -- The next time you hear: "Don't reinvent the wheel!" http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg --------------------------------------------------------------------- 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]
