mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-19 16:50:46 +08:00
let agent be resource of core jar
This commit is contained in:
parent
738f2fc431
commit
d1d34cae1c
@ -17,6 +17,7 @@
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
|
32
core/pom.xml
32
core/pom.xml
@ -12,8 +12,7 @@
|
||||
|
||||
<properties>
|
||||
<plugin.compiler.version>3.8.1</plugin.compiler.version>
|
||||
<plugin.surefire.version>3.0.0-M4</plugin.surefire.version>
|
||||
|
||||
<plugin.resources.version>3.1.0</plugin.resources.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.compiler.level>1.7</project.compiler.level>
|
||||
</properties>
|
||||
@ -41,11 +40,34 @@
|
||||
<compilerArgument>-proc:none</compilerArgument>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${plugin.surefire.version}</version>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>${plugin.resources.version}</version>
|
||||
<configuration>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-testable-agent-resources</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<encoding>utf-8</encoding>
|
||||
<outputDirectory>${basedir}/target/classes</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${basedir}/../agent/target</directory>
|
||||
<includes>
|
||||
<include>testable-agent.jar</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
Loading…
Reference in New Issue
Block a user