mirror of https://github.com/alibaba/p3c.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
273 lines
8.5 KiB
XML
273 lines
8.5 KiB
XML
<?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>org.sonatype.oss</groupId>
|
|
<artifactId>oss-parent</artifactId>
|
|
<version>9</version>
|
|
</parent>
|
|
<groupId>com.alibaba.p3c</groupId>
|
|
<artifactId>p3c-pmd</artifactId>
|
|
<version>2.0.1</version>
|
|
<packaging>jar</packaging>
|
|
<name>p3c-pmd</name>
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<pmd.version>6.15.0</pmd.version>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<annotation.version>1.3.2</annotation.version>
|
|
<kotlin.version>1.3.50</kotlin.version>
|
|
</properties>
|
|
<description>Alibaba Java Coding Guidelines PMD implementations</description>
|
|
<url>https://github.com/alibaba/p3c</url>
|
|
<inceptionYear>2017</inceptionYear>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache 2</name>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
<distribution>repo</distribution>
|
|
<comments>A business-friendly OSS license</comments>
|
|
</license>
|
|
</licenses>
|
|
|
|
<scm>
|
|
<url>https://github.com/alibaba/p3c</url>
|
|
<connection>scm:git:https://git@github.com/alibaba/p3c.git</connection>
|
|
</scm>
|
|
|
|
<organization>
|
|
<name>Alibaba Group</name>
|
|
<url>https://github.com/alibaba</url>
|
|
</organization>
|
|
|
|
<developers>
|
|
<developer>
|
|
<name>XuanTan</name>
|
|
<url>https://github.com/xuantan</url>
|
|
<email>zhangym124@gmail.com</email>
|
|
</developer>
|
|
<developer>
|
|
<name>ChangLe</name>
|
|
<url>https://github.com/LQZYC</url>
|
|
<email>lqleo323@gmail.com</email>
|
|
</developer>
|
|
<developer>
|
|
<name>ZengHou</name>
|
|
<url>https://github.com/fw8899</url>
|
|
<email>fengwei1983@gmail.com</email>
|
|
</developer>
|
|
<developer>
|
|
<name>ShengYan</name>
|
|
<url>http://smiler158.github.io/</url>
|
|
<email>smiler158@163.com</email>
|
|
</developer>
|
|
<developer>
|
|
<name>KeQi</name>
|
|
<email>lyzw2009@gmail.com</email>
|
|
</developer>
|
|
<developer>
|
|
<name>JunLie</name>
|
|
<url>https://github.com/SeanCai</url>
|
|
<email>sean.caikang@gmail.com</email>
|
|
</developer>
|
|
<developer>
|
|
<name>MoYan</name>
|
|
<url>https://github.com/imu2008</url>
|
|
<email>panhuawenmail@gmail.com</email>
|
|
</developer>
|
|
</developers>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-java</artifactId>
|
|
<version>${pmd.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-vm</artifactId>
|
|
<version>${pmd.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-test</artifactId>
|
|
<version>${pmd.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.annotation</groupId>
|
|
<artifactId>javax.annotation-api</artifactId>
|
|
<version>${annotation.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
<configuration>
|
|
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
|
|
<targetJdk>${maven.compiler.target}</targetJdk>
|
|
<printFailingErrors>true</printFailingErrors>
|
|
<rulesets>
|
|
<ruleset>rulesets/java/ali-comment.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-concurrent.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-constant.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-exception.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-naming.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-oop.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-orm.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-other.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-set.xml</ruleset>
|
|
</rulesets>
|
|
<excludes>
|
|
<exclude>**/FixClassTypeResolver.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.alibaba.p3c</groupId>
|
|
<artifactId>p3c-pmd</artifactId>
|
|
<version>2.0.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<version>${kotlin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
|
|
<sourceDir>${project.basedir}/src/main/java</sourceDir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>test-compile</id>
|
|
<goals>
|
|
<goal>test-compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
|
|
<sourceDir>${project.basedir}/src/test/java</sourceDir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.0</version>
|
|
<configuration>
|
|
<source>${maven.compiler.target}</source>
|
|
<target>${maven.compiler.target}</target>
|
|
<encoding>UTF-8</encoding>
|
|
</configuration>
|
|
<executions>
|
|
<!-- Replacing default-compile as it is treated specially by maven -->
|
|
<execution>
|
|
<id>default-compile</id>
|
|
<phase>none</phase>
|
|
</execution>
|
|
<!-- Replacing default-testCompile as it is treated specially by maven -->
|
|
<execution>
|
|
<id>default-testCompile</id>
|
|
<phase>none</phase>
|
|
</execution>
|
|
<execution>
|
|
<id>java-compile</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>java-test-compile</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
<configuration>
|
|
<descriptorRefs>
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
</descriptorRefs>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>make-assembly</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.10.4</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadocs</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<tags>
|
|
<tag>
|
|
<name>date</name>
|
|
</tag>
|
|
</tags>
|
|
</configuration>
|
|
</plugin>
|
|
<!-- <plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<version>1.6</version>
|
|
<executions>
|
|
<execution>
|
|
<id>sign-artifacts</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>-->
|
|
</plugins>
|
|
</build>
|
|
</project>
|