2016-06-16 7 views
0

私はjacocoレポートをスキャンするMavenプロジェクトでjQAssistantを設定した:jQAssistantにmavenの.gitディレクトリをスキャンする方法を教えてください。

<scanInclude> 
    <path>my-maven-submodule/target/site/jacoco</path> 
</scanInclude> 

これが正常に動作します。 GitリポジトリをスキャンするようにjQAを設定しました。

<scanInclude> 
    <path>.git</path> 
</scanInclude> 

.gitディレクトリが入力されていないため、これは機能しません。 Git Scanner Pluginは、 "Entering .git"ログメッセージが表示されず、このディレクトリのファイルが提供されていないことをデバッグ出力に示します。どうして?そして、.gitディレクトリをスキャンするようにjQAを設定するには? スタンドアロンプ​​ログラムは、 Gradle氏はうまく動作し、そこにGitリポジトリがインポートされます。

答えて

2

だけ変更し、春Petclinicサンプル(http://github.com/buschmais/spring-petclinic)でそれを試してみました - それが働いている:

 <!-- jQAssistant --> 
     <plugin> 
      <groupId>com.buschmais.jqassistant.scm</groupId> 
      <artifactId>jqassistant-maven-plugin</artifactId> 
      <version>${jqassistant.version}</version> 
      <executions> 
       <execution> 
        <goals> 
         <goal>scan</goal> 
         <goal>analyze</goal> 
        </goals> 
        <configuration> 
         <failOnViolations>false</failOnViolations> 
         <!-- 
         <groups> 
          <group>default</group> 
         </groups> 
         --> 
         <scanIncludes> 
          <scanInclude> 
           <path>.git</path> 
          </scanInclude> 
         </scanIncludes> 
         <reportProperties> 
          <graphml.report.directory>${project.build.directory}/graphml</graphml.report.directory> 
         </reportProperties> 
        </configuration> 
       </execution> 
      </executions> 
      <dependencies> 
       <dependency> 
        <groupId>com.buschmais.jqassistant.plugin</groupId> 
        <artifactId>jqassistant.plugin.jpa2</artifactId> 
        <version>${jqassistant.version}</version> 
       </dependency> 
       <dependency> 
        <groupId>com.buschmais.jqassistant.plugin</groupId> 
        <artifactId>jqassistant.plugin.graphml</artifactId> 
        <version>${jqassistant.version}</version> 
       </dependency> 
       <dependency> 
        <groupId>de.kontext-e.jqassistant.plugin</groupId> 
        <artifactId>jqassistant.plugin.git</artifactId> 
        <version>1.1.1</version> 
       </dependency> 
      </dependencies> 
     </plugin> 
+0

私はちょうどpetclinic例に正式にGitのスキャナを追加した、リポジトリのクローンを作成し、それを試すことができます。 –

+0

ターゲット 'install'を使用すると動作しますが、ターゲット 'jqassistant:scan'を使用していることに気づきました。 –

+0

マルチモジュールのMavenプロジェクトであるため、Gitスキャナはサブモジュールの数だけ頻繁に起動します。いくつかのディレクトリを一度スキャンするようにjQA mavenプラグインに指示する方法はありますか? –

関連する問題