Reputation: 1029
I am trying to use
mvn help:effective-pom -Dartifact=com.group:artifactname:1.0.0-SNAPSHOT
but it is still printing out effective pom for a current project.
Is there any way to use it? I am following Maven help:effective-pom documentation.
Upvotes: 3
Views: 1142
Reputation: 131546
This parameter is recent : it requires at least the 3.0.0
version of maven-help-plugin
.
Your pom.xml doesn't use it very probably.
Note that you don't have any error in the output because a user property (-D
) may be used to define a plugin parameter or any custom property. So the plugin just doesn't use it if it is not recognized.
So configure your pom to use a maven-help-plugin
version that supports it or the last :
<build>
<plugins>
<plugin>
<artifactId>maven-help-plugin</artifactId>
<version>3.1.0</version>
</plugin>
</plugins>
<build>
or specify explicitly the version of the plugin in the command line :
mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:effective-pom -Dartifact=com.group:artifactname:1.0.0-SNAPSHOT
Upvotes: 4