diff options
author | Gautam Shah <gautams@amdocs.com> | 2018-04-11 19:55:29 +0530 |
---|---|---|
committer | GAUTAMS <gautams@amdocs.com> | 2018-04-17 10:18:53 +0530 |
commit | 09a41f5bfa6008ce545f8745306145ad9264103b (patch) | |
tree | de4f6301dacc2bc03c9289f67a805835a4c0c0ec /openecomp-be/tools/swagger-ui | |
parent | 4d0fac7c8057d2732203fe9f219059945aa9750c (diff) |
Reducing onboarding backend maven build time
Reducing onboarding backend maven build time
Change-Id: Iab7af70c0e9f60b8a50bef7937e802df5be89fd0
Issue-ID: SDC-1189
Signed-off-by: GAUTAMS <gautams@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/swagger-ui')
-rw-r--r-- | openecomp-be/tools/swagger-ui/assembly/swagger.xml | 2 | ||||
-rw-r--r-- | openecomp-be/tools/swagger-ui/pom.xml | 31 |
2 files changed, 3 insertions, 30 deletions
diff --git a/openecomp-be/tools/swagger-ui/assembly/swagger.xml b/openecomp-be/tools/swagger-ui/assembly/swagger.xml index 37911dc627..5a4302145b 100644 --- a/openecomp-be/tools/swagger-ui/assembly/swagger.xml +++ b/openecomp-be/tools/swagger-ui/assembly/swagger.xml @@ -60,7 +60,7 @@ </includes> </fileSet> <fileSet> - <directory>./target</directory> + <directory>./target/api-docs</directory> <outputDirectory>/</outputDirectory> <includes> <include>${api.json.file}</include> diff --git a/openecomp-be/tools/swagger-ui/pom.xml b/openecomp-be/tools/swagger-ui/pom.xml index 84322762d4..f470c0eb8c 100644 --- a/openecomp-be/tools/swagger-ui/pom.xml +++ b/openecomp-be/tools/swagger-ui/pom.xml @@ -14,36 +14,11 @@ <properties> <plugin.name>api-docs</plugin.name> - <package.dir>${basedir}/${plugin.name}</package.dir> <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war</rest.api.dir> <api.json.file>api.json</api.json.file> - <api.html.file>api.html</api.html.file> </properties> <build> <plugins> - <!-- ============================================= --> - <!-- Clean api-docs folder --> - <!-- ============================================= --> - <plugin> - <artifactId>maven-clean-plugin</artifactId> - <version>2.6.1</version> - <executions> - <execution> - <id>clean.dist.folder</id> - <phase>clean</phase> - <goals> - <goal>clean</goal> - </goals> - <configuration> - <filesets> - <fileset> - <directory>${basedir}/api-docs</directory> - </fileset> - </filesets> - </configuration> - </execution> - </executions> - </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> @@ -72,9 +47,7 @@ <configuration> <tasks> <echo message="Copy api json files"/> - <copy file="${rest.api.dir}/target/generated/swagger-ui/swagger.json" tofile="${basedir}/target/${api.json.file}"/> - <copy file="${rest.api.dir}/target/generated/swagger-ui/swagger.json" tofile="${package.dir}/${api.json.file}"/> - <copy file="${rest.api.dir}/target/generated/${api.html.file}" tofile="${package.dir}/${api.html.file}"/> + <copy file="${rest.api.dir}/target/generated/swagger-ui/swagger.json" tofile="${basedir}/target/${plugin.name}/${api.json.file}"/> </tasks> </configuration> <goals> @@ -90,7 +63,7 @@ <configuration> <descriptor>assembly/swagger.xml</descriptor> <finalName>${plugin.name}</finalName> - <outputDirectory>${package.dir}</outputDirectory> + <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory> <appendAssemblyId>false</appendAssemblyId> </configuration> <executions> |