Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
niamhcore | f7ba359 | 2020-10-19 12:48:06 +0100 | [diff] [blame] | 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 4 | <modelVersion>4.0.0</modelVersion>
|
| 5 | <artifactId>cps-rest</artifactId>
|
| 6 | <parent>
|
| 7 | <groupId>org.onap.cps</groupId>
|
| 8 | <artifactId>cps</artifactId>
|
| 9 | <version>0.0.1-SNAPSHOT</version>
|
| 10 | </parent>
|
| 11 |
|
| 12 | <dependencies>
|
| 13 |
|
| 14 | <dependency>
|
| 15 | <groupId>org.onap.cps</groupId>
|
| 16 | <artifactId>cps-service</artifactId>
|
| 17 | <version>${project.version}</version>
|
| 18 | </dependency>
|
| 19 |
|
| 20 | <dependency>
|
| 21 | <groupId>org.onap.cps</groupId>
|
| 22 | <artifactId>cps-ri</artifactId>
|
| 23 | <version>${project.version}</version>
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 24 | </dependency>
|
| 25 |
|
| 26 | <dependency>
|
| 27 | <groupId>org.springframework.boot</groupId>
|
Rishi Chail | 2371fe7 | 2020-10-30 12:58:54 +0000 | [diff] [blame^] | 28 | <artifactId>spring-boot-starter-web</artifactId>
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 29 | <exclusions>
|
| 30 | <exclusion>
|
| 31 | <groupId>org.springframework.boot</groupId>
|
| 32 | <artifactId>spring-boot-starter-tomcat</artifactId>
|
| 33 | </exclusion>
|
| 34 | </exclusions>
|
| 35 | </dependency>
|
| 36 |
|
| 37 | <dependency>
|
| 38 | <groupId>org.springframework.boot</groupId>
|
| 39 | <artifactId>spring-boot-starter-jetty</artifactId>
|
| 40 | </dependency>
|
| 41 |
|
Rishi Chail | 14f3af1 | 2020-10-02 09:33:35 +0100 | [diff] [blame] | 42 | <dependency>
|
| 43 | <groupId>io.swagger.core.v3</groupId>
|
| 44 | <artifactId>swagger-annotations</artifactId>
|
| 45 | <version>${swagger.version}</version>
|
| 46 | </dependency>
|
| 47 |
|
| 48 | <dependency>
|
| 49 | <groupId>io.swagger.core.v3</groupId>
|
| 50 | <artifactId>swagger-jaxrs2</artifactId>
|
| 51 | <version>${swagger.version}</version>
|
| 52 | </dependency>
|
niamhcore | 6820538 | 2020-09-23 11:36:33 +0100 | [diff] [blame] | 53 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 54 | <dependency>
|
| 55 | <groupId>org.springframework.boot</groupId>
|
| 56 | <artifactId>spring-boot-starter-test</artifactId>
|
| 57 | <scope>test</scope>
|
| 58 | <exclusions>
|
| 59 | <exclusion>
|
| 60 | <groupId>org.junit.vintage</groupId>
|
| 61 | <artifactId>junit-vintage-engine</artifactId>
|
| 62 | </exclusion>
|
| 63 | </exclusions>
|
| 64 | </dependency>
|
niamhcore | f7ba359 | 2020-10-19 12:48:06 +0100 | [diff] [blame] | 65 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 66 | </dependencies>
|
| 67 |
|
| 68 | <build>
|
| 69 | <plugins>
|
| 70 | <plugin>
|
| 71 | <groupId>org.springframework.boot</groupId>
|
| 72 | <artifactId>spring-boot-maven-plugin</artifactId>
|
| 73 | <version>${springboot.version}</version>
|
| 74 | <executions>
|
| 75 | <execution>
|
| 76 | <goals>
|
| 77 | <goal>repackage</goal>
|
| 78 | </goals>
|
| 79 | </execution>
|
| 80 | </executions>
|
| 81 | </plugin>
|
niamhcore | f7ba359 | 2020-10-19 12:48:06 +0100 | [diff] [blame] | 82 |
|
| 83 | <plugin>
|
Bruno Sakoto | 49c88d9 | 2020-10-06 22:09:58 -0400 | [diff] [blame] | 84 | <!-- Download Swagger UI webjar. -->
|
| 85 | <groupId>org.apache.maven.plugins</groupId>
|
| 86 | <artifactId>maven-dependency-plugin</artifactId>
|
| 87 | <version>${maven-dependency-plugin.version}</version>
|
| 88 | <executions>
|
| 89 | <execution>
|
| 90 | <phase>prepare-package</phase>
|
| 91 | <goals>
|
| 92 | <goal>unpack</goal>
|
| 93 | </goals>
|
| 94 | <configuration>
|
| 95 | <artifactItems>
|
| 96 | <artifactItem>
|
| 97 | <groupId>org.webjars</groupId>
|
| 98 | <artifactId>swagger-ui</artifactId>
|
| 99 | <version>${swagger-ui.version}</version>
|
| 100 | </artifactItem>
|
| 101 | </artifactItems>
|
niamhcore | f7ba359 | 2020-10-19 12:48:06 +0100 | [diff] [blame] | 102 | <outputDirectory>
|
| 103 | ${project.build.directory}/swagger-ui-${swagger-ui.version}
|
| 104 | </outputDirectory>
|
Bruno Sakoto | 49c88d9 | 2020-10-06 22:09:58 -0400 | [diff] [blame] | 105 | </configuration>
|
| 106 | </execution>
|
| 107 | </executions>
|
| 108 | </plugin>
|
| 109 | <plugin>
|
| 110 | <!-- Copy Swagger UI resources to static resources directory. -->
|
| 111 | <groupId>org.apache.maven.plugins</groupId>
|
| 112 | <artifactId>maven-resources-plugin</artifactId>
|
| 113 | <version>${maven-resources-plugin.version}</version>
|
| 114 | <executions>
|
| 115 | <execution>
|
| 116 | <id>copy-resources</id>
|
| 117 | <phase>prepare-package</phase>
|
| 118 | <goals>
|
| 119 | <goal>copy-resources</goal>
|
| 120 | </goals>
|
| 121 | <configuration>
|
niamhcore | f7ba359 | 2020-10-19 12:48:06 +0100 | [diff] [blame] | 122 | <outputDirectory>${project.build.outputDirectory}/static/swagger-ui
|
| 123 | </outputDirectory>
|
Bruno Sakoto | 49c88d9 | 2020-10-06 22:09:58 -0400 | [diff] [blame] | 124 | <resources>
|
| 125 | <resource>
|
niamhcore | f7ba359 | 2020-10-19 12:48:06 +0100 | [diff] [blame] | 126 | <directory>
|
| 127 | ${project.build.directory}/swagger-ui-${swagger-ui.version}/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/
|
| 128 | </directory>
|
Bruno Sakoto | 49c88d9 | 2020-10-06 22:09:58 -0400 | [diff] [blame] | 129 | <excludes>
|
| 130 | <exclude>**/*.gz</exclude>
|
| 131 | </excludes>
|
| 132 | </resource>
|
| 133 | </resources>
|
| 134 | </configuration>
|
| 135 | </execution>
|
| 136 | </executions>
|
| 137 | </plugin>
|
| 138 | <plugin>
|
| 139 | <!-- Replace the OpenAPI specification example URL with the local one. -->
|
| 140 | <groupId>com.google.code.maven-replacer-plugin</groupId>
|
| 141 | <artifactId>replacer</artifactId>
|
| 142 | <version>${maven-replacer-plugin.version}</version>
|
| 143 | <executions>
|
| 144 | <execution>
|
| 145 | <phase>prepare-package</phase>
|
| 146 | <goals>
|
| 147 | <goal>replace</goal>
|
| 148 | </goals>
|
| 149 | </execution>
|
| 150 | </executions>
|
| 151 | <configuration>
|
| 152 | <file>${project.build.outputDirectory}/static/swagger-ui/index.html</file>
|
| 153 | <replacements>
|
| 154 | <replacement>
|
| 155 | <token>https://petstore.swagger.io/v2/swagger.json</token>
|
| 156 | <value>/api/cps/openapi.json</value>
|
| 157 | </replacement>
|
| 158 | </replacements>
|
| 159 | </configuration>
|
| 160 | </plugin>
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 161 | </plugins>
|
| 162 | </build>
|
| 163 | </project>
|