Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +---------------------+
- | |
- | Client Jar |
- | |
- +--+---------------+--+
- | |
- | |
- +----------+----+ +-------v-------+
- | Aspect A | | Aspect C |
- | | +---------------+
- +-------------+-+ +-------v-------+
- | | Jar C |
- | | |
- | +---------------+
- |
- +----v-----------+
- | |
- | Aspect B |
- +----------------+
- +----v-----------+
- | Source Code |
- | |
- +----------------+
- <project>
- <snipped>
- <artifactId>aspect-b</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjrt</artifactId>
- <version>${aspectj.version}</version>
- </dependency>
- <dependency>
- <groupId>com.example</groupId>
- <artifactId>lib-data-objects</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>aspectj-maven-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- <goal>test-compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <outxml>true</outxml>
- <complianceLevel>${java.version}</complianceLevel>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <weaveDependencies>
- <weaveDependency>
- <groupId>com.example</groupId>
- <artifactId>lib-data-objects</artifactId>
- </weaveDependency>
- </weaveDependencies>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.5.1</version>
- <configuration>
- <source>${maven.compiler.source}</source>
- <target>${maven.compiler.target}</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <snipped>
- </project>
- Aspect A pom:
- <project>
- <snipped>
- <artifactId>aspect-a</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjrt</artifactId>
- <version>${aspectj.version}</version>
- </dependency>
- <dependency>
- <groupId>com.example</groupId>
- <artifactId>lib-data-objects</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.example</groupId>
- <artifactId>aspect-b</artifactId>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>aspectj-maven-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- <goal>test-compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <outxml>true</outxml>
- <complianceLevel>${java.version}</complianceLevel>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <weaveDependencies>
- <weaveDependency>
- <groupId>com.example</groupId>
- <artifactId>aspect-b</artifactId>
- </weaveDependency>
- </weaveDependencies>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </snipped>
- </project>
- Client Jar pom:
- <project>
- <snipped>
- <dependencies>
- <dependency>
- <groupId>com.example</groupId>
- <artifactId>aspect-a-wrapper</artifactId>
- <version>${aspect-a.version}</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>aspectj-maven-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- <goal>test-compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <outxml>true</outxml>
- <complianceLevel>${java.version}</complianceLevel>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <weaveDependencies>
- <weaveDependency>
- <groupId>com.example</groupId>
- <artifactId>aspect-a</artifactId>
- </weaveDependency>
- </weaveDependencies>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </snipped>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement