【问题标题】:Why Jetty 9 doesn't respect finalName?为什么 Jetty 9 不尊重 finalName?
【发布时间】:2015-06-25 04:34:23
【问题描述】:

我正在使用带有 Jetty 插件的 Maven,但我的项目在 URL 中丢失了它们的 finalName。 它们以前就像 localhost:8080/projectname,现在它们只是 localhost:8080。 有没有办法强制 Jetty 使用 finalName?

【问题讨论】:

    标签: maven plugins jetty


    【解决方案1】:

    Maven 的 <project>/<build>/<finalName> 和您的 Jetty contextPath 与 jetty-maven-plugin 完全无关。

    jetty-maven-plugin 的 contextPath 默认为 /

    您需要按照 jetty-maven-plugin 的说明configure your webapp,重点关注插件<configuration> 中的<contextPath> 元素。

    【讨论】:

    • 非常感谢 Joakim,更准确地说是我必须做的:...
    猜你喜欢
    • 2013-10-17
    • 2015-03-14
    • 2021-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-04
    • 2014-03-03
    • 1970-01-01
    相关资源
    最近更新 更多