0

jacoco レポートをスキャンするように、Maven プロジェクトで jQAssistant を構成しました。

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

これはうまくいきます。次に、Git リポジトリをスキャンするように jQA を構成しました。

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

.git ディレクトリが入力されていないため、これは機能しません。「Entering .git」ログ メッセージはなく、Git スキャナー プラグインのデバッグ出力には、このディレクトリからファイルが提供されていないことが示されます。なんで?また、.git ディレクトリをスキャンするように jQA を構成するにはどうすればよいですか? Gradle などで使用されるスタンドアロン プログラムは正常に動作し、そこで Git リポジトリがインポートされます。

4

1 に答える 1

2

Spring 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>
于 2016-06-16T13:21:01.387 に答える