diff options
| author | chaoc <[email protected]> | 2024-01-04 15:31:40 +0800 |
|---|---|---|
| committer | chaoc <[email protected]> | 2024-01-04 15:31:40 +0800 |
| commit | fd70a050e8fc0d79cc4263f5df6d227eb1f4cbad (patch) | |
| tree | c5a996b3b9f7cf7b622726c3a616f1dabfb56863 /pom.xml | |
| parent | f3b3191f34ead42c0f6520bc054257302d0fe1ed (diff) | |
chore: add JavaStyle and FindBugs related plugins and configs
Diffstat (limited to 'pom.xml')
| -rw-r--r-- | pom.xml | 384 |
1 files changed, 290 insertions, 94 deletions
@@ -121,14 +121,14 @@ <groupId>org.slf4j</groupId> <artifactId>log4j-over-slf4j</artifactId> <version>${slf4j.version}</version> - <scope>provided</scope> + <scope>provided</scope> </dependency> <!-- slf4j binding to log4j1.x --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>${slf4j.version}</version> - <scope>provided</scope> + <scope>provided</scope> </dependency> <!-- log4j2.x binding to slf4j. Use of the SLF4J adapter (log4j-to-slf4j-2.x.jar) together with the SLF4J bridge (log4j-slf4j-impl-2.x.jar) should never be attempted as it will cause events to endlessly be routed between SLF4J and Log4j 2 @@ -180,89 +180,89 @@ <artifactId>commons-logging</artifactId> <version>${commons-logging.version}</version> <scope>provided</scope> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>${log4j.version}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>ch.qos.logback</groupId> - <artifactId>logback-classic</artifactId> - <version>${logback.version}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>ch.qos.logback</groupId> - <artifactId>logback-core</artifactId> - <version>${logback.version}</version> - <scope>provided</scope> - </dependency> - - <dependency> - <groupId>org.apache.commons</groupId> - <artifactId>commons-jexl3</artifactId> - <version>3.2.1</version> - </dependency> - - <dependency> - <groupId>org.projectlombok</groupId> - <artifactId>lombok</artifactId> - <version>${lombok.version}</version> - <scope>provided</scope> - </dependency> - - <dependency> - <groupId>com.beust</groupId> - <artifactId>jcommander</artifactId> - <version>${jcommander.version}</version> - </dependency> - - <dependency> - <groupId>com.jayway.jsonpath</groupId> - <artifactId>json-path</artifactId> - <version>${jsonpath.version}</version> - </dependency> - <dependency> - <groupId>com.alibaba</groupId> - <artifactId>fastjson</artifactId> - <version>${fastjson2.version}</version> - </dependency> - <dependency> - <groupId>com.alibaba.nacos</groupId> - <artifactId>nacos-client</artifactId> - <version>${nacos.version}</version> - </dependency> - - <dependency> - <groupId>com.typesafe</groupId> - <artifactId>config</artifactId> - <version>${config.version}</version> - </dependency> - - <dependency> - <groupId>org.junit</groupId> - <artifactId>junit-bom</artifactId> - <version>${junit.version}</version> - <type>pom</type> - <scope>import</scope> - </dependency> - - <dependency> - <groupId>org.antlr</groupId> - <artifactId>antlr4</artifactId> - <version>${antlr4.version}</version> - </dependency> - - <dependency> - <groupId>com.hazelcast</groupId> - <artifactId>hazelcast</artifactId> - <version>${hazelcast.version}</version> - </dependency> - - - <!-- flink dependencies --> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>${log4j.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>ch.qos.logback</groupId> + <artifactId>logback-classic</artifactId> + <version>${logback.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>ch.qos.logback</groupId> + <artifactId>logback-core</artifactId> + <version>${logback.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-jexl3</artifactId> + <version>3.2.1</version> + </dependency> + + <dependency> + <groupId>org.projectlombok</groupId> + <artifactId>lombok</artifactId> + <version>${lombok.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>com.beust</groupId> + <artifactId>jcommander</artifactId> + <version>${jcommander.version}</version> + </dependency> + + <dependency> + <groupId>com.jayway.jsonpath</groupId> + <artifactId>json-path</artifactId> + <version>${jsonpath.version}</version> + </dependency> + <dependency> + <groupId>com.alibaba</groupId> + <artifactId>fastjson</artifactId> + <version>${fastjson2.version}</version> + </dependency> + <dependency> + <groupId>com.alibaba.nacos</groupId> + <artifactId>nacos-client</artifactId> + <version>${nacos.version}</version> + </dependency> + + <dependency> + <groupId>com.typesafe</groupId> + <artifactId>config</artifactId> + <version>${config.version}</version> + </dependency> + + <dependency> + <groupId>org.junit</groupId> + <artifactId>junit-bom</artifactId> + <version>${junit.version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr4</artifactId> + <version>${antlr4.version}</version> + </dependency> + + <dependency> + <groupId>com.hazelcast</groupId> + <artifactId>hazelcast</artifactId> + <version>${hazelcast.version}</version> + </dependency> + + + <!-- flink dependencies --> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-clients_${scala.version}</artifactId> @@ -441,7 +441,6 @@ <!-- ***************** slf4j & provider & bridges end ***************** --> - </dependencies> <build> @@ -510,10 +509,11 @@ <phase>package</phase> <configuration> <transformers> - <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> - <!-- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> - <mainClass>com.geedgenetworks.bootstrap.main.GrootStreamServer</mainClass> - </transformer>--> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> + <!-- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <mainClass>com.geedgenetworks.bootstrap.main.GrootStreamServer</mainClass> + </transformer>--> </transformers> </configuration> @@ -579,8 +579,8 @@ <version>1.7</version> <style>AOSP</style> </googleJavaFormat> - <removeUnusedImports /> - <formatAnnotations /> + <removeUnusedImports/> + <formatAnnotations/> <importOrder> <order>com.geedgenetworks,org.apache,org,,javax,java,\#</order> </importOrder> @@ -628,7 +628,7 @@ <exclude>**/.github/**/*.md</exclude> <exclude>**/*.json</exclude> </excludes> - <flexmark /> + <flexmark/> </markdown> <upToDateChecking> <enabled>true</enabled> @@ -644,7 +644,192 @@ </execution> </executions> </plugin> + + <plugin> + <groupId>org.commonjava.maven.plugins</groupId> + <artifactId>directory-maven-plugin</artifactId> + <executions> + <execution> + <id>directories</id> + <goals> + <goal>directory-of</goal> + </goals> + <phase>initialize</phase> + <configuration> + <property>rootDir</property> + <project> + <groupId>com.geedgenetworks</groupId> + <artifactId>groot-stream</artifactId> + </project> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <executions> + <execution> + <id>java-style-check</id> + <phase>compile</phase> + <goals> + <goal>check</goal> + </goals> + <configuration> + <sourceDirectories>src/main/java</sourceDirectories> + </configuration> + </execution> + <execution> + <id>java-test-style-check</id> + <phase>test-compile</phase> + <goals> + <goal>check</goal> + </goals> + <configuration> + <testSourceDirectories>src/test/java</testSourceDirectories> + <includeTestSourceDirectory>true</includeTestSourceDirectory> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>com.github.spotbugs</groupId> + <artifactId>spotbugs-maven-plugin</artifactId> + <executions> + <execution> + <id>findbugs-main</id> + <phase>compile</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + <execution> + <id>findbugs-test</id> + <phase>test-compile</phase> + <goals> + <goal>check</goal> + </goals> + <configuration> + <includeTests>true</includeTests> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.7</version> + <executions> + <execution> + <id>default-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <phase>initialize</phase> + </execution> + <execution> + <id>default-report</id> + <phase>verify</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> + + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>3.1.2</version> + <configuration> + <testFailureIgnore>true</testFailureIgnore> + </configuration> + </plugin> + <plugin> + <groupId>org.commonjava.maven.plugins</groupId> + <artifactId>directory-maven-plugin</artifactId> + <version>1.0</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>3.1.2</version> + <configuration> + <configLocation>${rootDir}/develop/checkstyle.xml</configLocation> + <suppressionsLocation>${rootDir}/develop/suppressions.xml</suppressionsLocation> + <includeTestSourceDirectory>true</includeTestSourceDirectory> + <logViolationsToConsole>true</logViolationsToConsole> + <failOnViolation>true</failOnViolation> + </configuration> + <dependencies> + <dependency> + <groupId>com.puppycrawl.tools</groupId> + <artifactId>checkstyle</artifactId> + <version>8.40</version> + </dependency> + </dependencies> + </plugin> + <plugin> + <groupId>com.github.spotbugs</groupId> + <artifactId>spotbugs-maven-plugin</artifactId> + <version>4.4.2.2</version> + <configuration> + <threshold>Low</threshold> + <effort>default</effort> + <failOnError>true</failOnError> + <xmlOutput>true</xmlOutput> + <excludeFilterFile>${rootDir}/develop/spotbugs-exclude.xml</excludeFilterFile> + <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>3.0.0-M3</version> + <executions> + <execution> + <id>release-version-check</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireReleaseVersion> + <message>SNAPSHOT versions ${project.version} are not allowed.</message> + </requireReleaseVersion> + </rules> + </configuration> + </execution> + <execution> + <id>snapshot-version-check</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireSnapshotVersion> + <message>Non-SNAPSHOT versions ${project.version} are not allowed.</message> + </requireSnapshotVersion> + </rules> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.sonarsource.scanner.maven</groupId> + <artifactId>sonar-maven-plugin</artifactId> + <version>3.9.0.2155</version> + </plugin> + <plugin> + <groupId>io.github.r0bb3n</groupId> + <artifactId>sonar-quality-gate-maven-plugin</artifactId> + <version>1.3.0</version> + </plugin> + </plugins> + </pluginManagement> </build> <repositories> @@ -657,7 +842,18 @@ <id>cloudera</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url> </repository> - </repositories> + <distributionManagement> + <repository> + <id>platform-releases</id> + <url>http://192.168.40.153:8099/content/repositories/platform-release</url> + <uniqueVersion>true</uniqueVersion> + </repository> + <snapshotRepository> + <id>platform-snapshots</id> + <url>http://192.168.40.153:8099/content/repositories/platform-snapshot</url> + </snapshotRepository> + </distributionManagement> + </project> |
