Browse Source

DATAMONGO-1045 - Tweak AspectJ setup in cross-store module to be able to build against Spring 4.1.

Added an aop.xml to only compile explicitly listed aspects in the cross-store module. This is needed as Spring 4.1 includes a new aspect for JavaEE 7 JCache support that has optional dependencies which we don't have in the classpath. Trying to compile all aspects contained in spring-aspects will result in ClassNotFoundExceptions for the aspects with missing dependencies.
pull/223/head
Oliver Gierke 11 years ago
parent
commit
a31e72ff06
  1. 7
      spring-data-mongodb-cross-store/aop.xml
  2. 1
      spring-data-mongodb-cross-store/pom.xml

7
spring-data-mongodb-cross-store/aop.xml

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<aspectj>
<aspects>
<aspect name="org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect" />
<aspect name="org.springframework.data.mongodb.crossstore.MongoDocumentBacking" />
</aspects>
</aspectj>

1
spring-data-mongodb-cross-store/pom.xml

@ -130,6 +130,7 @@ @@ -130,6 +130,7 @@
<complianceLevel>${source.level}</complianceLevel>
<source>${source.level}</source>
<target>${source.level}</target>
<xmlConfigured>aop.xml</xmlConfigured>
</configuration>
</plugin>
</plugins>

Loading…
Cancel
Save