简体   繁体   中英

Maven ignores plugin configuration from pom.xml

While executing a phase everything works as expected, when I try to call a plugin (mojo) directly like

mvn net.masterthought:maven-cucumber-reporting:5.5.0:generate

maven seems to ignore <configuration></configuration> block of the plugin specified in pom.xml. And if a parameter of the plugin is required, maven obviously fails as it thinks it is not set (did you try to look at your pom.xml, dear maven?). Is this by designed or I misunderstand something?

I guess you have put the <configuration> into an <execution> block.

If this is the case, move it out of <executions> .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM