pluginManagement的坑
想用protobuf-maven-plugin插件,用了<pluginManagement/>标签包裹<plugin/>,就引不进来,去掉就可以引进来。需要研究下。 <build> <pluginManagement> <plugins> <plugin> <groupId>org.xolstice.maven.plugins</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>0.6.1</version> <executions> <execution> <goals> <goal>compile</goal> <goal>compile-custom</goal> </goals> <configuration> <pluginParameter>enable_deprecated=true</pluginParameter> </configuration> </execution> </executions> </plugin> </plugins> </pluginManagement> </build> 以上配置,引不进来。 <build> <plugins> <plugin> <groupId>org.xolstice.maven.plugins</groupId>