Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the documentation on all built-in Maven expressions?

When building a Maven plugin, where can I find documentation for the built-in expressions that can be used for @parameter expression="${...}" constructs?

like image 504
Jonathan Avatar asked Sep 13 '10 20:09

Jonathan


People also ask

Is it allowed to do documentation with Maven?

The first step in having a good documentation is to have an accurate and visible basic project information, Maven can provide this for the plugin as long as the information in the POM is complete, descriptive and accurate.

What is a groupId and artifactId in Maven?

groupId – a unique base name of the company or group that created the project. artifactId – a unique name of the project. version – a version of the project. packaging – a packaging method (e.g. WAR/JAR/ZIP)

Where do plugins go in POM xml?

They execute during the build process and should be configured in the <build/> element of pom. xml. They execute during the site generation process and they should be configured in the <reporting/> element of the pom. xml.

What is pluginManagement in Maven?

From Maven documentation: pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one.


1 Answers

You might also try the help:evaluate goal of the maven help plugin to quickly show the values of one of these properties from the command line. For example

mvn help:evaluate -Dexpression=project.build.outputDirectory

would echo the output directory of the current project.

like image 114
Jörn Horstmann Avatar answered Sep 18 '22 13:09

Jörn Horstmann