Maven - 使用 SVN 中的旧 jar
我正在将 J2ee 项目迁移到 Maven,
除了我们几年前编写的 2 个旧 jar 文件之外,我能够解决 99% 的依赖项 前,
是否可以将这些 jar 放在某个地方(SVN 存储库?)
并告诉 pom.xml 从那里获取库?
<dependency>
<groupId>com.myCompany </groupId>
<artifactId>very old Jar</artifactId>
<version>1.1.0</version>
<location>svn://archaic/jars/dont/move/this/jar1.jar</location>
</dependency>
谢谢你!
I am migrating J2ee project to Maven,
I was able to resolve 99% of its dependencies except 2 old jar files we wrote few years
ago,
Is it possible to drop these jars somewhere (SVN repo?)
And tell the pom.xml to take the libraries from there?
<dependency>
<groupId>com.myCompany </groupId>
<artifactId>very old Jar</artifactId>
<version>1.1.0</version>
<location>svn://archaic/jars/dont/move/this/jar1.jar</location>
</dependency>
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将它们保留在项目中并添加系统范围的依赖项,这允许您指定使用“systemPath”元素将本地文件作为依赖项。
如果您要切换到 Maven,您可能需要考虑设置自己的存储库管理器来处理此问题并代理外部存储库以实现更快的访问和方便的搜索。 Nexus 非常受欢迎并且非常设置简单。
You can keep them in the project and add a system-scoped dependency, which lets you specify a path to a local file as a dependency using the "systemPath" element.
If you're switching to Maven, you might want to look at setting up your own repository manager both to handle this and to proxy outside repos for quicker access and convenient searching. Nexus is very popular and extremely simple to set up.