如果中央存储库中不存在Maven工件,则如何进行部署 [英] How to deploy maven artifacts if they are not present in the central repository
问题描述
如果存储库中不存在rar工件,则将采用什么机制来进行部署. (例如,我想部署 jackrabbit 到我的j2ee应用程序中,但是它不能作为Maven存储库的一部分使用.我是否必须将二进制文件本地存储在SVN中并使用antrun插件进行复制?
What would be the mechanism to deploy rar artifacts if they are not present in the repository. (e.g. I would like to deploy jackrabbit to my j2ee application, but it is not available as part of the maven repositories. Should I have to store the binary locally in SVN and use the antrun plugin to copy it?
推荐答案
然而,对于您的问题,更具体的答案是中央存储库中提供了Jackrabbit:
A more specific answer to your question however is that Jackrabbit is available in the central repository:
http://repo2.maven. org/maven2/org/apache/jackrabbit/jackrabbit-jca/2.0.0/
您可以将其包括在以下内容中:
You can include it with:
<dependency>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-jca</artifactId>
<version>2.0.0</version>
<type>rar</type>
</dependency>
这篇关于如果中央存储库中不存在Maven工件,则如何进行部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!