Skip to content

Commit 948dbf9

Browse files
committed
修复bug,优化代码, 拆分插件
1 parent e5632e1 commit 948dbf9

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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/maven-v4_0_0.xsd">
3+
<parent>
4+
<artifactId>spring-cloud-gray-samples</artifactId>
5+
<groupId>cn.springcloud.gray</groupId>
6+
<version>A.1.1.0-SNAPSHOT</version>
7+
</parent>
8+
<modelVersion>4.0.0</modelVersion>
9+
<artifactId>spring-cloud-gray-performance-agent</artifactId>
10+
<build>
11+
<plugins>
12+
<plugin>
13+
<artifactId>maven-deploy-plugin</artifactId>
14+
<configuration>
15+
<skip>true</skip>
16+
</configuration>
17+
</plugin>
18+
<plugin>
19+
<artifactId>maven-jar-plugin</artifactId>
20+
<configuration>
21+
<archive>
22+
<manifestEntries>
23+
<Premain-Class>cn.springcloud.gray.performance.agent.GrayPerformanceAgent</Premain-Class>
24+
<Can-Redefine-Classes>true</Can-Redefine-Classes>
25+
<Class-Path>javassist-3.22.0-CR1.jar commons-lang3-3.5.jar slf4j-api-1.7.26.jar</Class-Path>
26+
</manifestEntries>
27+
</archive>
28+
</configuration>
29+
</plugin>
30+
<plugin>
31+
<artifactId>maven-shade-plugin</artifactId>
32+
<executions>
33+
<execution>
34+
<phase>package</phase>
35+
<goals>
36+
<goal>shade</goal>
37+
</goals>
38+
</execution>
39+
</executions>
40+
<configuration>
41+
<artifactSet>
42+
<includes>
43+
<include>javassist:javassist:jar:</include>
44+
<include>javassist:javassist:jar:</include>
45+
<include>net.bytebuddy:byte-buddy:jar:</include>
46+
<include>org.slf4j:slf4j-api:jar:</include>
47+
<include>org.apache.commons:commons-lang3:jar:</include>
48+
</includes>
49+
</artifactSet>
50+
</configuration>
51+
</plugin>
52+
</plugins>
53+
</build>
54+
<dependencies>
55+
<dependency>
56+
<groupId>org.javassist</groupId>
57+
<artifactId>javassist</artifactId>
58+
<version>3.22.0-CR1</version>
59+
<scope>compile</scope>
60+
</dependency>
61+
<dependency>
62+
<groupId>org.apache.commons</groupId>
63+
<artifactId>commons-lang3</artifactId>
64+
<version>3.5</version>
65+
<scope>provided</scope>
66+
</dependency>
67+
<dependency>
68+
<groupId>net.bytebuddy</groupId>
69+
<artifactId>byte-buddy</artifactId>
70+
<version>1.9.14</version>
71+
<scope>provided</scope>
72+
</dependency>
73+
<dependency>
74+
<groupId>net.bytebuddy</groupId>
75+
<artifactId>byte-buddy-agent</artifactId>
76+
<version>1.9.14</version>
77+
<scope>compile</scope>
78+
</dependency>
79+
<dependency>
80+
<groupId>org.slf4j</groupId>
81+
<artifactId>slf4j-api</artifactId>
82+
<version>1.7.26</version>
83+
<scope>provided</scope>
84+
</dependency>
85+
</dependencies>
86+
<properties>
87+
<bytebuddy.version>1.9.14</bytebuddy.version>
88+
</properties>
89+
</project>
90+

0 commit comments

Comments
 (0)