Add Npm repo script
[clamp.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 7aa4cca..a0611bf 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
        <modelVersion>4.0.0</modelVersion>
        <groupId>org.onap.clamp</groupId>
        <artifactId>clds</artifactId>
-       <version>4.1.4-SNAPSHOT</version>
+       <version>4.2.0-SNAPSHOT</version>
        <name>clamp</name>
 
 
@@ -97,7 +97,7 @@
                <sonar.javascript.lcov.reportPaths>${project.build.directory}/${ui.react.src}/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
 
                <sonar.exclusions>src/main/resources/**</sonar.exclusions>
-               <sonar.coverage.exclusions>src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/*.py</sonar.coverage.exclusions>
+               <sonar.coverage.exclusions>src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/kibana/*.py</sonar.coverage.exclusions>
                <docker.push.registry>localhost:5000</docker.push.registry>
                <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
                <docker.skip.build>true</docker.skip.build>
                <python.http.proxy.param />
                <tomcat.version>9.0.20</tomcat.version>
                <ui.react.src>ui-react</ui.react.src>
-               <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
+               <npm.publish.url>https://nexus3.onap.org/repository/npm.release/</npm.publish.url>
        </properties>
 
        <profiles>
                                        </execution>
                                </executions>
                        </plugin>
+                       <plugin>
+                               <groupId>org.codehaus.groovy.maven</groupId>
+                               <artifactId>gmaven-plugin</artifactId>
+                               <version>1.0</version>
+                               <executions>
+                                       <execution>
+                                               <phase>validate</phase>
+                                               <goals>
+                                                       <goal>execute</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                                </goals>
                                                <phase>compile</phase>
                                                <configuration>
-                                                       <arguments>install --registry https://registry.npmjs.com/</arguments>
+                                                       <arguments>install</arguments>
                                                </configuration>
                                        </execution>
                                        <execution>
                                                </goals>
                                                <phase>deploy</phase>
                                                <configuration>
-                                                       <skip>true</skip>
-                                                       <arguments>publish --registry ${npm.publish.url}</arguments>
+                                                       <arguments>run-script publish</arguments>
                                                </configuration>
                                        </execution>
                                </executions>