Although the classifier is mentioned in the POM Reference, Maven Coordinates , it must be declared in the maven-jar-plugin . So you call it not part of the <project> element Model .
Unfortunately, I have not yet found a way to access the maven.jar.classifier property maven-jar-plugin , but declaring an extra <project> property:
<project> ... <properties> <jar.classifier>CLASSIFIER</jar.classifier> </properties> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.6</version> <configuration> <classifier>${jar.classifier}</classifier> </configuration> </plugin> ... </project>
There are a Properties properties in Maven Model's superclass ModelBase . But if it is not used by the plugin ...
And also there is no property interpolation syntax (yet?), For example:
${project.build.plugins.plugin[<G>:<A>:<V>].<property>}
source share