Fix broken swagger
Change-Id: I402a999d66405eb29532aa30e7a8464fe8954f25
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3650
diff --git a/openecomp-be/tools/swagger-ui/pom.xml b/openecomp-be/tools/swagger-ui/pom.xml
index 07391a6..4e09c7f 100644
--- a/openecomp-be/tools/swagger-ui/pom.xml
+++ b/openecomp-be/tools/swagger-ui/pom.xml
@@ -11,12 +11,29 @@
<version>1.9.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>
-
+ <dependencies>
+ <dependency>
+ <groupId>org.openecomp.sdc</groupId>
+ <artifactId>catalog-be</artifactId>
+ <version>${project.version}</version>
+ <classifier>classes</classifier>
+ <exclusions>
+ <exclusion>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-http</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-servlets</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
<properties>
<plugin.name>api-docs</plugin.name>
<rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
</rest.api.dir>
- <api.json.file>api.json</api.json.file>
+ <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir>
</properties>
<build>
<plugins>
@@ -50,9 +67,16 @@
<configuration>
<target>
<echo message="Copy api json files"/>
- <copy
- file="${rest.api.dir}/target/generated/swagger-ui/swagger-sdce-1.json"
- tofile="${basedir}/target/${plugin.name}/${api.json.file}"/>
+ <copy todir="${basedir}/target/${plugin.name}/">
+ <fileset dir="${rest.api.dir}/target/generated/swagger-ui/">
+ <include name="*.json"/>
+ </fileset>
+ </copy>
+ <copy todir="${basedir}/target/${plugin.name}/">
+ <fileset dir="${catalog-be.api.dir}/target/generated/swagger/">
+ <include name="*.json"/>
+ </fileset>
+ </copy>
</target>
</configuration>
<goals>