2021-12-30 10:09:11 -05:00
|
|
|
<?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>spring-aop-2</artifactId>
|
|
|
|
<name>spring-aop-2</name>
|
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
2024-01-08 17:22:19 -05:00
|
|
|
<artifactId>parent-boot-3</artifactId>
|
2021-12-30 10:09:11 -05:00
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
2024-01-08 17:22:19 -05:00
|
|
|
<relativePath>../parent-boot-3</relativePath>
|
2021-12-30 10:09:11 -05:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
|
<artifactId>aspectjrt</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
|
<artifactId>aspectjweaver</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
|
|
</dependency>
|
2024-01-08 17:22:19 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-rng-simple</artifactId>
|
|
|
|
<version>${commons-rng-core.version}</version>
|
|
|
|
</dependency>
|
2021-12-30 10:09:11 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
2023-02-23 11:47:39 -05:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2023-09-02 10:23:29 -04:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>no-weaving</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>com.baeldung.selfinvocation.CompileTimeWeavingIntegrationTest</exclude>
|
|
|
|
<exclude>com.baeldung.selfinvocation.LoadTimeWeavingIntegrationTest</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2023-11-09 06:18:02 -05:00
|
|
|
<profile>
|
|
|
|
<id>compile-time-weaving</id>
|
2023-09-02 10:23:29 -04:00
|
|
|
|
2023-11-09 06:18:02 -05:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-aspects</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>com.baeldung.selfinvocation.CompileTimeWeavingIntegrationTest</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>aspectj-maven-plugin</artifactId>
|
|
|
|
<version>${aspectj-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<source>${java.version}</source>
|
|
|
|
<target>${java.version}</target>
|
|
|
|
<complianceLevel>${java.version}</complianceLevel>
|
|
|
|
<Xlint>ignore</Xlint>
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
<aspectLibraries>
|
|
|
|
<aspectLibrary>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-aspects</artifactId>
|
|
|
|
</aspectLibrary>
|
|
|
|
</aspectLibraries>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2023-09-02 10:23:29 -04:00
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>load-time-weaving</id>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-aspects</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-tx</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<argLine>
|
|
|
|
-javaagent:"${settings.localRepository}"/org/aspectj/aspectjweaver/${aspectjweaver.version}/aspectjweaver-${aspectjweaver.version}.jar
|
|
|
|
-javaagent:"${settings.localRepository}"/org/springframework/spring-instrument/${spring.version}/spring-instrument-${spring.version}.jar
|
|
|
|
</argLine>
|
|
|
|
<useSystemClassLoader>true</useSystemClassLoader>
|
|
|
|
<forkMode>always</forkMode>
|
|
|
|
<includes>
|
|
|
|
<include>com.baeldung.selfinvocation.LoadTimeWeavingIntegrationTest</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<aspectj-plugin.version>1.14.0</aspectj-plugin.version>
|
|
|
|
<spring.version>5.3.27</spring.version>
|
2024-01-08 17:22:19 -05:00
|
|
|
<start-class>com.baeldung.Application</start-class>
|
|
|
|
<commons-rng-core.version>1.5</commons-rng-core.version>
|
2023-09-02 10:23:29 -04:00
|
|
|
</properties>
|
|
|
|
|
2021-12-30 10:09:11 -05:00
|
|
|
</project>
|