<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
相关推荐
key_3_feng3 小时前
反馈闭环:Agent 自我进化的真正引擎EnCi Zheng3 小时前
Agent 如何进行工具调用:从一次 Function Calling 到生产级工具编排的完整链路GlobalInfo3 小时前
重磅发布 | 2026年船体清洁机器人行业研究报告:市场规模、发展前景与十五五战略地图海宇服务3 小时前
零信任架构实战:基于海宇全能小微企业报告构建自动化园区商户免押租赁资信核验网关热文新讯4 小时前
迎进博·话疗愈:2026酒店“疗愈睡眠”闭门研讨会在沪举行NailiConveyor7 小时前
柔性物流方案如何适配工厂升级?自动化输送流水线定制要点梦影_7 小时前
MySQL进阶教程(五)—— SQL调优(下)没落之王8 小时前
三易五行看宋朝的三界确立samLi062010 小时前
【数据集】水星逆行及相关日期窗口数据(1973-2025年)updayday85410 小时前
客户附件不该发往旧邮箱,如何在发送前拦截 - Ping64 邮件安全管控