summaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/swagger-ui/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/tools/swagger-ui/pom.xml')
-rw-r--r--openecomp-be/tools/swagger-ui/pom.xml34
1 files changed, 29 insertions, 5 deletions
diff --git a/openecomp-be/tools/swagger-ui/pom.xml b/openecomp-be/tools/swagger-ui/pom.xml
index 07391a615e..4e09c7fe04 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>