| 
									
										
										
										
											2019-12-05 16:56:52 +02:00
										 |  |  | <?xml version="1.0" encoding="UTF-8"?> | 
					
						
							| 
									
										
										
										
											2021-05-06 22:27:07 +05:30
										 |  |  | <project xmlns="http://maven.apache.org/POM/4.0.0" | 
					
						
							| 
									
										
										
										
											2020-03-15 18:22:24 +05:30
										 |  |  |     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 20:43:47 -05:00
										 |  |  |     <modelVersion>4.0.0</modelVersion> | 
					
						
							|  |  |  |     <artifactId>core-java-jvm</artifactId> | 
					
						
							|  |  |  |     <version>0.1.0-SNAPSHOT</version> | 
					
						
							|  |  |  |     <name>core-java-jvm</name> | 
					
						
							| 
									
										
										
										
											2019-12-05 16:56:52 +02:00
										 |  |  |     <packaging>jar</packaging> | 
					
						
							| 
									
										
										
										
											2019-10-31 20:43:47 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <parent> | 
					
						
							| 
									
										
										
										
											2020-05-25 16:15:48 +02:00
										 |  |  |         <groupId>com.baeldung.core-java-modules</groupId> | 
					
						
							|  |  |  |         <artifactId>core-java-modules</artifactId> | 
					
						
							|  |  |  |         <version>0.0.1-SNAPSHOT</version> | 
					
						
							| 
									
										
										
										
											2019-10-31 20:43:47 -05: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> | 
					
						
							|  |  |  |         <dependency> | 
					
						
							|  |  |  |             <groupId>com.sun</groupId> | 
					
						
							|  |  |  |             <artifactId>tools</artifactId> | 
					
						
							|  |  |  |             <version>${sun.tools.version}</version> | 
					
						
							|  |  |  |             <scope>system</scope> | 
					
						
							|  |  |  |             <systemPath>${java.home}/../lib/tools.jar</systemPath> | 
					
						
							|  |  |  |         </dependency> | 
					
						
							| 
									
										
										
										
											2020-06-02 10:07:54 +03:00
										 |  |  |         <dependency> | 
					
						
							| 
									
										
										
										
											2020-06-03 12:40:32 +03:00
										 |  |  |             <groupId>org.ow2.asm</groupId> | 
					
						
							|  |  |  |             <artifactId>asm</artifactId> | 
					
						
							| 
									
										
										
										
											2020-06-11 07:34:34 +03:00
										 |  |  |             <version>${asm.version}</version> | 
					
						
							| 
									
										
										
										
											2020-06-03 12:44:22 +03:00
										 |  |  |         </dependency> | 
					
						
							|  |  |  |         <dependency> | 
					
						
							|  |  |  |             <groupId>org.ow2.asm</groupId> | 
					
						
							| 
									
										
										
										
											2020-06-03 12:46:28 +03:00
										 |  |  |             <artifactId>asm-util</artifactId> | 
					
						
							| 
									
										
										
										
											2020-06-11 07:34:34 +03:00
										 |  |  |             <version>${asm.version}</version> | 
					
						
							| 
									
										
										
										
											2020-06-03 12:46:28 +03:00
										 |  |  |         </dependency> | 
					
						
							| 
									
										
										
										
											2020-06-02 10:07:54 +03:00
										 |  |  |         <dependency> | 
					
						
							|  |  |  |             <groupId>org.apache.bcel</groupId> | 
					
						
							|  |  |  |             <artifactId>bcel</artifactId> | 
					
						
							| 
									
										
										
										
											2020-06-11 07:34:34 +03:00
										 |  |  |             <version>${bcel.version}</version> | 
					
						
							| 
									
										
										
										
											2020-07-07 14:18:10 +03:00
										 |  |  |         </dependency> | 
					
						
							|  |  |  |         <dependency> | 
					
						
							|  |  |  |             <groupId>org.openjdk.jol</groupId> | 
					
						
							|  |  |  |             <artifactId>jol-core</artifactId> | 
					
						
							|  |  |  |             <version>${jol-core.version}</version> | 
					
						
							|  |  |  |         </dependency> | 
					
						
							| 
									
										
										
										
											2022-02-15 13:39:08 +02:00
										 |  |  |         <dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly --> | 
					
						
							| 
									
										
										
										
											2022-02-15 13:31:37 +02:00
										 |  |  |             <groupId>org.slf4j</groupId> | 
					
						
							|  |  |  |             <artifactId>log4j-over-slf4j</artifactId> | 
					
						
							|  |  |  |             <version>${org.slf4j.version}</version> | 
					
						
							|  |  |  |         </dependency> | 
					
						
							| 
									
										
										
										
											2019-10-31 20:43:47 -05:00
										 |  |  |     </dependencies> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-15 13:31:37 +02: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 13:39:08 +02:00
										 |  |  |                                             <mainClass>com.baeldung.instrumentation.application.Launcher</mainClass> | 
					
						
							| 
									
										
										
										
											2022-02-15 13:31:37 +02: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 13:39:08 +02:00
										 |  |  |                                             <mainClass>com.baeldung.instrumentation.application.Launcher</mainClass> | 
					
						
							| 
									
										
										
										
											2022-02-15 13:31:37 +02: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 16:56:52 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-13 14:48:44 +05:30
										 |  |  |     <properties> | 
					
						
							|  |  |  |         <javaassist.version>3.27.0-GA</javaassist.version> | 
					
						
							|  |  |  |         <sun.tools.version>1.8.0</sun.tools.version> | 
					
						
							|  |  |  |         <jol-core.version>0.10</jol-core.version> | 
					
						
							|  |  |  |         <asm.version>8.0.1</asm.version> | 
					
						
							|  |  |  |         <bcel.version>6.5.0</bcel.version> | 
					
						
							|  |  |  |     </properties> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-06 22:27:07 +05:30
										 |  |  | </project> |