Fixing the docker jenkins job
[aai/data-router.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 7c7b0d6..6294bbd 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -67,6 +67,7 @@ limitations under the License.
       <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
       <sonar.projectVersion>${project.version}</sonar.projectVersion>
       <logback.version>1.2.3</logback.version>
+      <version.com.google.guava>16.0.1</version.com.google.guava>
    </properties>
 
    <dependencies>
@@ -129,6 +130,12 @@ limitations under the License.
          <scope>test</scope>
       </dependency>
 
+     <dependency>
+       <groupId>org.assertj</groupId>
+       <artifactId>assertj-core</artifactId>
+       <version>3.10.0</version>
+       <scope>test</scope>
+     </dependency>
       <dependency>
          <groupId>org.powermock</groupId>
          <artifactId>powermock-api-mockito</artifactId>
@@ -162,11 +169,22 @@ limitations under the License.
          <version>3.1.200</version>
          <scope>provided</scope>
       </dependency>
-      <dependency>
-         <groupId>org.onap.aai.aai-common</groupId>
-         <artifactId>aai-schema</artifactId>
-         <version>1.3.0-SNAPSHOT</version>
-      </dependency>
+      <!--<dependency>-->
+         <!--<groupId>org.onap.aai.aai-common</groupId>-->
+         <!--<artifactId>aai-schema</artifactId>-->
+         <!--<version>1.3.0-SNAPSHOT</version>-->
+      <!--</dependency>-->
+      <!--<dependency>-->
+        <!--<groupId>org.onap.aai.aai-common</groupId>-->
+         <!--<artifactId>aai-schema-ingest</artifactId>-->
+         <!--<version>1.2.2</version>-->
+         <!--<exclusions>-->
+             <!--<exclusion>-->
+                 <!--<groupId>com.google.guava</groupId>-->
+                 <!--<artifactId>guava</artifactId>-->
+             <!--</exclusion>-->
+         <!--</exclusions>-->
+      <!--</dependency>-->
       <dependency>
          <groupId>org.onap.aai.router-core</groupId>
          <artifactId>router-core</artifactId>
@@ -208,7 +226,11 @@ limitations under the License.
          <version>1.1.0</version>
       </dependency>
 
-
+         <dependency>
+        <groupId>com.google.guava</groupId>
+        <artifactId>guava</artifactId>
+        <version>${version.com.google.guava}</version>
+      </dependency>
 
    </dependencies>
 
@@ -278,11 +300,43 @@ limitations under the License.
                               <include>**/*</include>
                            </includes>
                         </resource>
+                        <resource>
+                           <directory>${basedir}/config</directory>
+                           <filtering>true</filtering>
+                           <includes>
+                              <include>schema/**</include>
+                           </includes>
+                        </resource>
                      </resources>
                   </configuration>
                </execution>
             </executions>
          </plugin>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>unpack</id>
+                <phase>prepare-package</phase>
+                <goals>
+                  <goal>unpack</goal>
+                </goals>
+                <configuration>
+                  <artifactItems>
+                    <artifactItem>
+                      <groupId>org.onap.aai.aai-common</groupId>
+                      <artifactId>aai-schema</artifactId>
+                      <version>1.2.2</version>
+                      <type>jar</type>
+                      <includes>oxm/</includes>
+                      <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
+                    </artifactItem>
+                  </artifactItems>
+                  </configuration>
+               </execution>
+            </executions>
+         </plugin>
          <plugin>
             <groupId>com.spotify</groupId>
             <artifactId>docker-maven-plugin</artifactId>
@@ -300,11 +354,26 @@ limitations under the License.
          </plugin>
          <!-- license plugin -->
          <!-- Uncomment this to add a license header to every source file 
-            <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> 
-            <version>3.0</version> <configuration> <header>License.txt</header> <includes> 
-            <include>src/main/java/**</include> <include>src/test/java/**</include> </includes> 
-            </configuration> <executions> <execution> <goals> <goal>format</goal> </goals> 
-            <phase>process-sources</phase> </execution> </executions> </plugin> -->
+       <plugin>
+               <groupId>com.mycila</groupId>
+               <artifactId>license-maven-plugin</artifactId>
+               <version>3.0</version>
+               <configuration>
+                       <header>License.txt</header>
+                       <includes>
+                               <include>src/main/java/**</include>
+                               <include>src/test/java/**</include>
+                       </includes>
+               </configuration>
+               <executions>
+                       <execution>
+                               <goals>
+                                       <goal>format</goal>
+                               </goals>
+                               <phase>process-sources</phase>
+                       </execution>
+               </executions>
+       </plugin> -->
          <plugin>
             <groupId>org.sonatype.plugins</groupId>
             <artifactId>nexus-staging-maven-plugin</artifactId>