2014-11-25 12 views
0

mojo의 플러그인 빌드 도우미를 프로젝트 pom에 추가하여 통합 테스트를위한 새 테스트 소스 폴더를 생성했습니다. 내가 위상을 실행하면-생성 테스트 소스생성 된 테스트 소스 폴더를 mojo의 빌드 도우미와 함께 볼 수 없습니다.

mvn generate-test-sources 

내가 테스트 소스 폴더를 보여주는 아래의 콘솔 출력을 볼 수 있었다 생성했다,하지만 난 프로젝트 탐색기에서 볼 때, 나는 어떤 폴더가 표시되지 않는 만들어졌습니다. 내가 뭔가 잘못하고 있습니까

<plugin> 
     <groupId>org.codehaus.mojo</groupId> 
     <artifactId>build-helper-maven-plugin</artifactId> 
     <version>1.9</version> 
     <executions> 
      <execution> 
      <id>add-integration-test-sources</id> 
      <phase>generate-test-sources</phase> 
      <goals> 
       <goal>add-test-source</goal> 
      </goals> 
      <configuration> 
       <sources> 
       <source>src/integration-test/java</source> 
       </sources> 
      </configuration> 
      </execution> 
     </executions> 
</plugin> 

아래

[INFO] Scanning for projects... 
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for ******* 
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.guava:guava:jar -> version 18.0 vs ${guava.version} @ line 154, column 21 
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.unitils:unitils-core:jar -> duplicate declaration of version 3.3 @ line 164, column 21 
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. 
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. 
[WARNING] 
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building projectxxStaticAnalysisxxxxx versionxxxxx 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ StaticAnalysis --- 
[INFO] Using 'UTF-8' encoding to copy filtered resources. 
[INFO] Copying 4 resources 
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ StaticAnalysis --- 
[INFO] Nothing to compile - all classes are up to date 
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9:add-test-source (add-integration-test-sources) @ StaticAnalysis --- 
[INFO] Test Source directory: C:\{workspacepath}\src\integration-test\java added. 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD SUCCESS 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.421 s 
[INFO] Finished at: 2014-11-25T11:26:59-06:00 
[INFO] Final Memory: 9M/303M 
[INFO] ------------------------------------------------------------------------  

내 치어 구성 플러그인입니다? 도와주세요.

감사합니다.

답변

1

내 질문에 대한 답변을 찾은 것 같습니다. 실제로 build-helper 플러그인이 나를 위해 테스트 폴더를 만들 것을 기대하고있었습니다. 그러나 사실, 그것은 당신을 위해 폴더를 만들지 않을 것입니다.

테스트 폴더를 만들고이 build-helper 플러그인을 사용하여 위의 my pom과 같이 테스트 폴더로 만든 폴더를 maven에게 처리해야합니다. 새 테스트 폴더를 만들어서 문제를 해결하고 다음 명령을 실행했습니다.

mvn generate-test-sources eclipse:eclipse 

희망이 있습니다.