FELIX-3527 Check against Java 1.4 API; fix some Java 5 API uses;
  add exception for ReentrantLock use in AbstractComponentManager$Jlock

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1344723 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/pom.xml b/scr/pom.xml
index 899990d..4d60a9d 100644
--- a/scr/pom.xml
+++ b/scr/pom.xml
@@ -311,6 +311,36 @@
             </plugin>
 
             <!--
+                Ensure not using too recent Java API
+                - for now touch base on Java 1.4
+                - Ignore some known Java 5 classes (used in JLock)
+            -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>animal-sniffer-maven-plugin</artifactId>
+                <version>1.7</version>
+                <configuration>
+                    <signature>
+                        <groupId>org.codehaus.mojo.signature</groupId>
+                        <artifactId>java14</artifactId>
+                        <version>1.0</version>
+                    </signature>
+                    <ignores>
+                        <ignore>java.util.concurrent.locks.ReentrantLock</ignore>
+                        <ignore>java.util.concurrent.TimeUnit</ignore>
+                    </ignores>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <!--
                 Configure default compilation for Java 1.3 and integration
                 test compilation for Java 5 (since integration tests use
                 Java Annotations for Pax Exam).