Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从命令行调用 Maven 插件中特定版本的目标。
如何做到这一点?
我正在寻找类似的东西:
mvn org.foo:my-plugin:1.2.3-SNAPSHOT:do-something
你的第一个猜测是正确的。这种命令的方案是
mvn groupid:artifactid:version:goal
例子:
mvn org.apache.maven.plugins:maven-compiler-plugin:3.0:compile