Legalize docker image name
[dcaegen2/collectors/ves.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 8cf9bfa..386f6ad 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -2,10 +2,15 @@
        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>
+       <parent>
+               <groupId>org.onap.oparent</groupId>
+               <artifactId>oparent</artifactId>
+               <version>1.0.0-SNAPSHOT</version>
+       </parent>
        <groupId>org.onap.dcaegen2.collectors.ves</groupId>
        <artifactId>VESCollector</artifactId>
        <version>1.1.4-SNAPSHOT</version>
-       <name>dcaegen2-collectors-ves</name>
+       <name>VESCollector</name>
        <description>VESCollector</description>
 
        <properties>
                <dependency.locations.enabled>false</dependency.locations.enabled>
                <!-- <sonar.host.url>http://localhost:9000</sonar.host.url> -->
                <!-- <maven.test.skip>true</maven.test.skip> -->
-               <nexusproxy>https://nexus.openecomp.org</nexusproxy>
+       
+          <nexusproxy>https://nexus.onap.org</nexusproxy>
+       <snapshots.path>content/repositories/snapshots/</snapshots.path>
+       <releases.path>content/repositories/releases/</releases.path>
+       <site.path>content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}</site.path>
        </properties>
 
        <pluginRepositories>
                        <version>1.0.10</version>
                </dependency>
 
-<!--
-               <dependency>
+       <!--    <dependency>
                        <groupId>com.att.nsa</groupId>
                        <artifactId>saToolkit</artifactId>
                        <version>1.1.3</version>
-               </dependency>
--->
+               </dependency>  -->
 
                <dependency>
                        <groupId>org.slf4j</groupId>
                                        </executions>
                                </plugin>
                                <!-- CHECKSTYLE PLUGIN -->
-
+<!--
                                <plugin>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-checkstyle-plugin</artifactId>
                                                        <phase>validate</phase>
                                                        <configuration>
                                                                <configLocation>${checkstyle.file.name}</configLocation>
+-->
                                                                <!-- <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation> -->
+<!--
                                                                <encoding>UTF-8</encoding>
                                                                <consoleOutput>true</consoleOutput>
 
                                                </dependency>
                                        </dependencies>
                                </plugin>
-
+-->
 
                                <plugin>
                                        <artifactId>maven-assembly-plugin</artifactId>
                                                </execution>
                                        </executions>
                                </plugin>
+                               <plugin>
+                                       <groupId>org.codehaus.mojo</groupId>
+                                       <artifactId>exec-maven-plugin</artifactId>
+                                       <version>1.2.1</version>
+                                       <configuration>
+                                               <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
+                                               <environmentVariables>
+                                                       <!-- make mvn properties as env for our script -->
+                                                       <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
+                                                       <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
+                                                       <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
+                                                       <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
+                                                       <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
+                                                       <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
+                                                       <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
+                                                       <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
+                                                       <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
+                                               </environmentVariables>
+                                       </configuration>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-enforcer-plugin</artifactId>
+                                       <version>3.0.0-M1</version>
+                                       <configuration>
+                                               <skip>true</skip>
+                                       </configuration>
+                               </plugin>
+
                        </plugins>
                </pluginManagement>
                <plugins>
                                </configuration>
                        </plugin>
 
-
-
                        <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-dependency-plugin</artifactId>
-                               <version>3.0.0</version>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>exec-maven-plugin</artifactId>
+                               <version>1.2.1</version>
                                <executions>
-                                       <!-- <execution> <id>copy</id> <phase>compile</phase> <goals> <goal>copy</goal> 
-                                               </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.openecomp.dcae.controller</groupId> 
-                                               <artifactId>dcae-controller-service-standardeventcollector-manager</artifactId> 
-                                               <version>${project.version}</version> <type>zip</type> <classifier>runtime</classifier> 
-                                               <overWrite>true</overWrite> <outputDirectory>.</outputDirectory> <destFileName>manager.zip</destFileName> 
-                                               </artifactItem> </artifactItems> </configuration> </execution> -->
+                                       <execution>
+                                               <id>deploy script</id>
+                                               <phase>deploy</phase>
+                                               <goals>
+                                                       <goal>exec</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <arguments>
+                                                               <argument>__</argument>
+                                                               <argument>deploy</argument>
+                                                       </arguments>
+                                               </configuration>
+                                       </execution>
                                </executions>
                        </plugin>
 
                </plugins>
        </reporting>
 
+<!--
        <distributionManagement>
-               <site>
-                       <id>dcae-javadoc</id>
-                       <!-- <url>file:LOCALDIR/${project.artifactId}/</url> -->
-                       <url>dav:https://ecomp-nexus:8443/repository/dcae-javadoc/${project.artifactId}/${project.version}</url>
-               </site>
-               <repository>
-                       <id>ecomp-releases</id>
-                       <name>Open eCOMP Release Repository</name>
-                       <url>${nexusproxy}/content/repositories/releases/</url>
-               </repository>
-               <snapshotRepository>
-                       <id>ecomp-snapshots</id>
-                       <name>Open eCOMP Snapshot Repository</name>
-                       <url>${nexusproxy}/content/repositories/snapshots/</url>
-               </snapshotRepository>
+                <site>
+                        <id>ecomp-site</id>
+-->
+                        <!-- <url>file:LOCALDIR/${project.artifactId}/</url> -->
+<!--
+                        <url>dav:${nexusproxy}/${site.path}/</url>
+                </site>
+                <repository>
+                        <id>ecomp-releases</id>
+                        <name>Open eCOMP Release Repository</name>
+                        <url>${nexusproxy}/${releases.path}</url>
+                </repository>
+                <snapshotRepository>
+                        <id>ecomp-snapshots</id>
+                        <name>Open eCOMP Snapshot Repository</name>
+                        <url>${nexusproxy}/${snapshots.path}</url>
+                </snapshotRepository>
 
        </distributionManagement>
+-->
 </project>
+