fixes for J11 99/111499/6
authorMichael Dürre <michael.duerre@highstreet-technologies.com>
Fri, 21 Aug 2020 04:56:48 +0000 (06:56 +0200)
committerKAPIL SINGAL <ks220y@att.com>
Mon, 24 Aug 2020 17:15:13 +0000 (17:15 +0000)
fix pom files for J11 compile issues

Issue-ID: CCSDK-2680
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: Iaa7a426cdf947288af64d41a94d954a933217332
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
ms/blueprintsprocessor/modules/blueprints/blueprint-proto/pom.xml
ms/sdclistener/application/pom.xml

index b71085f..88f7633 100644 (file)
             <groupId>com.github.marcoferrer.krotoplus</groupId>
             <artifactId>kroto-plus-coroutines</artifactId>
         </dependency>
+        <dependency>
+            <groupId>javax.annotation</groupId>
+            <artifactId>jsr250-api</artifactId>
+            <version>1.0</version>
+        </dependency>
     </dependencies>
 
     <build>
@@ -52,6 +57,7 @@
                     </protocArtifact>
                     <protoSourceRoot>${project.basedir}/../../../../../components/model-catalog/proto-definition/proto
                     </protoSourceRoot>
+                    <jvmTarget>11</jvmTarget>
                 </configuration>
                 <executions>
                     <execution>
@@ -66,8 +72,7 @@
                         </goals>
                         <configuration>
                             <pluginId>grpc-java</pluginId>
-                            <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
-                            </pluginArtifact>
+                            <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
                         </configuration>
                     </execution>
                     <!--
index 45c3919..a44816a 100644 (file)
             <artifactId>jmockit</artifactId>
             <scope>test</scope>
         </dependency>
-
+               <dependency>
+                       <groupId>org.jacorb</groupId>
+                       <artifactId>jacorb-omgapi</artifactId>
+                       <version>3.8</version>
+                       <scope>test</scope>
+               </dependency>
         <!-- GRPC Dependencies -->
         <dependency>
             <groupId>io.grpc</groupId>
             <artifactId>logback-classic</artifactId>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+           <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>default-test</id>
+                        <phase>test</phase>
+                        <goals>
+                        <goal>test</goal>
+                        </goals>
+                        <configuration>
+                        <argLine>-Djdk.attach.allowAttachSelf=true ${surefireArgLine}</argLine>
+                        <excludes>
+                            <exclude>**/IT*.java</exclude>
+                        </excludes>
+                        </configuration>
+                    </execution>
+                </executions>
+                <configuration>
+                <argLine>${surefireArgLine}</argLine>
+                <excludes>
+                    <exclude>**/IT*.java</exclude>
+                </excludes>
+                </configuration>
+            </plugin>
+       </plugins>
+    </build>
 </project>