2016-11-01 3 views
0

maven을 사용하여 SAKAI를 만들려고하면 다음 오류가 발생합니다. 같은 문제에 직면 한 사람이 있습니까? 또한 첫째로 나는 sakai 소스 폴더 (sakai-src)에 master 폴더를 빌드한다. .m2 폴더 (c:/user/pc-user/.m2) 안에 repository라는 폴더가 있어야하지만 존재하지 않아야한다.목표 org.apache.maven.plugins를 실행하지 못했습니다 : maven-surefire-plugin : 2.16 : SAKAI의 테스트 오류

  • 사카이 10.7
  • 메이븐 3.3.1
  • 톰캣 7.0.72
몇 가지 테스트가 실패하는 빌드를 일으키는 경우 특정 시간이 있습니다
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project external-calendaring-service-impl: There are test failures. 
[ERROR] 
[ERROR] Please refer to C:\apache\sakai-src\external-calendaring-service\impl\target\surefire-reports for the individual test results. 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :external-calendaring-service-impl 

답변

1


. 빌드를 계속 진행하는 것이 가장 좋은 해결 방법 중 하나입니다. 플러그인의 excludes 속성을 구성하여 제외 할 수 있습니다.

Maven Surefire Plugin/Inclusions and Exclusions of Tests

내 솔루션 확인하는 것입니다에 C : \ 아파치 \ 사카이 SRC \ 외부 일정 서비스 \ IMPL \ 대상 \ 실패한 테스트에 대한 확실한-보고서와 치어에서 그들을 제외 .xml.

<project> 
     [...] 
     <build> 
     <plugins> 
      <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-surefire-plugin</artifactId> 
      <version>2.19.1</version> 
      <configuration> 
       <excludes> 
       <exclude>**/TestCircle.java</exclude> 
       <exclude>**/TestSquare.java</exclude> 
       </excludes> 
      </configuration> 
      </plugin> 
     </plugins> 
     </build> 
     [...] 
    </project> 

또 다른 해결책은 다음과 메이븐 명령을 실행할 수 있습니다 :

mvn clean install -X -e -DskipTests 
+0

첫째 정말 고마워, 당신이 내 문제를 해결할 것을 제안하지만 왜 .m2 폴더에 저장소 폴더를 만들 수 없습니다 두 번째 해결책? –

+0

전체 로그를 제공하면 추측 할 수 있습니다. 처음에는 [INSTALL] 태그에 대한 로그를 확인할 수 있습니다. 항아리가 저장 될 경로를 보여줍니다. Maven보다 [INSTALL]이있는 행을 찾을 수 없으면 실패한 테스트에서 종속성 다운로드를 취소 할 수 있습니다. 또한 폴더가 숨겨져있을 수도 있습니다. – 0x44656e6e795279616e

관련 문제