Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. +---------------------+
  2. | |
  3. | Client Jar |
  4. | |
  5. +--+---------------+--+
  6. | |
  7. | |
  8. +----------+----+ +-------v-------+
  9. | Aspect A | | Aspect C |
  10. | | +---------------+
  11. +-------------+-+ +-------v-------+
  12. | | Jar C |
  13. | | |
  14. | +---------------+
  15. |
  16. +----v-----------+
  17. | |
  18. | Aspect B |
  19. +----------------+
  20. +----v-----------+
  21. | Source Code |
  22. | |
  23. +----------------+
  24.  
  25. <project>
  26. <snipped>
  27.  
  28. <artifactId>aspect-b</artifactId>
  29.  
  30. <dependencies>
  31. <dependency>
  32. <groupId>org.aspectj</groupId>
  33. <artifactId>aspectjrt</artifactId>
  34. <version>${aspectj.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.example</groupId>
  38. <artifactId>lib-data-objects</artifactId>
  39. <version>0.0.1-SNAPSHOT</version>
  40. </dependency>
  41. </dependencies>
  42.  
  43. <build>
  44. <plugins>
  45.  
  46.  
  47. <plugin>
  48. <groupId>org.codehaus.mojo</groupId>
  49. <artifactId>aspectj-maven-plugin</artifactId>
  50. <version>1.7</version>
  51. <executions>
  52. <execution>
  53. <goals>
  54. <goal>compile</goal>
  55. <goal>test-compile</goal>
  56. </goals>
  57. </execution>
  58. </executions>
  59. <configuration>
  60. <outxml>true</outxml>
  61. <complianceLevel>${java.version}</complianceLevel>
  62. <source>${java.version}</source>
  63. <target>${java.version}</target>
  64.  
  65. <weaveDependencies>
  66. <weaveDependency>
  67. <groupId>com.example</groupId>
  68. <artifactId>lib-data-objects</artifactId>
  69. </weaveDependency>
  70. </weaveDependencies>
  71. </configuration>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-compiler-plugin</artifactId>
  76. <version>2.5.1</version>
  77. <configuration>
  78. <source>${maven.compiler.source}</source>
  79. <target>${maven.compiler.target}</target>
  80. </configuration>
  81. </plugin>
  82. </plugins>
  83. </build>
  84.  
  85. <snipped>
  86. </project>
  87.  
  88.  
  89. Aspect A pom:
  90.  
  91. <project>
  92.  
  93. <snipped>
  94.  
  95. <artifactId>aspect-a</artifactId>
  96.  
  97. <dependencies>
  98. <dependency>
  99. <groupId>org.aspectj</groupId>
  100. <artifactId>aspectjrt</artifactId>
  101. <version>${aspectj.version}</version>
  102. </dependency>
  103.  
  104. <dependency>
  105. <groupId>com.example</groupId>
  106. <artifactId>lib-data-objects</artifactId>
  107. <version>0.0.1-SNAPSHOT</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.example</groupId>
  111. <artifactId>aspect-b</artifactId>
  112. </dependency>
  113. </dependencies>
  114.  
  115. <build>
  116. <plugins>
  117. <plugin>
  118. <groupId>org.codehaus.mojo</groupId>
  119. <artifactId>aspectj-maven-plugin</artifactId>
  120. <version>1.7</version>
  121. <executions>
  122. <execution>
  123. <goals>
  124. <goal>compile</goal>
  125. <goal>test-compile</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. <configuration>
  130. <outxml>true</outxml>
  131. <complianceLevel>${java.version}</complianceLevel>
  132. <source>${java.version}</source>
  133. <target>${java.version}</target>
  134.  
  135. <weaveDependencies>
  136. <weaveDependency>
  137. <groupId>com.example</groupId>
  138. <artifactId>aspect-b</artifactId>
  139. </weaveDependency>
  140. </weaveDependencies>
  141. </configuration>
  142. </plugin>
  143. </plugins>
  144. </build>
  145.  
  146. </snipped>
  147.  
  148. </project>
  149.  
  150. Client Jar pom:
  151.  
  152. <project>
  153.  
  154. <snipped>
  155.  
  156. <dependencies>
  157. <dependency>
  158. <groupId>com.example</groupId>
  159. <artifactId>aspect-a-wrapper</artifactId>
  160. <version>${aspect-a.version}</version>
  161. </dependency>
  162. </dependencies>
  163.  
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.codehaus.mojo</groupId>
  168. <artifactId>aspectj-maven-plugin</artifactId>
  169. <version>1.7</version>
  170. <executions>
  171. <execution>
  172. <goals>
  173. <goal>compile</goal>
  174. <goal>test-compile</goal>
  175. </goals>
  176. </execution>
  177. </executions>
  178. <configuration>
  179. <outxml>true</outxml>
  180. <complianceLevel>${java.version}</complianceLevel>
  181. <source>${java.version}</source>
  182. <target>${java.version}</target>
  183.  
  184. <weaveDependencies>
  185. <weaveDependency>
  186. <groupId>com.example</groupId>
  187. <artifactId>aspect-a</artifactId>
  188. </weaveDependency>
  189. </weaveDependencies>
  190. </configuration>
  191. </plugin>
  192. </plugins>
  193. </build>
  194.  
  195. </snipped>
  196.  
  197. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement