Skip to content

Commit f546926

Browse files
committed
use newrelic
1 parent 161d27e commit f546926

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181
<version>1.16.10</version>
8282
<scope>provided</scope>
8383
</dependency>
84+
<dependency>
85+
<groupId>com.newrelic.agent.java</groupId>
86+
<artifactId>newrelic-agent</artifactId>
87+
<version>3.32.0</version>
88+
<scope>provided</scope>
89+
</dependency>
8490
<dependency>
8591
<groupId>org.mariadb.jdbc</groupId>
8692
<artifactId>mariadb-java-client</artifactId>
@@ -189,6 +195,37 @@
189195
</execution>
190196
</executions>
191197
</plugin>
198+
<plugin>
199+
<groupId>org.apache.maven.plugins</groupId>
200+
<artifactId>maven-dependency-plugin</artifactId>
201+
<version>2.9</version>
202+
<executions>
203+
<execution>
204+
<phase>prepare-package</phase>
205+
<goals>
206+
<goal>unpack-dependencies</goal>
207+
</goals>
208+
<configuration>
209+
<includeArtifactIds>newrelic-agent</includeArtifactIds>
210+
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
211+
</configuration>
212+
</execution>
213+
</executions>
214+
</plugin>
215+
<plugin>
216+
<groupId>org.apache.maven.plugins</groupId>
217+
<artifactId>maven-jar-plugin</artifactId>
218+
<version>2.5</version>
219+
<configuration>
220+
<archive>
221+
<manifestEntries>
222+
<Premain-Class>com.newrelic.bootstrap.BootstrapAgent</Premain-Class>
223+
<Can-Redefine-Classes>true</Can-Redefine-Classes>
224+
<Can-Retransform-Classes>true</Can-Retransform-Classes>
225+
</manifestEntries>
226+
</archive>
227+
</configuration>
228+
</plugin>
192229
</plugins>
193230
</build>
194231

0 commit comments

Comments
 (0)