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.
我正在尝试创建一个工件,其中包括我的测试以及 src 文件。我的 pom 有以下插件: org.apache.maven.plugins maven-jar-plugin 2.4 test-jar jar
但结果是这会创建两个工件,一个带有 src 没有测试,第二个只包含测试。
有什么方法可以只创建 1 个包含测试的工件,或者将工件复制到包含 src 的工件
提前致谢
这违反了 Maven 约定。所以插件很可能不提供这个。