When I execute mvn help:effective-pom
it also outputs [INFO] ...
to stdout. Surpressing it via -q
outputs nothing at all when dealing with correct files so
I want to pipe the effective pom into xmlstarlet to get the effective properties but as the output isn't a valid xml it fails.
A request for my usecase was closed as a wontfix (at least to my understanding) at http://jira.codehaus.org/browse/MPH-23 .
The effective-pom goal is used to make visible the POM that results from the application of interpolation, inheritance and active profiles. It provides a useful way of removing the guesswork about just what ends up in the POM that Maven uses to build your project.
Effective POM combines all the default settings from the super POM file and the configuration defined in our application POM. Maven uses default values for configuration elements when they are not overridden in the application pom.xml.
I selected the "mytest" project and then selected the "mvn help~effective-pom" external tool configuration. Here, we can see the console output from executing the "help:effective-pom" goal on "mytest".
Use output property:
mvn help:effective-pom -Doutput=< FILE >
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With