1
1
<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" >
2
2
<modelVersion >4.0.0</modelVersion >
3
3
<groupId >es.msanchez.frameworks</groupId >
4
- <version >0.0.1-SNAPSHOT</version >
5
- <name >spring-boot-web-app</name >
6
4
<artifactId >spring-boot-web-app</artifactId >
7
5
8
- <properties >
9
- <!-- maven plugins -->
10
- <maven-compiler-config .version>1.8</maven-compiler-config .version>
11
- <maven-compiler-plugin .version>3.7.0</maven-compiler-plugin .version>
12
- <maven-shade .version>3.1.0</maven-shade .version>
13
-
14
- <!-- normal dependencies -->
15
- <slf4j .version>1.7.25</slf4j .version>
16
- <logback .version>1.2.3</logback .version>
17
- <spring .version>5.0.3.RELEASE</spring .version>
18
- <spring-boot .version>2.0.0.RELEASE</spring-boot .version>
19
- <lombok .version>1.16.20</lombok .version>
20
-
21
- <!-- test dependencies -->
22
- <assertj .version>3.9.0</assertj .version>
23
- <mockito .version>2.13.0</mockito .version>
24
- <powermock .version>1.7.3</powermock .version>
25
- <catch-exception .version>1.4.6</catch-exception .version>
26
- <junit .version>4.12</junit .version>
27
- </properties >
28
-
29
- <dependencies >
30
- <!-- Logger -->
31
- <dependency >
32
- <groupId >org.slf4j</groupId >
33
- <artifactId >slf4j-api</artifactId >
34
- <version >${slf4j.version} </version >
35
- </dependency >
6
+ <parent >
7
+ <groupId >es.msanchez.frameworks</groupId >
8
+ <artifactId >spring-pom</artifactId >
9
+ <version >1.0.0-RELEASE</version >
10
+ <relativePath >../spring-pom/</relativePath >
11
+ </parent >
36
12
37
- <dependency >
38
- <groupId >ch.qos.logback</groupId >
39
- <artifactId >logback-classic</artifactId >
40
- <version >${logback.version} </version >
41
- </dependency >
42
-
43
- <dependency >
44
- <groupId >ch.qos.logback</groupId >
45
- <artifactId >logback-core</artifactId >
46
- <version >${logback.version} </version >
47
- </dependency >
13
+ <dependencies >
48
14
49
- <dependency >
50
- <groupId >org.projectlombok</groupId >
51
- <artifactId >lombok</artifactId >
52
- <version >${lombok.version} </version >
53
- <scope >provided</scope >
54
- </dependency >
55
-
56
15
<!-- Spring -->
57
16
<dependency >
58
17
<groupId >org.springframework.boot</groupId >
59
18
<artifactId >spring-boot-starter</artifactId >
60
- <version >${spring-boot.version} </version >
61
19
</dependency >
62
20
63
21
<dependency >
64
22
<groupId >org.springframework.boot</groupId >
65
23
<artifactId >spring-boot-starter-web</artifactId >
66
- <version >${spring-boot.version} </version >
67
24
</dependency >
68
25
69
-
70
26
<dependency >
71
27
<groupId >org.springframework</groupId >
72
28
<artifactId >spring-context</artifactId >
73
- <version >${spring.version} </version >
74
29
</dependency >
75
30
76
31
<dependency >
77
32
<groupId >org.springframework</groupId >
78
33
<artifactId >spring-core</artifactId >
79
- <version >${spring.version} </version >
80
34
</dependency >
35
+
36
+ <!-- Logger -->
37
+ <dependency >
38
+ <groupId >org.slf4j</groupId >
39
+ <artifactId >slf4j-api</artifactId >
40
+ </dependency >
41
+
42
+ <dependency >
43
+ <groupId >ch.qos.logback</groupId >
44
+ <artifactId >logback-classic</artifactId >
45
+ </dependency >
46
+
47
+ <dependency >
48
+ <groupId >ch.qos.logback</groupId >
49
+ <artifactId >logback-core</artifactId >
50
+ </dependency >
51
+
52
+ <!-- other dependencies -->
53
+ <dependency >
54
+ <groupId >org.projectlombok</groupId >
55
+ <artifactId >lombok</artifactId >
56
+ <scope >provided</scope >
57
+ </dependency >
81
58
82
59
<!-- Test Dependencies -->
83
60
<dependency >
84
61
<groupId >org.assertj</groupId >
85
62
<artifactId >assertj-core</artifactId >
86
- <version >${assertj.version} </version >
87
63
<scope >test</scope >
88
64
</dependency >
89
65
90
66
<dependency >
91
67
<groupId >org.mockito</groupId >
92
68
<artifactId >mockito-core</artifactId >
93
- <version >${mockito.version} </version >
94
- <scope >test</scope >
95
- </dependency >
96
-
97
- <dependency >
98
- <groupId >org.powermock</groupId >
99
- <artifactId >powermock-api-mockito2</artifactId >
100
- <version >${powermock.version} </version >
101
- <scope >test</scope >
102
- </dependency >
103
-
104
- <dependency >
105
- <groupId >eu.codearte.catch-exception</groupId >
106
- <artifactId >catch-exception</artifactId >
107
- <version >${catch-exception.version} </version >
108
69
<scope >test</scope >
109
70
</dependency >
110
71
111
72
<dependency >
112
73
<groupId >junit</groupId >
113
74
<artifactId >junit</artifactId >
114
- <version >${junit.version} </version >
115
- <scope >test</scope >
116
- </dependency >
117
-
118
- <dependency >
119
- <groupId >org.springframework</groupId >
120
- <artifactId >spring-test</artifactId >
121
- <version >${spring.version} </version >
122
75
<scope >test</scope >
123
76
</dependency >
124
77
125
78
<dependency >
126
79
<groupId >org.springframework.boot</groupId >
127
80
<artifactId >spring-boot-starter-test</artifactId >
128
- <version >${spring-boot.version} </version >
129
81
<scope >test</scope >
130
82
</dependency >
131
83
132
84
</dependencies >
133
85
134
86
<build >
135
- <plugins >
136
- <!-- Solves Manifest not found trouble -->
137
- <plugin >
138
- <groupId >org.springframework.boot</groupId >
139
- <artifactId >spring-boot-maven-plugin</artifactId >
140
- <version >${spring-boot.version} </version >
141
- <executions >
142
- <execution >
143
- <goals >
144
- <goal >repackage</goal >
145
- </goals >
146
- </execution >
147
- </executions >
148
- </plugin >
149
-
150
- <!-- Sets the compiler version -->
151
- <plugin >
152
- <groupId >org.apache.maven.plugins</groupId >
153
- <artifactId >maven-compiler-plugin</artifactId >
154
- <version >${maven-compiler-plugin.version} </version >
155
- <configuration >
156
- <source >${maven-compiler-config.version} </source >
157
- <target >${maven-compiler-config.version} </target >
158
- </configuration >
159
- </plugin >
160
- </plugins >
87
+ <plugins >
88
+ <!-- Solves Manifest not found trouble -->
89
+ <plugin >
90
+ <groupId >org.springframework.boot</groupId >
91
+ <artifactId >spring-boot-maven-plugin</artifactId >
92
+ <executions >
93
+ <execution >
94
+ <goals >
95
+ <goal >repackage</goal >
96
+ </goals >
97
+ </execution >
98
+ </executions >
99
+ </plugin >
100
+ </plugins >
161
101
</build >
102
+
162
103
</project >
0 commit comments