WAS 部署中的 Ivy 库

发布于 2024-09-15 02:48:51 字数 139 浏览 4 评论 0原文

我在 RAD 里有一场战争。我正在使用 Ivy 来管理我的项目依赖项。我唯一的问题是,当我通过 RAD 将 Ear 部署到 WAS 的开发实例时,部署没有看到任何来自 ivy 的依赖库。如何配置项目,以便在将项目部署到 websphere 时显示 ivy 依赖项?

I have a war attached to an ear in RAD. I'm using Ivy to manage my project dependencies. My only problem is that when I deploy the ear to my dev instance of WAS through RAD, the deployment doesn't see any dependent libraries from ivy. How can I configure the project so that the ivy dependencies show up when the project is deployed to websphere?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生寂 2024-09-22 02:48:51

Ivy 在构建 WAR 和 EAR 文件时使用。

例如:

<ivy:retrieve pattern="${lib.dir}/[artifact].[ext]"/>

<war destfile="${war.file}" webxml="${resources.dir}/web.xml">
    <fileset dir="${resources.dir}" excludes="web.xml"/>
    <lib dir="${lib.dir}"/>
</war>

retrieve 命令用于填充 lib 目录,其内容被复制到 WAR 中。 (lib 标签确保 jar 被放置在 WAR 内的 WEB-INF/lib 下)

更新

如果您只是想,可以从命令行运行 ivy 检索任务将依赖项下载到本地目录:

java -jar ivy.jar -ivy ivy.xml -retrieve "lib/[artifact].[ext]"

Ivy is used when building the WAR and EAR files.

For example:

<ivy:retrieve pattern="${lib.dir}/[artifact].[ext]"/>

<war destfile="${war.file}" webxml="${resources.dir}/web.xml">
    <fileset dir="${resources.dir}" excludes="web.xml"/>
    <lib dir="${lib.dir}"/>
</war>

The retrieve command is used to populate a lib directory whose contents are copied into the WAR. (The lib tag ensures the jars are placed under WEB-INF/lib within the WAR)

Update

The ivy retrieve task can be run from the command line, if you just want to download dependencies to a local directory:

java -jar ivy.jar -ivy ivy.xml -retrieve "lib/[artifact].[ext]"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文