<plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
</execution>
<execution>
<id>validate-the-git-infos</id>
<goals>
<goal>validateRevision</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<!-- that's the default value, you don't have to set it -->
<prefix>git</prefix>
<verbose>false</verbose>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties
</generateGitPropertiesFilename>
<gitDescribe>
<skip>false</skip>
<always>false</always>
<dirty>-dirty</dirty>
</gitDescribe>
</configuration>
</plugin>
<!-- sonar插件配置 start -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<configuration>
<skip>${maven.test.skip}</skip>
<destFile>${basedir}/target/jacoco.exec</destFile>
<output>file</output>
<append>true</append>
</configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<phase>test-compile</phase>
</execution>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- sonar插件配置 end -->
</plugins>
git sonar maven 配置
笔墨登场说说2024-11-06 8:05
相关推荐
大圣数据星球2 小时前
Fluss 写入数据湖实战suweijie7682 小时前
SpringCloudAlibaba | Sentinel从基础到进阶Data跳动7 小时前
Spark内存都消耗在哪里了?woshiabc1118 小时前
windows安装Elasticsearch及增删改查操作lucky_syq9 小时前
Saprk和Flink的区别lucky_syq9 小时前
流式处理,为什么Flink比Spark Streaming好?袋鼠云数栈9 小时前
深入浅出Flink CEP丨如何通过Flink SQL作业动态更新Flink CEP作业小白学大数据10 小时前
如何使用Selenium处理JavaScript动态加载的内容?15年网络推广青哥10 小时前
国际抖音TikTok矩阵运营的关键要素有哪些?节点。csn11 小时前
Hadoop yarn安装