2019-12-05 09:56:52 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-05-06 12:57:07 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2023-04-04 21:44:09 -04:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2019-10-31 21:43:47 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>core-java-jvm</artifactId>
|
|
|
|
<name>core-java-jvm</name>
|
2019-12-05 09:56:52 -05:00
|
|
|
<packaging>jar</packaging>
|
2019-10-31 21:43:47 -04:00
|
|
|
|
|
|
|
<parent>
|
2020-05-25 10:15:48 -04:00
|
|
|
<groupId>com.baeldung.core-java-modules</groupId>
|
|
|
|
<artifactId>core-java-modules</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
2019-10-31 21:43:47 -04:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.javassist</groupId>
|
|
|
|
<artifactId>javassist</artifactId>
|
|
|
|
<version>${javaassist.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.owasp.esapi</groupId>
|
|
|
|
<artifactId>esapi</artifactId>
|
|
|
|
<version>${esapi.version}</version>
|
|
|
|
</dependency>
|
2020-06-02 03:07:54 -04:00
|
|
|
<dependency>
|
2020-06-03 05:40:32 -04:00
|
|
|
<groupId>org.ow2.asm</groupId>
|
|
|
|
<artifactId>asm</artifactId>
|
2020-06-11 00:34:34 -04:00
|
|
|
<version>${asm.version}</version>
|
2020-06-03 05:44:22 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.ow2.asm</groupId>
|
2020-06-03 05:46:28 -04:00
|
|
|
<artifactId>asm-util</artifactId>
|
2020-06-11 00:34:34 -04:00
|
|
|
<version>${asm.version}</version>
|
2020-06-03 05:46:28 -04:00
|
|
|
</dependency>
|
2020-06-02 03:07:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.bcel</groupId>
|
|
|
|
<artifactId>bcel</artifactId>
|
2020-06-11 00:34:34 -04:00
|
|
|
<version>${bcel.version}</version>
|
2020-07-07 07:18:10 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.openjdk.jol</groupId>
|
|
|
|
<artifactId>jol-core</artifactId>
|
|
|
|
<version>${jol-core.version}</version>
|
|
|
|
</dependency>
|
2022-02-15 06:39:08 -05:00
|
|
|
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
|
2022-02-15 06:31:37 -05:00
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
|
|
<version>${org.slf4j.version}</version>
|
|
|
|
</dependency>
|
2019-10-31 21:43:47 -04:00
|
|
|
</dependencies>
|
|
|
|
|
2022-02-15 06:31:37 -05:00
|
|
|
<profiles>
|
|
|
|
<!-- java instrumentation profiles to build jars -->
|
|
|
|
<profile>
|
|
|
|
<id>buildAgentLoader</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classifier>agentLoader</classifier>
|
|
|
|
<classesDirectory>target/classes</classesDirectory>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addClasspath>true</addClasspath>
|
2022-02-15 06:39:08 -05:00
|
|
|
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
2022-02-15 06:31:37 -05:00
|
|
|
</manifest>
|
|
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
|
</archive>
|
|
|
|
|
|
|
|
<includes>
|
|
|
|
<include>com/baeldung/instrumentation/application/AgentLoader.class</include>
|
|
|
|
<include>com/baeldung/instrumentation/application/Launcher.class</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>buildApplication</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classifier>application</classifier>
|
|
|
|
<classesDirectory>target/classes</classesDirectory>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
|
|
|
</manifest>
|
|
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
|
</archive>
|
|
|
|
|
|
|
|
<includes>
|
|
|
|
<include>com/baeldung/instrumentation/application/MyAtm.class</include>
|
|
|
|
<include>com/baeldung/instrumentation/application/MyAtmApplication.class</include>
|
|
|
|
<include>com/baeldung/instrumentation/application/Launcher.class</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>buildAgent</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classifier>agent</classifier>
|
|
|
|
<classesDirectory>target/classes</classesDirectory>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addClasspath>true</addClasspath>
|
2022-02-15 06:39:08 -05:00
|
|
|
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
2022-02-15 06:31:37 -05:00
|
|
|
</manifest>
|
|
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
|
</archive>
|
|
|
|
|
|
|
|
<includes>
|
|
|
|
<include>com/baeldung/instrumentation/agent/AtmTransformer.class</include>
|
|
|
|
<include>com/baeldung/instrumentation/agent/MyInstrumentationAgent.class</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2019-12-05 09:56:52 -05:00
|
|
|
|
2022-03-13 05:18:44 -04:00
|
|
|
<properties>
|
|
|
|
<javaassist.version>3.27.0-GA</javaassist.version>
|
|
|
|
<jol-core.version>0.10</jol-core.version>
|
2023-03-30 16:09:12 -04:00
|
|
|
<asm.version>9.4</asm.version>
|
2022-03-13 05:18:44 -04:00
|
|
|
<bcel.version>6.5.0</bcel.version>
|
|
|
|
</properties>
|
|
|
|
|
2021-05-06 12:57:07 -04:00
|
|
|
</project>
|