ben*_*iii 16 java deployment spring-mvc war maven
当我尝试构建我的maven项目时,我得到了这个警告.我搜索谷歌但没有运气.这真的很烦人,因为我想发布我的项目,但它不会使用这个警告(我认为).构建是成功的,但是当我尝试部署war文件时,它不起作用(没有错误消息).我在构建项目时能找到的唯一警告是:
[WARNING] The requested profile "projectname" could not be activated because it does not exist.
Run Code Online (Sandbox Code Playgroud)
    小智 18
如果您在settings.xml(在.m2目录中)中包含以下内容,并且没有具有id projectname的配置文件,则会发生这种情况.
<activeProfiles>
  <activeProfile>projectname</activeProfile>
</activeProfiles>
Run Code Online (Sandbox Code Playgroud)
        您需要使用以下配置文件配置项目pom.xml:
<profiles>
    <profile>
        <id>**projectid**</id>
    </profile>
</profiles>
Run Code Online (Sandbox Code Playgroud)
        |   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           39016 次  |  
        
|   最近记录:  |