如何在 pom.xml 中添加 struts-layout.jar 条目

发布于 2024-12-26 12:11:33 字数 865 浏览 2 评论 0原文

我正在尝试使用 Maven 部署基于 Struts 1.3 的应用程序。 我想在 pom.xml 中添加 Struts-Layout.jar 条目。

仔细查看后,我得到了在 pom.xml 中添加以下条目的答案:

  <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>Struts-Layout</artifactId>
            <version>1.3</version>
        </dependency>

但它给出了此错误:

  [ERROR] Failed to execute goal on project sample: Could not resolve depe
    ndencies for project com.sample.cms:sample:war:1.1.32: Failure to find o
    rg.apache.struts:Struts-Layout:jar:1.3 in http://maven.springframework.org/exter
    nal was cached in the local repository, resolution will not be reattempted until
     the update interval of spring-maven-external has elapsed or updates are forced

maven 的版本是 Maven 3.0.3 如何解决这个问题呢?

i am trying to deploy struts 1.3 based application using maven.
I want to add Struts-Layout.jar entry in pom.xml.

after goggling i got this answer to add following entry in pom.xml:

  <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>Struts-Layout</artifactId>
            <version>1.3</version>
        </dependency>

But it gives this error :

  [ERROR] Failed to execute goal on project sample: Could not resolve depe
    ndencies for project com.sample.cms:sample:war:1.1.32: Failure to find o
    rg.apache.struts:Struts-Layout:jar:1.3 in http://maven.springframework.org/exter
    nal was cached in the local repository, resolution will not be reattempted until
     the update interval of spring-maven-external has elapsed or updates are forced

version of maven is Maven 3.0.3
How to solve this problem?

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

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

发布评论

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

评论(1

甜点 2025-01-02 12:11:33

请参阅http://bug.improve-community.com/view.php?id= 160。看来这个库没有部署在任何公共 Maven 存储库上。您必须下载它并将其添加到您自己的私人存储库中。

See http://bug.improve-community.com/view.php?id=160. It seems that this library is not deployed on any public maven repo. You'll have to download it and add it to your own private repository.

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