mirror of
https://gitee.com/dromara/hmily.git
synced 2024-12-05 21:02:59 +08:00
c1af6b0dd5
[使用zookeeper包里面的DataTree数据结构进行mock,好处是zookeeper server也是用的它,测试结果可以更加接近使用zookeeper server测试的结果] [metric-core包在zookeeper包的依赖中是provided的,在进行mock测试时,会报NoClassDef错误,所以在模块中添加了metric-core包] 2. 修复removeByFilter bug 3. 添加powermock包(目前使用场景:zookeeper的构造方法拦截)
322 lines
12 KiB
XML
322 lines
12 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>
|
|
<groupId>org.dromara</groupId>
|
|
<artifactId>hmily</artifactId>
|
|
<packaging>pom</packaging>
|
|
<version>2.1.0-SNAPSHOT</version>
|
|
<name>hmily</name>
|
|
<modules>
|
|
<module>hmily-common</module>
|
|
<module>hmily-core</module>
|
|
<module>hmily-annotation</module>
|
|
<module>hmily-spring-boot-starter</module>
|
|
<module>hmily-spi</module>
|
|
<module>hmily-serializer</module>
|
|
<module>hmily-repository</module>
|
|
<module>hmily-config</module>
|
|
<module>hmily-spring</module>
|
|
<module>hmily-rpc</module>
|
|
<module>hmily-tcc</module>
|
|
<module>hmily-tac</module>
|
|
<module>hmily-metrics</module>
|
|
<module>hmily-bom</module>
|
|
<module>hmily-all</module>
|
|
</modules>
|
|
|
|
<organization>
|
|
<name>dromara</name>
|
|
<url>https://dromara.org</url>
|
|
</organization>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache License, Version 2.0</name>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
</licenses>
|
|
<scm>
|
|
<url>https://github.com/dromara/hmily.git</url>
|
|
<connection>scm:git:https://github.com/dromara/hmily</connection>
|
|
<developerConnection>scm:git:git@github.com:dromara/hmily</developerConnection>
|
|
<tag>${project.version}</tag>
|
|
</scm>
|
|
|
|
<issueManagement>
|
|
<system>GitHub Issues</system>
|
|
<url>https://github.com/dromara/hmily/issues</url>
|
|
</issueManagement>
|
|
|
|
<developers>
|
|
<developer>
|
|
<id>xiaoyu</id>
|
|
<name>xiaoyu(Myth)</name>
|
|
<email>549477611@qq.com</email>
|
|
<organization>dromara.org</organization>
|
|
<roles>
|
|
<role>author</role>
|
|
</roles>
|
|
</developer>
|
|
</developers>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<jdk.version>1.8</jdk.version>
|
|
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
|
|
<lombok.version>1.16.20</lombok.version>
|
|
<slf4j.version>1.7.7</slf4j.version>
|
|
<junit.version>4.12</junit.version>
|
|
<hamcrest.version>1.3</hamcrest.version>
|
|
<mockito.version>2.7.21</mockito.version>
|
|
<logback.version>1.2.0</logback.version>
|
|
<powermock.version>2.0.7</powermock.version>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.dromara</groupId>
|
|
<artifactId>hmily-bom</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
<version>1.2.17</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>${lombok.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest-library</artifactId>
|
|
<version>${hamcrest.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>${mockito.version}</version>
|
|
<scope>test</scope>
|
|
<!--<exclusions>
|
|
<exclusion>
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest-core</artifactId>
|
|
</exclusion>
|
|
</exclusions>-->
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-inline</artifactId>
|
|
<version>${mockito.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.powermock</groupId>
|
|
<artifactId>powermock-api-mockito2</artifactId>
|
|
<version>${powermock.version}</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>objenesis</artifactId>
|
|
<groupId>org.objenesis</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.powermock</groupId>
|
|
<artifactId>powermock-module-junit4</artifactId>
|
|
<version>${powermock.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>ch.qos.logback</groupId>-->
|
|
<!-- <artifactId>logback-classic</artifactId>-->
|
|
<!-- </dependency>-->
|
|
</dependencies>
|
|
|
|
<distributionManagement>
|
|
<snapshotRepository>
|
|
<id>ossrh</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
</snapshotRepository>
|
|
<repository>
|
|
<id>ossrh</id>
|
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
</repository>
|
|
</distributionManagement>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- <plugin>
|
|
<groupId>org.sonatype.plugins</groupId>
|
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
<version>1.6.3</version>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<serverId>ossrh</serverId>
|
|
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
|
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<version>1.5</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.1</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>3.0.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>jar-no-fork</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.10.3</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
<version>2.5.3</version>
|
|
<configuration>
|
|
<tagNameFormat>v@{project.version}</tagNameFormat>
|
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>versions-maven-plugin</artifactId>
|
|
<version>2.5</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.0.0-M4</version>
|
|
<configuration>
|
|
<!-- 略过整个单元测试的执行,不推荐 -->
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
<version>${cobertura-maven-plugin.version}</version>
|
|
<configuration>
|
|
<check>
|
|
<branchRate>85</branchRate>
|
|
<lineRate>85</lineRate>
|
|
<haltOnFailure>true</haltOnFailure>
|
|
<totalBranchRate>85</totalBranchRate>
|
|
<totalLineRate>85</totalLineRate>
|
|
<packageLineRate>85</packageLineRate>
|
|
<packageBranchRate>85</packageBranchRate>
|
|
</check>
|
|
<aggregate>true</aggregate>
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
<quiet>true</quiet>
|
|
<format>xml</format>
|
|
<instrumentation>
|
|
<ignoreTrivial>true</ignoreTrivial>
|
|
<ignoreMethodAnnotations>
|
|
<ignoreMethodAnnotation>lombok.Generated</ignoreMethodAnnotation>
|
|
</ignoreMethodAnnotations>
|
|
<excludes>
|
|
<exclude>org/dromara/hmily/**/*Test.class</exclude>
|
|
</excludes>
|
|
</instrumentation>
|
|
</configuration>
|
|
</plugin>
|
|
<!-- <plugin>-->
|
|
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
<!-- <artifactId>maven-checkstyle-plugin</artifactId>-->
|
|
<!-- <version>3.1.0</version>-->
|
|
<!-- <configuration>-->
|
|
<!-- <configLocation>/script/hmily_checkstyle.xml</configLocation>-->
|
|
<!-- <includeTestSourceDirectory>false</includeTestSourceDirectory>-->
|
|
<!-- </configuration>-->
|
|
<!-- <executions>-->
|
|
<!-- <execution>-->
|
|
<!-- <id>validate</id>-->
|
|
<!-- <phase>validate</phase>-->
|
|
<!-- <goals>-->
|
|
<!-- <goal>check</goal>-->
|
|
<!-- </goals>-->
|
|
<!-- </execution>-->
|
|
<!-- </executions>-->
|
|
<!-- </plugin>-->
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
</project> |