[AAI-50] Add support for v11 version APIs
[aai/aai-common.git] / aai-core / pom.xml
index f761c50..902ca0f 100644 (file)
                <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.onap.aai.aai-common</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>
                                        </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>