aboutsummaryrefslogtreecommitdiffstats
path: root/a1-policy-management/pom.xml
diff options
context:
space:
mode:
authorJohnKeeney <john.keeney@est.tech>2023-02-20 18:00:44 +0000
committerJohnKeeney <john.keeney@est.tech>2023-02-20 18:05:31 +0000
commite251d0c559b88070977788df7c6d9411c63f3fe7 (patch)
tree73662cdc8a06af91b4b6a664696e12851aba5eb7 /a1-policy-management/pom.xml
parent8ff6511e3f843b17194a38ece5c4a926646ef50d (diff)
Added secondary A1PMS API documentation
Updated SnakeYAML version to address CVE-2022-38750 CVE-2022-38752 CVE-2022-25857 Change-Id: Ib9ae706bd9fbde2a9f586643ee0eda259ee1f4a9 Signed-off-by: JohnKeeney <john.keeney@est.tech> Issue-ID: CCSDK-3842 Signed-off-by: JohnKeeney <john.keeney@est.tech>
Diffstat (limited to 'a1-policy-management/pom.xml')
-rw-r--r--a1-policy-management/pom.xml57
1 files changed, 46 insertions, 11 deletions
diff --git a/a1-policy-management/pom.xml b/a1-policy-management/pom.xml
index 3660ef91..d0862ae8 100644
--- a/a1-policy-management/pom.xml
+++ b/a1-policy-management/pom.xml
@@ -41,14 +41,15 @@
<spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version>
<commons-io.version>2.11.0</commons-io.version>
<guava.version>31.0.1-jre</guava.version>
+ <snakeyaml.version>1.32</snakeyaml.version><!-- overrides version included via spring-boot-starter to address CVE-2022-38750 CVE-2022-38752 CVE-2022-25857. Remove later if possible -->
<docker-maven-plugin>0.30.0</docker-maven-plugin>
<surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version>
<surefire-report-plugin.version>3.0.0-M8</surefire-report-plugin.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
- <exec.skip>true</exec.skip>
<ccsdk.project.version>${project.version}</ccsdk.project.version>
<software.amazon.awssdk.version>2.19.17</software.amazon.awssdk.version>
+ <allowskiptests>false</allowskiptests>
</properties>
<dependencies>
<dependency>
@@ -283,7 +284,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-maven-plugin.version}</version>
<configuration>
- <skipTests>false</skipTests>
+ <skipTests>${allowskiptests}</skipTests>
<statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
<disable>false</disable>
<version>3.0</version>
@@ -352,24 +353,38 @@
<version>6.0.0</version>
<executions>
<execution>
- <id>html2</id>
- <phase>test</phase>
+ <id>generate-openapi-html</id>
+ <phase>prepare-package</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
<generatorName>html2</generatorName>
- <verbose>false</verbose>
- <output>${project.basedir}/api</output>
+ <output>${project.basedir}/api/pms-api</output>
<skipOperationExample>false</skipOperationExample>
<strictSpec>false</strictSpec>
<configOptions>
<appDescription>The O-RAN Non-RT RIC Policy Management Service provides a REST API for managing O-RAN A1 Policies.</appDescription>
<appName>ONAP CCSDK A1 Policy Management Service</appName>
<infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
- <licenseInfo>Copyright (C) 2020-2022 Nordix Foundation. Licensed under the Apache License.</licenseInfo>
+ <licenseInfo>Copyright (C) 2020-2023 Nordix Foundation. Licensed under the Apache License.</licenseInfo>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ </configOptions>
+ </configuration>
+ </execution>
+ <execution>
+ <id>generate-openapi-yaml</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
+ <generatorName>openapi-yaml</generatorName>
+ <verbose>false</verbose>
+ <output>${project.basedir}/api</output>
+ <configOptions>
<outputFile>pms-api.yaml</outputFile>
</configOptions>
</configuration>
@@ -380,18 +395,38 @@
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
- <id>copy-resource-one</id>
- <phase>install</phase>
+ <id>copy-resource-openapi</id>
+ <phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
+ <verbose>true</verbose>
<resources>
<resource>
<directory>${project.basedir}/api</directory>
<includes>
- <include>pms-api.*</include>
+ <include>pms-api.json</include>
+ <include>pms-api.yaml</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-resource-openapi-html</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <verbose>true</verbose>
+ <outputDirectory>${project.basedir}/../docs/offeredapis/openapitoolgen/offeredapis/pms-api</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/api/pms-api</directory>
+ <includes>
<include>index.html</include>
</includes>
</resource>
@@ -470,4 +505,4 @@
</plugin>
</plugins>
</reporting>
-</project> \ No newline at end of file
+</project>