Add missing annotation dependencies for Java 11
[netvirt.git] / commons / binding-parent / pom.xml
index 88a9c2bc75012cf89ebade4d922b2cf476d23dde..69c469cc5fa377fdb7ad631a8475aa7eb9f060d8 100644 (file)
@@ -58,6 +58,12 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
       <artifactId>mockito-core</artifactId>
       <scope>test</scope>
     </dependency>
+    <!-- Ensure that annotation dependencies are optional throughout -->
+    <dependency>
+      <groupId>javax.annotation</groupId>
+      <artifactId>javax.annotation-api</artifactId>
+      <optional>true</optional>
+    </dependency>
   </dependencies>
 
   <build>