pom.xml
3.8 KB
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
<?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">
<!-- 以下代码在发布jar包时屏蔽-->
<parent>
<artifactId>Bro-Admin</artifactId>
<groupId>cn.bronet.admin</groupId>
<version>1.0.0</version>
</parent>
<!-- 以下代码在发布jar包时放开-->
<groupId>cn.bronet.admin</groupId>
<modelVersion>4.0.0</modelVersion>
<artifactId>bro-admin-system</artifactId>
<version>${bro-admin-system.version}</version>
<description>
system系统模块
</description>
<properties>
<!-- 环境区分参数 - 开始 -->
<!-- 发布版本 -->
<!-- <bro-admin-system.version>1.0.0</bro-admin-system.version>-->
<!-- 本地使用版本 -->
<bro-admin-system.version>1.0.0-LOCATION</bro-admin-system.version>
<!-- 环境区分参数 - 结束 -->
<!-- 编译配置开始 -->
<!-- JDK版本 -->
<bro-admin.version>1.0.0</bro-admin.version>
<bro-admin.location.version>1.0.0-LOCATION</bro-admin.location.version>
<java.version>1.8</java.version>
<!-- 编译插件版本 -->
<compiler.version>3.1</compiler.version>
<!-- 部署插件版本 -->
<deploy.version>2.8</deploy.version>
<!-- 是否跳过部署到制品仓库 true-跳过,不部署 false-不跳过,部署 -->
<deploy.skip>false</deploy.skip>
<!-- 部署源码插件版本 -->
<source.version>3.0.0</source.version>
<!-- 编译编码 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- 编译配置结束 -->
</properties>
<dependencies>
<!-- 通用工具 -->
<dependency>
<groupId>cn.bronet.admin</groupId>
<artifactId>bro-admin-common</artifactId>
<version>${bro-admin.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${deploy.version}</version>
<configuration>
<skip>${deploy.skip}</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${source.version}</version>
<!-- 绑定source插件到Maven的生命周期,并在生命周期后执行绑定的source的goal -->
<executions>
<execution>
<!-- 绑定source插件到Maven的生命周期 -->
<phase>compile</phase>
<!--在生命周期后执行绑定的source插件的goals -->
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>