0

我在一个 Maven 项目中配置了 jQAssistant 来扫描 jacoco 报告:

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

这工作正常。然后我将 jQA 配置为扫描 Git 存储库:

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

这不起作用,因为没有输入 .git 目录。没有“正在输入 .git”日志消息,Git Scanner 插件在其调试输出中显示没有提供此目录中的文件。为什么?以及如何配置 jQA 来扫描 .git 目录?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 回答