我是靠谱客的博主 拉长果汁,这篇文章主要介绍The requested profile ‘prod‘ could not be activated because it does not exist.,现在分享给大家,希望可以做个参考。

使用maven打包时警告:The requested profile 'prod' could not be activated because it does not exist.

需要在pom.xml配置多环境参数(仅供参考)

    <!--多环境参数配置-->
    <profiles>
        <profile>
            <id>dev</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <profilesActive>dev</profilesActive>
            </properties>
        </profile>
        <profile>
            <id>test</id>
            <properties>
                <profilesActive>test</profilesActive>
            </properties>
        </profile>
        <profile>
            <id>prod</id>
            <properties>
                <profilesActive>prod</profilesActive>
            </properties>
        </profile>
    </profiles>

​​​​​​​​​​​​​​

最后

以上就是拉长果汁最近收集整理的关于The requested profile ‘prod‘ could not be activated because it does not exist.的全部内容,更多相关The内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(42)

评论列表共有 0 条评论

立即
投稿
返回
顶部