代码之家  ›  专栏  ›  技术社区  ›  Jens Nerche

如何告诉jQAssistant扫描maven中的.git目录?

  •  0
  • Jens Nerche  · 技术社区  · 9 年前

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

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

    这很好。然后我配置jQA扫描Git repo:

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

    这不起作用,因为没有输入.git目录。没有“Entering.git”日志消息,git Scanner插件在其调试输出中显示,没有提供此目录中的文件。为什么?如何配置jQA来扫描.git目录? Gradle使用的独立程序运行良好,Git repo导入。

    1 回复  |  直到 9 年前
        1
  •  2
  •   Dirk Mahler    9 年前

    刚刚修改过,并用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>
    
    推荐文章