I would like to find out the values of all Maven properties as they apply to some Maven project.
mvn help:system
lists OS environment variables and JVM system properties, but no Maven properties.
mvn help:evaluate
only works in an interactive mode, that means I have to type a single Maven property, (e.g. ${project.build.outputDirectory}
) to get the value of that property.
I'm looking for a way get a full list of all Maven properties and their values.
Actually project.build.outputDirectory is there but you need to execute in 'compile' phase, and NOT in 'validate'. I guess what properties are available also depends on the current phase for the executing goal of a particular plug-in, in this case 'maven-antrun-plugin'.
As a workaround, add this to the
<plugins> ... </plugins>
section inside your project'spom.xml
:Now execute
mvn validate
.On the console, prefixed with
[echoproperties]
, there will be the full list of system properties, including those set by Maven such asproject.build.outputDirectory
,basedir
, andsettings.localRepository
.Not sure if helps, but I found this when trying to do the same thing:
From here
I don't know how to get them "officially", but here is a workaround. Add
maven-antrun-plugin
to your project and runmvn test -X
. The plugin will show all properties passed to it from Maven. The list looks complete to me.Had the same issue. Changed the timeout and maxheap in findbugs configuration through maven.
The below fixed it for me :