testable-mock/testable-agent/pom.xml

179 lines
7.5 KiB
XML
Raw Normal View History

2020-05-30 00:28:07 +08:00
<?xml version="1.0" encoding="UTF-8"?>
2020-11-14 06:54:56 +08:00
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2020-05-30 00:28:07 +08:00
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2020-11-14 06:54:56 +08:00
<modelVersion>4.0.0</modelVersion>
2020-12-08 16:22:14 +08:00
<parent>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-parent</artifactId>
2022-12-14 19:22:37 +08:00
<version>0.7.9</version>
2020-12-08 16:22:14 +08:00
<relativePath>../testable-parent</relativePath>
</parent>
2020-11-14 06:54:56 +08:00
<artifactId>testable-agent</artifactId>
<packaging>jar</packaging>
<name>testable-agent</name>
2020-05-30 00:28:07 +08:00
2020-11-14 06:54:56 +08:00
<properties>
2022-05-19 19:00:59 +08:00
<asm.lib.version>9.3</asm.lib.version>
2022-12-09 22:09:12 +08:00
<junit.version>5.9.1</junit.version>
2020-11-14 06:54:56 +08:00
</properties>
2020-05-30 00:28:07 +08:00
2020-11-14 06:54:56 +08:00
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
<version>${asm.lib.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.alibaba.testable</groupId>
<artifactId>testable-core</artifactId>
<version>${testable.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
2020-07-21 22:02:05 +08:00
2020-11-14 06:54:56 +08:00
<build>
<finalName>testable-agent</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${plugin.compiler.version}</version>
<configuration>
<source>${project.compiler.level}</source>
<target>${project.compiler.level}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${plugin.jar.version}</version>
<configuration>
<archive>
<manifestEntries>
<Premain-Class>com.alibaba.testable.agent.PreMain</Premain-Class>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
</manifestEntries>
</archive>
</configuration>
</plugin>
2020-05-30 00:28:07 +08:00
2020-11-14 06:54:56 +08:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${plugin.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>org.objectweb.asm</pattern>
<shadedPattern>agent.org.objectweb.asm</shadedPattern>
</relocation>
</relocations>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${plugin.surefire.version}</version>
</plugin>
</plugins>
</build>
2020-05-30 00:28:07 +08:00
2020-11-14 07:06:36 +08:00
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${plugin.source.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${plugin.javadoc.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
2022-11-13 20:13:40 +08:00
<configuration>
<additionalOptions>-Xdoclint:none</additionalOptions>
</configuration>
2020-11-14 07:06:36 +08:00
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${plugin.gpg.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
2022-11-13 20:13:40 +08:00
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
2020-11-14 07:06:36 +08:00
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${plugin.staging.version}</version>
<extensions>true</extensions>
<configuration>
2020-11-17 15:33:39 +08:00
<serverId>oss</serverId>
2020-11-14 07:06:36 +08:00
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>oss</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>
2020-05-30 00:28:07 +08:00
</project>