V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
VKRUSSIA
V2EX  ›  Java

多 war 模块的 maven 项目怎样给每个 war 设置不同的域名?

  •  
  •   VKRUSSIA · 2021-01-19 19:19:08 +08:00 · 1108 次点击
    这是一个创建于 1185 天前的主题,其中的信息可能已经有所发展或是发生改变。

    目前用的 [ maven-war-plugin ] 插件将多个 war 合并,但是合并以后就不能用 [ tomcat8-maven-plugin ] 的 Alias 属性给每个 war 设置不同的域名了。 怎样才能在多个 war 模块的 maven 项目中给每个 war 模块设置不同的域名呢?

    `<plugin> <groupId>org.apache.maven.plugins</groupId>

            <artifactId>maven-war-plugin</artifactId>
            <version>3.3.1</version>
            <configuration>
                <overlays>
                    <overlay>
                        <groupId>${project.groupId}</groupId>
                        <artifactId>dekingCloudApi</artifactId>
                    </overlay>
                </overlays>
                <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
        </plugin>`
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4052 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:16 · PVG 13:16 · LAX 22:16 · JFK 01:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.