Cleanup project's name in Sonar
[aai/aai-service.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 355d68d..f315060 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -9,8 +9,8 @@
        </parent>
        <groupId>org.openecomp.aai.aai-service</groupId>
        <artifactId>aai-service</artifactId>
-       <version>1.0.0-SNAPSHOT</version>
-       <name>aai</name>
+       <version>1.1.0-SNAPSHOT</version>
+       <name>aai-aai-service</name>
        <packaging>pom</packaging>
        <modules>
                <module>aai-schema</module>
@@ -22,6 +22,8 @@
                <maven.compiler.source>1.8</maven.compiler.source>
                <module.ajsc.namespace.name>ActiveAndAvailableInventory-CloudNetwork</module.ajsc.namespace.name>
                <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
+               <nexusproxy>https://nexus.onap.org</nexusproxy>
+               <sitePath>/content/sites/site/${project.artifactId}/${project.version}</sitePath>
         <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
 
                <!-- This will be the Absolute Root of the Project and should contain NO 
                <!-- For using CXF with Maven -->
                <cxf.version>3.0.4</cxf.version>
        </properties>
+       <distributionManagement>
+               <repository>
+                       <id>ecomp-releases</id>
+                       <name>ECOMP Release Repository</name>
+                       <url>${nexusproxy}/content/repositories/releases/</url>
+               </repository>
+               <snapshotRepository>
+                       <id>ecomp-snapshots</id>
+                       <name>ECOMP Snapshot Repository</name>
+                       <url>${nexusproxy}/content/repositories/snapshots/</url>
+               </snapshotRepository>
+               <site>
+                   <id>ecomp-site</id>
+                   <url>dav:${nexusproxy}${sitePath}</url>
+               </site>
+       </distributionManagement>
        
                <!-- Plugins and repositories -->
           <pluginRepositories>
               <repository>
                          <id>ecomp-releases</id>
                           <name>ECOMP Release Repository</name>
-                         <url>https://nexus.openecomp.org/content/repositories</url>
+                         <url>${nexusproxy}/content/repositories/releases/</url>
                   </repository>
+               <repository>
+                   <id>ecomp-staging</id>
+                   <name>ECOMP Staging Repository</name>
+                   <url>${nexusproxy}/content/repositories/staging/</url>
+               </repository>
                   <repository>
                          <id>ecomp-snapshots</id>
                           <name>ECOMP Snapshot Repository</name>
-                         <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
-                          <snapshots>
-            <updatePolicy>always</updatePolicy>
-        </snapshots>
-        <releases>
-            <updatePolicy>always</updatePolicy>
-        </releases>
+                         <url>${nexusproxy}/content/repositories/snapshots/</url>
                   </repository>
 
           </repositories>
                        <build>
                                <defaultGoal>initialize</defaultGoal>
                                <plugins>
-
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-dependency-plugin</artifactId>
+                                               <version>2.8</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>copy-agent</id>
+                                                               <phase>process-test-classes</phase>
+                                                               <goals>
+                                                                       <goal>copy</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <artifactItems>
+                                                                               <artifactItem>
+                                                                                       <groupId>org.powermock</groupId>
+                                                                                       <artifactId>powermock-module-javaagent</artifactId>
+                                                                                       <version>1.6.2</version>
+                                                                                       <outputDirectory>${project.build.directory}/agents</outputDirectory>
+                                                                                       <destFileName>powermock-javaagent.jar</destFileName>
+                                                                               </artifactItem>
+                                                                       </artifactItems>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
                                        <plugin>
                                                <groupId>org.codehaus.mojo</groupId>
                                                <artifactId>exec-maven-plugin</artifactId>
        </profiles>
        <build>
        <plugins>
-               <!-- license plugin -->         
-           <plugin>
-            <groupId>org.codehaus.mojo</groupId>
-            <artifactId>license-maven-plugin</artifactId>
-            <version>1.10</version>
-            <configuration>
-                <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
-                <licenseName>apache_v2</licenseName>
-                <inceptionYear>2017</inceptionYear>
-                <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
-                <projectName>org.openecomp.aai</projectName>
-                <canUpdateCopyright>true</canUpdateCopyright>
-                <canUpdateDescription>true</canUpdateDescription>
-                <canUpdateLicense>true</canUpdateLicense>
-                <emptyLineAfterHeader>true</emptyLineAfterHeader>
-                <processStartTag>============LICENSE_START=======================================================</processStartTag>
-                <processEndTag>============LICENSE_END=========================================================</processEndTag>
-                <sectionDelimiter>================================================================================</sectionDelimiter>
-                <includes>
-                        <include>**/*.java</include>
-                        <include>**/*.ksh</include>
-                        <include>**/*.sh</include>
-                        <include>**/*.ftl</include>
-                        <include>**/*.xsd</include>
-                        <include>**/*.xjb</include>
-                        <include>**/aai*.xml</include>
-                        <include>**/*logback*.xml</include>
-                        <include>**/*aaiconfig*.properties</include>
-                        <include>**/*titan*.properties</include>
-                </includes>          
-               </configuration>
-            <executions>
-                <execution>
-                     <id>first</id>
-                      <goals>
-                          <goal>update-file-header</goal>
-                      </goals>
-                         <phase>process-sources</phase>
-                 </execution>
-              </executions>
-           </plugin>
         <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>sonar-maven-plugin</artifactId>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-site-plugin</artifactId>
             <version>3.6</version>
+           <configuration>
+               <reportPlugins>
+                   <plugin>
+                       <groupId>org.apache.maven.plugins</groupId>
+                       <artifactId>maven-project-info-reports-plugin</artifactId>
+                       <version>2.4</version>
+                       <configuration>
+                           <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+                           <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+                       </configuration>
+                       <reports>
+                           <report>dependencies</report>
+                       </reports>
+                   </plugin>
+                   <plugin>
+                       <groupId>org.apache.maven.plugins</groupId>
+                       <artifactId>maven-javadoc-plugin</artifactId>
+                       <version>2.8</version>
+                       <configuration>
+                           <additionalparam>-Xdoclint:none</additionalparam>
+                       </configuration>
+                   </plugin>
+               </reportPlugins>
+           </configuration>
             <dependencies>
               <dependency>
                 <groupId>org.apache.maven.wagon</groupId>
                        </execution>
                        </executions>
                </plugin>        
+               <plugin>
+                   <groupId>org.sonatype.plugins</groupId>
+                   <artifactId>nexus-staging-maven-plugin</artifactId>
+                   <version>1.6.7</version>
+                   <extensions>true</extensions>
+                   <configuration>
+                       <nexusUrl>${nexusproxy}</nexusUrl>
+                       <stagingProfileId>176c31dfe190a</stagingProfileId>
+                       <serverId>ecomp-staging</serverId>
+                   </configuration>
+               </plugin>
        </plugins>
 </build>