其中一部分很简单 - 如果您相应地创建文件夹结构并在 maven 中进行发布构建,则将创建所有 jar:
"${xxx}/src/main/java" 将用于创建 "${xxx}.jar" 和 "${xxx}-sources.jar"
"${xxx}/src/test/java" 将用于创建 "${xxx}-test.jar" 和 "${xxx}-test-sources.jar"
最重要的是,maven 发布插件还将创建 javadocs 并将它们打包为“${xxx}-test-sources.jar”
所有这些都将上传到您的 maven 存储库 - 您只需将所有内容放在正确的位置,然后调用正确的 maven 目标即可。
最重要的是,您可以使用 maven 程序集插件来创建您构建中创建的所有工件的 ZIP。我没有具体的代码,但你必须熟悉 maven 和程序集插件。我没有看到很多并发症。
if you work with several people, you probably need some infrastructure - we have a general nexus for proxying the standard repositories locally, and then one repository per maven project.
when i did the transition to maven in our organisation, it was painful for a few days, because people had to get familiar with it. but it paid off - the projects are much smaller, and deploying release builds is a breeze.
i'd recommend getting into maven, then you will see how nice&friendly dependency management can be.