[AAI-50] Add support for v11 version APIs
[aai/aai-common.git] / aai-core / pom.xml
index 0f07623..902ca0f 100644 (file)
                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
                xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
-       <groupId>org.openecomp.aai</groupId>
+       <parent>
+         <groupId>org.onap.aai.aai-common</groupId>
+         <artifactId>aai-common</artifactId>
+         <version>1.1.0-SNAPSHOT</version>
+       </parent>
        <artifactId>aai-core</artifactId>
-       <version>1.1.0-SNAPSHOT</version>
        <name>aai-core</name>
        <packaging>jar</packaging>
        <properties>
                <maven.compiler.target>1.8</maven.compiler.target>
                <maven.compiler.source>1.8</maven.compiler.source>
-               <aai-schema.version>1.1.0-SNAPSHOT</aai-schema.version>
                <nexusproxy>https://nexus.onap.org</nexusproxy>
-               <sitePath>/content/sites/site/${project.artifactId}/${project.version}</sitePath>
+               <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
+               <sonar.language>java</sonar.language>
+               <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
+               <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
+               <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
+               <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
+               <sonar.projectVersion>${project.version}</sonar.projectVersion>
+               <gendoc.version>v11</gendoc.version>
+               <aai.wiki.link>https://wiki.onap.org/</aai.wiki.link>
        </properties>
+       <profiles>              
+               <profile>
+                       <id>generateXsd</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>exec-maven-plugin</artifactId>
+                                               <version>1.1.1</version>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>process-classes</phase>
+                                                               <goals>
+                                                                       <goal>java</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <mainClass>org.openecomp.aai.util.GenerateXsd</mainClass>
+                                                                       <systemProperties>
+                                                           <systemProperty>
+                                                               <key>gen_version</key>
+                                                               <value>${gendoc.version}</value>
+                                                           </systemProperty>
+                                                           <systemProperty>
+                                                               <key>gen_type</key>
+                                                               <value>XSD</value>
+                                                           </systemProperty>
+                                                           <systemProperty>
+                                                               <key>yamlresponses_url</key>
+                                                               <value></value>
+                                                           </systemProperty>
+                                                           <systemProperty>
+                                                               <key>yamlresponses_label</key>
+                                                               <value></value>
+                                                           </systemProperty>                                                       
+                                                       </systemProperties>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+               <profile>
+                       <id>generateYaml</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>exec-maven-plugin</artifactId>
+                                               <version>1.1.1</version>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>process-classes</phase>
+                                                               <goals>
+                                                                       <goal>java</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <mainClass>org.openecomp.aai.util.GenerateXsd</mainClass>
+                                                                       <systemProperties>
+                                                           <systemProperty>
+                                                               <key>gen_version</key>
+                                                               <value>${gendoc.version}</value>
+                                                           </systemProperty>
+                                                           <systemProperty>
+                                                               <key>gen_type</key>
+                                                               <value>YAML</value>
+                                                           </systemProperty>
+                                                           <systemProperty>
+                                                               <key>yamlresponses_url</key>
+                                                               <value>${aai.wiki.link}</value>
+                                                           </systemProperty>
+                                                           <systemProperty>
+                                                               <key>yamlresponses_label</key>
+                                                               <value>Response codes found in [response codes]</value>
+                                                           </systemProperty>                                                       
+                                                       </systemProperties>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+               <profile>
+                       <id>generateHtml</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>exec-maven-plugin</artifactId>
+                                               <version>1.1.1</version>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>process-classes</phase>
+                                                               <goals>
+                                                                       <goal>java</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <mainClass>org.openecomp.aai.util.swagger.GenerateSwagger</mainClass>
+                                    <systemProperties>
+                                        <property>
+                                                                                       <key>aai.generate.version</key>
+                                                                                       <value>${gendoc.version}</value>
+                                                                               </property>
+                                                                               <property>
+                                                                                       <key>aai.wiki.link</key>
+                                                                                       <value>${aai.wiki.link}</value>
+                                                                               </property>
+                                                                       </systemProperties>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+       </profiles>
        <dependencies>
                <dependency>
-                       <groupId>org.openecomp.aai</groupId>
+                       <groupId>org.onap.aai.aai-common</groupId>
                        <artifactId>aai-schema</artifactId>
-                       <version>${aai-schema.version}</version>
+                       <version>${aai.schema.version}</version>
                </dependency>
                <dependency>
                        <groupId>commons-lang</groupId>
                        <artifactId>jackson-annotations</artifactId>
                        <version>2.1.4</version>
                </dependency>
+               <dependency>
+                       <groupId>com.fasterxml.jackson.dataformat</groupId>
+                       <artifactId>jackson-dataformat-yaml</artifactId>
+                       <version>2.1.4</version>
+               </dependency>
                <dependency>
                        <groupId>xml-apis</groupId>
                        <artifactId>xml-apis</artifactId>
                        <scope>test</scope>
                </dependency>
        </dependencies>
-       
+
        <build>
                <plugins>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>sonar-maven-plugin</artifactId>
+                               <version>3.2</version>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.jacoco</groupId>
+                               <artifactId>jacoco-maven-plugin</artifactId>
+                               <version>0.7.7.201606060606</version>
+                               <configuration>
+                                       <dumpOnExit>true</dumpOnExit>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>jacoco-initialize-unit-tests</id>
+                                               <goals>
+                                                       <goal>prepare-agent</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
+                                                       <!-- <append>true</append> -->
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                        <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-site-plugin</artifactId>
                                                </execution>
                                        </executions>
                                </plugin>
+                       <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <version>2.12.4</version>
+                               <configuration>
+                                       <argLine>-noverify ${argLine}</argLine>
+                    <systemPropertyVariables>
+                                               <AJSC_HOME>.</AJSC_HOME>
+                                               <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
+                                       </systemPropertyVariables>
+                               </configuration>
+                       </plugin>
+        <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-deploy-plugin</artifactId>
+               <executions>
+                       <execution>
+                       <id>default-deploy</id>
+                       <phase>none</phase>
+                       </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>
-       
+
        <distributionManagement>
                <repository>
                        <id>ecomp-releases</id>
                        <url>http://www.evosuite.org/m2</url>
                </pluginRepository>
        </pluginRepositories>
-       
+
        <repositories>
                <repository>
                        <id>AJSC</id>
                        <name>maven reslet</name>
                        <url>https://maven.restlet.com/</url>
                </repository>
-               
+
                <repository>
                        <id>central</id>
                        <name>Maven 2 repository 2</name>
                        <url>${nexusproxy}/content/repositories/snapshots/</url>
                </repository>
        </repositories>
-
        <reporting>
          <plugins>
            <plugin>