|
@@ -54,6 +54,8 @@
|
54
|
54
|
<mysql.version>5.1.48</mysql.version>
|
55
|
55
|
|
56
|
56
|
<bpm.version>0.0.1</bpm.version>
|
|
57
|
+
|
|
58
|
+ <mapstruct.version>1.4.2.Final</mapstruct.version>
|
57
|
59
|
</properties>
|
58
|
60
|
<dependencyManagement>
|
59
|
61
|
<dependencies>
|
|
@@ -162,6 +164,11 @@
|
162
|
164
|
<artifactId>mysql-connector-java</artifactId>
|
163
|
165
|
<version>${mysql.version}</version>
|
164
|
166
|
</dependency>
|
|
167
|
+ <dependency>
|
|
168
|
+ <groupId>org.mapstruct</groupId>
|
|
169
|
+ <artifactId>mapstruct</artifactId>
|
|
170
|
+ <version>${mapstruct.version}</version>
|
|
171
|
+ </dependency>
|
165
|
172
|
</dependencies>
|
166
|
173
|
</dependencyManagement>
|
167
|
174
|
<dependencies>
|
|
@@ -191,30 +198,34 @@
|
191
|
198
|
<url>http://code.jing-tong.com:3000/jie.zhang/maven2/raw/master/</url>
|
192
|
199
|
</repository>
|
193
|
200
|
</repositories>
|
194
|
|
- <build>
|
195
|
|
- <plugins>
|
196
|
|
- <plugin>
|
197
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
198
|
|
- <artifactId>maven-source-plugin</artifactId>
|
199
|
|
- <version>2.4</version>
|
200
|
|
- <executions>
|
201
|
|
- <execution>
|
202
|
|
- <id>attach-sources</id>
|
203
|
|
- <phase>verify</phase><!-- 要绑定到的生命周期的阶段 在verify之后,install之前执行下面指定的goal -->
|
204
|
|
- <goals>
|
205
|
|
- <goal>jar-no-fork</goal><!-- 类似执行mvn source:jar -->
|
206
|
|
- </goals>
|
207
|
|
- </execution>
|
208
|
|
- </executions>
|
209
|
|
- </plugin>
|
210
|
|
- </plugins>
|
211
|
|
- <extensions>
|
212
|
|
- <extension>
|
213
|
|
- <groupId>kr.motd.maven</groupId>
|
214
|
|
- <artifactId>os-maven-plugin
|
215
|
|
- </artifactId><!--引入操作系统os设置的属性插件,否则${os.detected.classifier} 操作系统版本会找不到 -->
|
216
|
|
- <version>1.5.0.Final</version>
|
217
|
|
- </extension>
|
218
|
|
- </extensions>
|
219
|
|
- </build>
|
|
201
|
+ <build>
|
|
202
|
+ <plugins>
|
|
203
|
+ <plugin>
|
|
204
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
205
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
206
|
+ <version>3.8.1</version>
|
|
207
|
+ <configuration>
|
|
208
|
+ <source>1.8</source>
|
|
209
|
+ <target>1.8</target>
|
|
210
|
+ <annotationProcessorPaths>
|
|
211
|
+ <path>
|
|
212
|
+ <groupId>org.mapstruct</groupId>
|
|
213
|
+ <artifactId>mapstruct-processor</artifactId>
|
|
214
|
+ <version>${mapstruct.version}</version>
|
|
215
|
+ </path>
|
|
216
|
+ <path>
|
|
217
|
+ <groupId>org.projectlombok</groupId>
|
|
218
|
+ <artifactId>lombok</artifactId>
|
|
219
|
+ <version>1.18.16</version>
|
|
220
|
+ </path>
|
|
221
|
+ <path>
|
|
222
|
+ <groupId>org.projectlombok</groupId>
|
|
223
|
+ <artifactId>lombok-mapstruct-binding</artifactId>
|
|
224
|
+ <version>0.2.0</version>
|
|
225
|
+ </path>
|
|
226
|
+ </annotationProcessorPaths>
|
|
227
|
+ </configuration>
|
|
228
|
+ </plugin>
|
|
229
|
+ </plugins>
|
|
230
|
+ </build>
|
220
|
231
|
</project>
|