|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + <groupId>${groupId}</groupId> |
| 7 | + <artifactId>${serviceId}-service-api</artifactId> |
| 8 | + <version>${version}-SNAPSHOT</version> |
| 9 | + |
| 10 | + <properties> |
| 11 | + <java.version>11</java.version> |
| 12 | + <maven.compiler.source>11</maven.compiler.source> |
| 13 | + <maven.compiler.target>11</maven.compiler.target> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + <project.build.testSourceEncoding>UTF-8</project.build.testSourceEncoding> |
| 16 | + <springfox-version>2.9.2</springfox-version> |
| 17 | + </properties> |
| 18 | + |
| 19 | + <parent> |
| 20 | + <groupId>org.springframework.boot</groupId> |
| 21 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 22 | + <version>2.4.3</version> |
| 23 | + </parent> |
| 24 | + |
| 25 | + <dependencies> |
| 26 | + <dependency> |
| 27 | + <groupId>org.springframework.boot</groupId> |
| 28 | + <artifactId>spring-boot-starter-web</artifactId> |
| 29 | + </dependency> |
| 30 | + <!--SpringFox dependencies --> |
| 31 | + <dependency> |
| 32 | + <groupId>io.springfox</groupId> |
| 33 | + <artifactId>springfox-swagger2</artifactId> |
| 34 | + <version>${springfox-version}</version> |
| 35 | + </dependency> |
| 36 | + <dependency> |
| 37 | + <groupId>io.springfox</groupId> |
| 38 | + <artifactId>springfox-swagger-ui</artifactId> |
| 39 | + <version>${springfox-version}</version> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>javax.xml.bind</groupId> |
| 43 | + <artifactId>jaxb-api</artifactId> |
| 44 | + <version>2.3.1</version> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 48 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 49 | + </dependency> |
| 50 | + <dependency> |
| 51 | + <groupId>org.openapitools</groupId> |
| 52 | + <artifactId>jackson-databind-nullable</artifactId> |
| 53 | + <version>0.2.1</version> |
| 54 | + </dependency> |
| 55 | + <!-- Bean Validation API support --> |
| 56 | + <dependency> |
| 57 | + <groupId>javax.validation</groupId> |
| 58 | + <artifactId>validation-api</artifactId> |
| 59 | + </dependency> |
| 60 | + |
| 61 | + <dependency> |
| 62 | + <groupId>${project.groupId}</groupId> |
| 63 | + <artifactId>${serviceId}-service-appservice</artifactId> |
| 64 | + <version>${project.version}</version> |
| 65 | + </dependency> |
| 66 | + |
| 67 | + <dependency> |
| 68 | + <groupId>org.springframework.boot</groupId> |
| 69 | + <artifactId>spring-boot-starter-test</artifactId> |
| 70 | + <scope>test</scope> |
| 71 | + <exclusions> |
| 72 | + <exclusion> |
| 73 | + <groupId>org.junit.vintage</groupId> |
| 74 | + <artifactId>junit-vintage-engine</artifactId> |
| 75 | + </exclusion> |
| 76 | + </exclusions> |
| 77 | + </dependency> |
| 78 | + </dependencies> |
| 79 | + |
| 80 | + <build> |
| 81 | + <plugins> |
| 82 | + <plugin> |
| 83 | + <artifactId>maven-dependency-plugin</artifactId> |
| 84 | + <executions> |
| 85 | + <execution> |
| 86 | + <id>unpack</id> |
| 87 | + <phase>generate-resources</phase> |
| 88 | + <goals> |
| 89 | + <goal>unpack</goal> |
| 90 | + </goals> |
| 91 | + <configuration> |
| 92 | + <artifactItems> |
| 93 | + <artifactItem> |
| 94 | + <groupId>${project.groupId}</groupId> |
| 95 | + <artifactId>${serviceId}-service-controller</artifactId> |
| 96 | + <version>${project.version}</version> |
| 97 | + </artifactItem> |
| 98 | + </artifactItems> |
| 99 | + <includes>BOOT-INF/classes/**/*</includes> |
| 100 | + </configuration> |
| 101 | + </execution> |
| 102 | + </executions> |
| 103 | + </plugin> |
| 104 | + <plugin> |
| 105 | + <artifactId>maven-resources-plugin</artifactId> |
| 106 | + <configuration> |
| 107 | + <resources> |
| 108 | + <resource> |
| 109 | + <directory>${basedir}/target/dependency/BOOT-INF/classes</directory> |
| 110 | + </resource> |
| 111 | + </resources> |
| 112 | + <outputDirectory>${basedir}/target/classes</outputDirectory> |
| 113 | + </configuration> |
| 114 | + </plugin> |
| 115 | + <plugin> |
| 116 | + <groupId>org.springframework.boot</groupId> |
| 117 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <goals> |
| 121 | + <goal>repackage</goal> |
| 122 | + </goals> |
| 123 | + </execution> |
| 124 | + </executions> |
| 125 | + </plugin> |
| 126 | + </plugins> |
| 127 | + </build> |
| 128 | + |
| 129 | +</project> |
0 commit comments