广州老实人

导航

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>

 

 

======

创作不易,谢谢支持!

 

posted on 2019-06-03 09:18  广州老实人  阅读(8240)  评论(0编辑  收藏  举报