let agent be resource of core jar

This commit is contained in:
金戟 2020-07-20 20:29:50 +08:00
parent 738f2fc431
commit d1d34cae1c
3 changed files with 29 additions and 6 deletions

View File

@ -17,6 +17,7 @@
</dependencies>
<build>
<finalName>${artifactId}</finalName>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>

View File

@ -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>

View File

@ -9,8 +9,8 @@
<packaging>pom</packaging>
<modules>
<module>core</module>
<module>agent</module>
<module>core</module>
</modules>
</project>