diff options
author | vasraz <vasyl.razinkov@est.tech> | 2021-06-11 19:02:58 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2021-07-28 13:45:24 +0000 |
commit | a86a4ceff920f3362ac8f171c7d7e05881fe4931 (patch) | |
tree | a89a2a2eb44522a675933b2e17aab038472fec22 /openecomp-be/tools/swagger-ui/pom.xml | |
parent | 8dbc732ba29fed3921477467ee9424732014d70b (diff) |
Fix broken swagger
Change-Id: I402a999d66405eb29532aa30e7a8464fe8954f25
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3650
Diffstat (limited to 'openecomp-be/tools/swagger-ui/pom.xml')
-rw-r--r-- | openecomp-be/tools/swagger-ui/pom.xml | 34 |
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> |