Add profile for generating Swagger documents

This commit adds a profile for generating Swagger documents and creating
a tarball containing the swagger.json, swagger.html, and swagger.pdf
files.

The profile is triggered in any module when tsts are enabled (In other
words when the skipTests flag is off), and when the following proerty is
set:
        <swagger.generation.phase>post-integration-test</swagger.generation.phase>

This profile assumes that a unit test exists that creates the following
file:
target/swagger/swagger.json

If this file does not exist, the build will fail if the profile is
invoked.

Therefore, to generate the Swagger documentation tarball, a module must
set the swagger.generation.phase propety AND have a unit test that
generates the swagger.json file.

Issue-ID: POLICY-3424
Change-Id: I8ff769e7a28bf0e00969d1bc677fee6908951d8a
Signed-off-by: liamfallon <liam.fallon@est.tech>
9 files changed
tree: 1c78e59e063afc9f8cffc96d6b71bc550c55975f
  1. docs/
  2. integration/
  3. releases/
  4. resources/
  5. .gitignore
  6. .gitreview
  7. .readthedocs.yaml
  8. INFO.yaml
  9. LICENSE.txt
  10. onap-java-formatter.xml
  11. pom.xml
  12. README.md
  13. version.properties
README.md

Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains the ONAP Policy Parent repository that contains overarching build pom.xml to build ALL the repos under policy/*

To build it using Maven 3, run: mvn clean install