<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
相关推荐
Python_Study202515 分钟前
制造业数据采集系统选型指南:从技术挑战到架构实践Cx330❀18 分钟前
Git 多人协作全攻略:从入门到高效协同Tob管理笔记1 小时前
建筑业如何精准开拓优质客户?技术驱动下的方法论与实践MM_MS1 小时前
Halcon控制语句JZC_xiaozhong2 小时前
主数据同步失效引发的业务风险与集成架构治理T06205142 小时前
【数据集】全国各地区教育139个相关指标数据集(2000-2024年)故乡de云2 小时前
Vertex AI 企业账号体系,Google Cloud 才能完整支撑汽车仪器仪表相关领域3 小时前
AI赋能智能检测,引领灯光检测新高度——NHD-6109智能全自动远近光检测仪项目实战分享木头程序员3 小时前
大模型边缘部署突破:动态推理技术与精度-延迟-能耗帕累托优化DX_水位流量监测3 小时前
无人机测流之雷达流速仪监测技术分析