본문 바로가기

Util & Etc & Build Tool/Maven

[Maven] test 안하는 옵션

http://lks21c.blogspot.kr/2011/12/how-to-skip-testing-while-maven-build.html 참고


메이븐 빌드 시 테스트 건너뛰기(How to skip testing while the maven build time)
방법 #1 : 메이븐 빌드 명령어 추가
   1: mvn -Dmaven.test.skip=true

방법 #2 : 메이븐 pom.xml에 추가(maven.test.skip은 예약어입니다.)

   1: <properties>

   2:     <maven.test.skip>true</maven.test.skip>

   3: </properties>

  방법 #3 

<project>
  [...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.17</version>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
    </plugins>
  </build>
  [...]
</project>