我正在将 websphere 门户项目转换为用于 CI 构建的 Maven 框架。我想知道是否有一种方法可以引用 websphere jar,而不是通过 pom.xml 中的依赖项并将它们全部加载到 maven 存储库?我无法想象将它们全部加载到存储库中...... 请指教!谢谢!
最佳答案
使用 Maven 时,建议将所有依赖的 jar 安装在存储库中。甚至是 Websphere 的。
理想情况下,公司存储库在这里会派上用场,这样您就可以为项目中的所有用户访问的所有 Websphere jar 保留一个单独的存储库。参见 http://maven.apache.org/repository-management.html了解更多。
如果这不是一个选项,则使用本地文件存储库 explained on a previous questions - here .
您仍然需要在 POM 中添加每个依赖项。
另请阅读 http://sdudzin.blogspot.com/2007/09/maven-2-and-websphere-automated-build.html
关于maven-2 - 将 websphere 门户项目转换为 maven,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3133498/