Update INFO.yaml
[sdc/sdc-pubsub.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 5457ca3..1a232f0 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -2,14 +2,24 @@
          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>org.openecomp.sdc</groupId>
+    <groupId>org.onap.sdc</groupId>
     <artifactId>sdc-pubsub</artifactId>
-    <version>1.0.20</version>
+    <version>1.0.21</version>
     <packaging>pom</packaging>
     <name>SDC Plugin Pubsub</name>
        
        <properties>
                <nexus.proxy>https://nexus.onap.org</nexus.proxy>
+               <staging.profile.id>176c31dfe190a</staging.profile.id>
+
+        <sonar.typescript.node>node/node</sonar.typescript.node>
+        <sonar.sources>lib</sonar.sources>
+        <sonar.inclusions>lib/*.ts</sonar.inclusions>
+        <sonar.tests>lib</sonar.tests>
+        <sonar.test.inclusions>lib/*.spec.ts</sonar.test.inclusions>
+        <sonar.typescript.lcov.reportPaths>coverage/lcov.info</sonar.typescript.lcov.reportPaths>
+        <sonar.typescript.tslint.reportPaths>coverage/tslint-report.json</sonar.typescript.tslint.reportPaths>
+        <sonar.testExecutionReportPaths>coverage/test-report.xml</sonar.testExecutionReportPaths>
        </properties>
        
        <build>
@@ -19,7 +29,7 @@
                                <version>3.1.0</version>
                 <executions>
                     <execution>
-                        <id>clean dist folder and compiled files</id>
+                        <id>clean dist and coverage folder and compiled files</id>
                         <phase>clean</phase>
                         <goals>
                             <goal>clean</goal>
@@ -37,6 +47,9 @@
                                 <fileset>
                                     <directory>${basedir}/dist</directory>
                                 </fileset>
+                                <fileset>
+                                    <directory>${basedir}/coverage</directory>
+                                </fileset>
                                 <fileset>
                                     <directory>${basedir}/lib</directory>
                                     <includes>
                         </configuration>
                     </execution>
 
+                    <execution>
+                        <id>npm test</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <configuration>
+                            <arguments>test -- --coverage</arguments>
+                            <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>npm tslint</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <configuration>
+                            <arguments>run lint</arguments>
+                        </configuration>
+                    </execution>
+
                     <execution>
                         <id>npm run build</id>
                         <goals>
                     </execution>
                 </executions>
             </plugin>
+
+            <plugin>
+                <groupId>org.sonarsource.scanner.maven</groupId>
+                <artifactId>sonar-maven-plugin</artifactId>
+                <version>3.0.2</version>
+            </plugin>
+                       
+                       <!-- Staging Plugin -->
+            <plugin>
+                <groupId>org.sonatype.plugins</groupId>
+                <artifactId>nexus-staging-maven-plugin</artifactId>
+                <version>1.6.7</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <nexusUrl>${nexus.proxy}</nexusUrl>
+                    <stagingProfileId>${staging.profile.id}</stagingProfileId>
+                    <serverId>ecomp-staging</serverId>
+                </configuration>
+            </plugin>
+                       
                </plugins>
        </build>
+       
+       <distributionManagement>
+        <repository>
+            <id>ecomp-releases</id>
+            <name>Release Repository</name>
+            <url>${nexus.proxy}/content/repositories/releases/</url>
+        </repository>
+        <snapshotRepository>
+            <id>ecomp-snapshots</id>
+            <name>Snapshot Repository</name>
+            <url>${nexus.proxy}/content/repositories/snapshots/</url>
+        </snapshotRepository>
+        <site>
+            <id>ecomp-site</id>
+            <url>dav:${nexus.proxy}${sitePath}</url>
+        </site>
+    </distributionManagement>
 </project>
\ No newline at end of file