Update INFO.yaml
[appc/cdt.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 8ec1088..114410f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -23,53 +23,35 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
-    <groupId>com.att.appc</groupId>
+    <groupId>org.onap.appc.cdt</groupId>
     <artifactId>config-design-tool</artifactId>
-    <version>1.6.0-SNAPSHOT</version>
+    <version>1.8.0-SNAPSHOT</version>
     <packaging>pom</packaging>
 
-    <name>config-design-tool</name>
+    <name>appc-config-design-tool</name>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <npm.executable>npm</npm.executable>
+        <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
     </properties>
 
-
-    <!-- ================================================================================== -->
-    <!-- The SCM repository we are using -->
-    <!-- ================================================================================== -->
-    <scm>
-        <connection>scm:git:ssh://codecloud.web.att.com:7999/st_ac/app-c.git</connection>
-        <developerConnection>scm:git:ssh://codecloud.web.att.com:7999/st_ac/app-c.git</developerConnection>
-        <url>ssh://codecloud.web.att.com:7999/st_ac/app-c.git</url>
-        <tag>appc-1.4.17</tag>
-    </scm>
-
     <!-- ================================================================================== -->
-    <!-- Maven Central Repository Information -->
+    <!-- Distribution Management Sites -->
     <!-- ================================================================================== -->
-    <distributionManagement>
+    <distributionManagement>        
         <repository>
-            <id>nexus</id>
-            <name>att-repository-releases</name>
-            <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-releases</url>
+            <id>ecomp-releases</id>
+            <name>openecomp-repository-releases</name>
+            <url>${onap.nexus.url}/content/repositories/releases</url>
         </repository>
         <snapshotRepository>
-            <id>nexus</id>
-            <name>att-repository-snapshots</name>
-            <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-snapshots</url>
+            <id>ecomp-snapshots</id>
+            <name>openecomp-repository-snapshots</name>
+            <url>${onap.nexus.url}/content/repositories/snapshots</url>
         </snapshotRepository>
     </distributionManagement>
 
-    <!-- ================================================================================== -->
-    <!-- Define additional repositories -->
-    <!-- ================================================================================== -->
-    <repositories>
-
-    </repositories>
-
-
     <dependencies>
         <dependency>
             <groupId>junit</groupId>
@@ -81,6 +63,16 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
 
     <build>
         <plugins>
+            <!-- Allows the maven version plugin to work even when child modules
+                 don't use this pom as a parent. -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>versions-maven-plugin</artifactId>
+                <version>2.5</version>
+                <configuration>
+                    <processAllModules>true</processAllModules>
+                </configuration>
+            </plugin>
             <!--  <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>exec-maven-plugin</artifactId>
@@ -117,14 +109,75 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
                 </executions>
             </plugin> -->
             <plugin>
-                <artifactId>maven-assembly-plugin</artifactId>
-                <version>2.5.3</version>
+                <groupId>com.github.eirslett</groupId>
+                <artifactId>frontend-maven-plugin</artifactId>
+                <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
+                <version>1.3</version>
                 <configuration>
+                    <nodeVersion>v7.7.4</nodeVersion>
+                    <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
+                    <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
+                    <installDirectory>./</installDirectory>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>install node and npm</id>
+                        <goals>
+                            <goal>install-node-and-npm</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                    </execution>
+
+                    <execution>
+                        <id>npm install</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+
+                        <phase>generate-resources</phase>
+
+                        <configuration>
+                            <arguments>install</arguments>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>npm build</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+
+                        <phase>generate-resources</phase>
+
+                        <configuration>
+                            <arguments>run build</arguments>
+                        </configuration>
+                    </execution>
+
+                </executions>
+            </plugin>
+
+            <plugin>
+              <artifactId>maven-assembly-plugin</artifactId>
+              <executions>
+                <execution>
+                  <id>maven-repo-zip</id>
+                  <goals>
+                    <goal>single</goal>
+                  </goals>
+                  <phase>package</phase>
+                  <configuration>
+                    <appendAssemblyId>false</appendAssemblyId>
+                    <attach>false</attach>
+                    <finalName>${project.artifactId}-${project.version}</finalName>
                     <descriptors>
-                        <descriptor>src/main/assembly/assembly.xml</descriptor>
+                      <descriptor>assemble_dist_zip.xml</descriptor>
                     </descriptors>
-                </configuration>
+                  </configuration>
+                </execution>
+              </executions>
             </plugin>
+
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>build-helper-maven-plugin</artifactId>
@@ -139,7 +192,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
                         <configuration>
                             <artifacts>
                                 <artifact>
-                                    <file>target/${project.artifactId}-${project.version}-zip.zip</file>
+                                    <file>target/${project.artifactId}-${project.version}.zip</file>
                                     <type>zip</type>
                                 </artifact>
                             </artifacts>
@@ -147,47 +200,11 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
                     </execution>
                 </executions>
             </plugin>
-            <!-- <plugin> -->
-            <!-- <groupId>org.apache.maven.plugins</groupId> -->
-            <!-- <artifactId>maven-resources-plugin</artifactId> -->
-            <!-- <version>2.4.2</version> -->
-            <!-- <executions> -->
-            <!-- <execution> -->
-            <!-- <id>default-copy-resources</id> -->
-            <!-- <phase>process-resources</phase> -->
-            <!-- <goals> -->
-            <!-- <goal>copy-resources</goal> -->
-            <!-- </goals> -->
-            <!-- <configuration> -->
-            <!-- <format>zip</format> -->
-            <!-- <overwrite>true</overwrite> -->
-            <!-- <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}/</outputDirectory> -->
-            <!-- <resources> -->
-            <!-- <resource> -->
-            <!-- <directory>${project.basedir}/dist</directory> -->
-            <!-- </resource> -->
-            <!-- </resources> -->
-            <!-- </configuration> -->
-            <!-- </execution> -->
-            <!-- </executions> -->
-            <!-- </plugin> -->
         </plugins>
     </build>
-    <profiles>
-        <profile>
-            <id>platform-windows</id>
-            <activation>
-                <os>
-                    <family>windows</family>
-                </os>
-            </activation>
-            <properties>
-                <!-- Override the executable names for Windows -->
-                <npm.executable>npm.cmd</npm.executable>
-                <grunt.executable>grunt.cmd</grunt.executable>
-                <bower.executable>bower.cmd</bower.executable>
-            </properties>
-        </profile>
-    </profiles>
+    
+    <modules>
+        <module>CdtProxyService</module>
+    </modules>
 
 </project>