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.
是否有一个可以执行的目标只会回显 pom 的版本?我可以想到一种使用 maven-ant-plugin 使其工作的方法,但这需要我在 pom 中进行 ant-plugin 配置,我想要一种适用于任何 pom 的方法。
mvn help:evaluate -Dexpression=project.version