You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
166 lines
6.6 KiB
166 lines
6.6 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>com.keyware.sonar</groupId>
|
|
<artifactId>sonar-keyware</artifactId>
|
|
<version>1.0</version>
|
|
</parent>
|
|
|
|
<!--<parent>
|
|
<groupId>org.sonarsource.sonarqube-plugins.cxx</groupId>
|
|
<artifactId>cxx</artifactId>
|
|
<version>2.1.2-SNAPSHOT</version>
|
|
</parent>-->
|
|
|
|
<!--<groupId>com.keyware.sonar</groupId>-->
|
|
<name>C++ 信息安全性设计准则</name>
|
|
<artifactId>sonar-keyware-plugins-cxx</artifactId>
|
|
<version>1.0</version>
|
|
<packaging>sonar-plugin</packaging>
|
|
<description>用于检查C++源代码的安全性设计准则的Sonarqube插件</description>
|
|
|
|
<properties>
|
|
<sonar.artifact.path>target/${project.artifactId}-${project.version}.jar</sonar.artifact.path>
|
|
<sonar.pluginClass>com.keyware.sonar.cxx.CxxPlugin</sonar.pluginClass>
|
|
<sonar.pluginName>C++ 信息安全性设计准则</sonar.pluginName>
|
|
<!-- in addition, a dependency must be set in 'integration-tests/pom.xml' to aggregate the results -->
|
|
<aggregate.report.dir>integration-tests/target/site/jacoco-aggregate/jacoco.xml</aggregate.report.dir>
|
|
<sonar.coverage.jacoco.xmlReportPaths>${basedir}/../${aggregate.report.dir}</sonar.coverage.jacoco.xmlReportPaths>
|
|
|
|
<commons-io.version>2.15.1</commons-io.version>
|
|
<commons-lang.version>2.6</commons-lang.version>
|
|
<sonar-cxx.versin>2.1.2-SNAPSHOT</sonar-cxx.versin>
|
|
<!-- we depend on API ${sonar.version} but we keep backward compatibility with LTS -->
|
|
<sonar.version>9.9.0.65466</sonar.version>
|
|
<sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version>
|
|
<pluginApiMinVersion>8.9</pluginApiMinVersion>
|
|
<gson.version>2.10.1</gson.version>
|
|
<guava.version>33.0.0-jre</guava.version>
|
|
<jsr305.version>3.0.2</jsr305.version>
|
|
<mockito-all.version>1.10.19</mockito-all.version>
|
|
<mockito-core.version>5.8.0</mockito-core.version>
|
|
<assertj-core.version>3.24.2</assertj-core.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.sonarsource.api.plugin</groupId>
|
|
<artifactId>sonar-plugin-api</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonarsource.sonarqube</groupId>
|
|
<artifactId>sonar-plugin-api-impl</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonarsource.sonarqube-plugins.cxx</groupId>
|
|
<artifactId>cxx-squid</artifactId>
|
|
<version>${sonar-cxx.versin}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonarsource.sonarqube-plugins.cxx</groupId>
|
|
<artifactId>cxx-checks</artifactId>
|
|
<version>${sonar-cxx.versin}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonarsource.sonarqube-plugins.cxx</groupId>
|
|
<artifactId>cxx-sensors</artifactId>
|
|
<version>${sonar-cxx.versin}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonarsource.sonarqube-plugins.cxx</groupId>
|
|
<artifactId>cxx-squid-bridge</artifactId>
|
|
<version>${sonar-cxx.versin}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonarsource.sonarqube-plugins.cxx</groupId>
|
|
<artifactId>sslr-core</artifactId>
|
|
<version>${sonar-cxx.versin}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
<artifactId>jsr305</artifactId>
|
|
<version>${jsr305.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>${guava.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>${gson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>${mockito-core.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<version>${assertj-core.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
|
|
<artifactId>sonar-packaging-maven-plugin</artifactId>
|
|
<configuration>
|
|
<pluginApiMinVersion>${pluginApiMinVersion}</pluginApiMinVersion>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.mycila</groupId>
|
|
<artifactId>license-maven-plugin</artifactId>
|
|
<configuration>
|
|
<header>${project.basedir}/src/main/resources/license-header.txt</header>
|
|
<!--排除文件-->
|
|
<excludes>
|
|
<exclude>**/*.properties</exclude>
|
|
<exclude>*.sh</exclude>
|
|
<exclude>*.yml</exclude>
|
|
<exclude>.editorconfig</exclude>
|
|
<exclude>.gitignore</exclude>
|
|
<exclude>**/*.md</exclude>
|
|
<exclude>**/*.xml</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<excludes>
|
|
<exclude>com/sonar/sqale/cxx-model-project*</exclude>
|
|
<exclude>external/*</exclude>
|
|
</excludes>
|
|
</resource>
|
|
</resources>
|
|
</build>
|
|
</project> |