Merge "Catch IllegalArgumentException for error message"
[aai/champ.git] / champ-service / pom.xml
index 57234c0..b0dbf46 100644 (file)
@@ -32,6 +32,7 @@ limitations under the License.
     <groupId>org.onap.aai</groupId>
     <artifactId>champ-service</artifactId>
     <version>1.2.0-SNAPSHOT</version>
+    <name>champ</name>
 
     <properties>
         <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
@@ -47,8 +48,11 @@ limitations under the License.
         <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
 
         <common.logging.groupid>org.onap.aai.logging-service</common.logging.groupid>
-        <common.logging.version>1.2.0</common.logging.version>
+        <common.logging.version>1.2.2</common.logging.version>
         <org.apache.httpcomponents.httpclient.version>4.5.2</org.apache.httpcomponents.httpclient.version>
+
+        <docker.location>${basedir}/target</docker.location>
+        <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
     </properties>
 
     <dependencies>
@@ -58,13 +62,13 @@ limitations under the License.
             <version>1.18.6</version>
         </dependency>
 
-        <!-- AJSC Dependencies -->
         <dependency>
             <groupId>dom4j</groupId>
             <artifactId>dom4j</artifactId>
             <version>1.6.1</version>
             <scope>provided</scope>
         </dependency>
+
         <dependency>
             <groupId>com.att.aft</groupId>
             <artifactId>dme2</artifactId>
@@ -72,7 +76,6 @@ limitations under the License.
             <scope>provided</scope>
         </dependency>
 
-        <!--Adding this dependency explicit.-->
         <dependency>
             <groupId>org.json</groupId>
             <artifactId>json</artifactId>
@@ -121,7 +124,6 @@ limitations under the License.
             <version>${org.apache.httpcomponents.httpclient.version}</version>
         </dependency>
 
-        <!-- Champ graph database library. -->
         <dependency>
             <groupId>org.onap.aai</groupId>
             <artifactId>champ-core</artifactId>
@@ -136,6 +138,19 @@ limitations under the License.
         </dependency>
     </dependencies>
 
+    <distributionManagement>
+        <repository>
+            <id>ecomp-releases</id>
+            <name>ECOMP Release Repository</name>
+            <url>${onap.nexus.url}/content/repositories/releases/</url>
+        </repository>
+        <snapshotRepository>
+            <id>ecomp-snapshots</id>
+            <name>ECOMP Snapshot Repository</name>
+            <url>${onap.nexus.url}/content/repositories/snapshots/</url>
+        </snapshotRepository>
+    </distributionManagement>
+
     <build>
         <finalName>${project.artifactId}</finalName>
         <plugins>
@@ -164,13 +179,25 @@ limitations under the License.
                                 <resource>
                                     <directory>${basedir}/src/main/bin/</directory>
                                 </resource>
+                                <resource>
+                                    <directory>../champ-service-deps-janus/target/</directory>
+                                </resource>
+                                <resource>
+                                    <directory>../champ-service-deps-titan/target/</directory>
+                                </resource>
                             </resources>
                         </configuration>
                     </execution>
                 </executions>
             </plugin>
-
-                       <!--
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
+            <!--
             <plugin>
                 <groupId>com.mycila</groupId>
                 <artifactId>license-maven-plugin</artifactId>
@@ -190,7 +217,7 @@ limitations under the License.
                     </execution>
                 </executions>
             </plugin>
-                       -->
+            -->
             <plugin>
                 <groupId>com.spotify</groupId>
                 <artifactId>docker-maven-plugin</artifactId>
@@ -198,7 +225,7 @@ limitations under the License.
                 <configuration>
                     <verbose>true</verbose>
                     <serverId>docker-hub</serverId>
-                    <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
+                    <imageName>${docker.push.registry}/onap/${project.name}</imageName>
                     <dockerDirectory>${docker.location}</dockerDirectory>
                     <imageTags>
                         <imageTag>latest</imageTag>
@@ -206,7 +233,6 @@ limitations under the License.
                     <forceTags>true</forceTags>
                 </configuration>
             </plugin>
-
             <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>