问题
I am new to maven and trying to figure out how to share the jar file of the module with our another team. They are developing another module and their module depends on our module.
Will it be the best solution to setup 3rd party maven remote repository ? What will be the correct tools for this?
We use Hudson to manage our integration environment build. And I started looking into Artifactory and Artifactory plugin for Hudson. Is it correct approach?
Thanks.
回答1:
There are 3 main Maven repository managers to consider:
- Nexus
- Artifactory
- Archiva
Personally, I would recommend Nexus.
A left field option to consider is the Jenkins Maven repository plugin. This enables the jar built by Jenkins to be published as a Maven module. (Hudson and Jenkins plugins should still be compatible)
回答2:
Yes have a look at using a corporate repository manager to deploy your artifacts and share it with other teams. You have:
- artifactory
- nexus
- apache archiva
来源:https://stackoverflow.com/questions/9201195/share-jar-of-the-module-with-another-team