-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpom.xml
137 lines (137 loc) · 4.26 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.y0ngb1n.samples</groupId>
<artifactId>spring-boot-samples-dependencies</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>./spring-boot-samples-dependencies</relativePath>
</parent>
<groupId>io.github.y0ngb1n.samples</groupId>
<artifactId>spring-boot-samples-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Spring Boot for Learning</name>
<description><![CDATA[This project is a Spring Boot for learning.]]></description>
<url>https://github.com/y0ngb1n/spring-boot-samples</url>
<developers>
<developer>
<id>y0ngb1n</id>
<name>杨斌</name>
<email>[email protected]</email>
<roles>
<role>Project Lead</role>
</roles>
<timezone>Asia/Shanghai</timezone>
</developer>
</developers>
<modules>
<module>samples-datasource-alibaba-druid</module>
<module>samples-distributed-log-elk</module>
<module>samples-search-elasticsearch</module>
<module>samples-search-lucene</module>
<module>spring-boot-samples-custom-starter</module>
<module>spring-boot-samples-dependencies</module>
<module>spring-boot-samples-graphql</module>
<module>spring-boot-samples-monitoring-prometheus-grafana</module>
<module>spring-boot-samples-multi-datasource</module>
<module>spring-boot-samples-swagger</module>
<module>spring-boot-samples-url-shortener</module>
</modules>
<scm>
<connection>scm:git:https://github.com/y0ngb1n/spring-boot-samples.git</connection>
<developerConnection>scm:git:[email protected]:y0ngb1n/spring-boot-samples.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/y0ngb1n/spring-boot-samples</url>
</scm>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>application*.yml</exclude>
</excludes>
</resource>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<includes>
<include>application.yml</include>
<include>application-${profile.active}.yml</include>
</includes>
</resource>
</resources>
</build>
<profiles>
<!-- 开发环境 -->
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profile.active>dev</profile.active>
</properties>
</profile>
<!-- 测试环境 -->
<profile>
<id>fat</id>
<properties>
<profile.active>fat</profile.active>
</properties>
</profile>
<!-- 验收环境 -->
<profile>
<id>uat</id>
<properties>
<profile.active>uat</profile.active>
</properties>
</profile>
<!-- 生产环境 -->
<profile>
<id>prod</id>
<properties>
<profile.active>prod</profile.active>
</properties>
</profile>
<!-- Code Coverage -->
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<phase>test</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>