2017-10-31 9 views
1

IntelliJ에서 pom.xml의 설정이 빨간색입니까?왜 profile.no-liquibase 및 profile.no-swagger에 대해 IntelliJ pom.xml이 빨간색입니까?

enter image description here

내가 그것을 어떻게

을 를 해결할 수

?

+1

빨간색 설정은 어디에 정의되어 있습니까? – vikingsteve

+0

미안 나는 바보 같은 질문을했다. 이제 속성에 정의됩니다 :-) – powder366

+0

속성은 무엇입니까? 시스템 속성? 정의 방법을 보여주십시오. – vikingsteve

답변

0

I이 인 IntelliJ을 사용하여 설정을 받는다는에 정의는 pom.xml 파일

enter image description here

프로필

... 
    <profiles> 
    <profile> 
     <id>no-liquibase</id> 
     <properties> 
      <profile.no-liquibase>,no-liquibase</profile.no-liquibase> 
     </properties> 
    </profile> 
    ... 

스프링 프로파일 예 https://www.mkyong.com/spring/spring-profiles-example/

메이븐 프로파일 예 https://www.mkyong.com/maven/how-to-create-user-defined-properties-in-maven/

IDE에서 프로젝트를 선택하고 프로젝트를 재구성하면 해결되었습니다.

mvn clean install