testable-mock/demo/java-demo/pom.xml

85 lines
3.2 KiB
XML
Raw Normal View History

2020-10-20 21:08:47 +08:00
<?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"
2020-11-22 00:10:12 +08:00
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.alibaba.testable</groupId>
<artifactId>java-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>java-demo</name>
<description>Demo project for TestableMock</description>
2020-10-20 21:08:47 +08:00
2020-11-22 00:10:12 +08:00
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
2020-12-08 15:51:51 +08:00
<junit.version>5.6.2</junit.version>
2021-02-02 07:49:20 +08:00
<testable.version>0.4.11</testable.version>
2020-11-22 00:10:12 +08:00
</properties>
2020-10-20 21:08:47 +08:00
2020-11-22 00:10:12 +08:00
<dependencies>
<dependency>
<groupId>com.alibaba.testable</groupId>
2020-12-08 15:51:51 +08:00
<artifactId>testable-all</artifactId>
<version>${testable.version}</version>
2020-12-23 20:23:09 +08:00
<scope>test</scope>
</dependency>
2020-11-22 00:10:12 +08:00
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
2020-12-08 15:51:51 +08:00
<version>${junit.version}</version>
2020-11-22 00:10:12 +08:00
<scope>test</scope>
</dependency>
</dependencies>
2020-10-20 21:08:47 +08:00
2020-11-22 00:10:12 +08:00
<build>
<plugins>
2020-12-17 16:07:13 +08:00
2020-11-24 23:18:12 +08:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
2020-12-17 16:07:13 +08:00
<version>3.0.0-M5</version>
2020-11-24 23:18:12 +08:00
<configuration>
<argLine>@{argLine} -javaagent:${settings.localRepository}/com/alibaba/testable/testable-agent/${testable.version}/testable-agent-${testable.version}.jar</argLine>
</configuration>
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.alibaba.testable</groupId>-->
<!-- <artifactId>testable-maven-plugin</artifactId>-->
<!-- <version>${testable.version}</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>prepare</id>-->
<!-- <goals>-->
<!-- <goal>prepare</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
2020-11-22 00:10:12 +08:00
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>target/jacoco.exec</dataFile>
<outputDirectory>target/jacoco-ut</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
2020-10-20 21:08:47 +08:00
</project>