* JAVA-18131 Upgrade core-java-modules to JDK 11 * JAVA-18131 Fixed pom conflicts * JAVA-18131 Upgraded ASM and updated expected test results * JAVA-18131 Fixed FormatNumberUnitTest and removed core-java-security from upgrading to 17 * JAVA-18131 Removed core-java-sun from upgrading * JAVA-18131 Removed core-java-jvm-2, fixed number test * JAVA-18131 Removed core-java-sun from upgrading to 11 * JAVA-18131 Removed all edited submodules from pre-jdk9 * JAVA-18131 removed pre-jpms from pre-jdk9 * JAVA-18131 Removed core-java-numbers-3 from pre-jdk9 profiles * JAVA-18131 Cleanup * JAVA-18131 Cleanup 2 - Removed upgraded submodules from core-java-modules * JAVA-18131 Cleanup completed * JAVA-18131 Replaced core-java-modules submodules in main pom with core-java-modules * JAVA-18131 Replaced core-java-modules submodules in main pom, continued * JAVA-18131 Core-java-nio-2, core-java-serialization back to pre-jdk9 * JAVA-18131 Try removing math-3 from core-java-modules and explicitly refer in parent pom * JAVA-18131 Removed -lang, -nio, -streams-2, -math-3, -conversions-2 from jdk9 profiles * JAVA-18131 Corrected conversions-2 module * JAVA-18131 Review fixes * JAVA-18131 Fixed -nio, re-upgraded -lang * JAVA-18131 Adapted -nio for JDK 11, returned -lang to JDK 8 * JAVA-18131 Final corrections
177 lines
7.9 KiB
XML
177 lines
7.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>core-java-jvm</artifactId>
|
|
<version>0.1.0-SNAPSHOT</version>
|
|
<name>core-java-jvm</name>
|
|
<packaging>jar</packaging>
|
|
|
|
<parent>
|
|
<groupId>com.baeldung.core-java-modules</groupId>
|
|
<artifactId>core-java-modules</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
</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>
|
|
<dependency>
|
|
<groupId>org.ow2.asm</groupId>
|
|
<artifactId>asm</artifactId>
|
|
<version>${asm.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ow2.asm</groupId>
|
|
<artifactId>asm-util</artifactId>
|
|
<version>${asm.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.bcel</groupId>
|
|
<artifactId>bcel</artifactId>
|
|
<version>${bcel.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjdk.jol</groupId>
|
|
<artifactId>jol-core</artifactId>
|
|
<version>${jol-core.version}</version>
|
|
</dependency>
|
|
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
<version>${org.slf4j.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<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>
|
|
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
|
</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>
|
|
<mainClass>com.baeldung.instrumentation.application.Launcher</mainClass>
|
|
</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>
|
|
|
|
<properties>
|
|
<javaassist.version>3.27.0-GA</javaassist.version>
|
|
<jol-core.version>0.10</jol-core.version>
|
|
<asm.version>9.4</asm.version>
|
|
<bcel.version>6.5.0</bcel.version>
|
|
</properties>
|
|
|
|
</project> |