|
1
2
|
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
3
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
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
|
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.huaheng.wms</groupId>
<artifactId>huaheng-wms4</artifactId>
<version>4.0.1</version>
</parent>
<artifactId>huaheng-wms-core</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-system-local-api</artifactId>
</dependency>
<dependency>
<groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-boot-base-core</artifactId>
</dependency>
|
|
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
|
<dependency>
<groupId>com.github.abel533</groupId>
<artifactId>ECharts</artifactId>
<version>3.0.0.5</version>
</dependency>
<!-- jeewx api -->
<dependency>
<groupId>org.jeecgframework</groupId>
<artifactId>jeewx-api</artifactId>
<version>1.4.7</version>
<exclusions>
<exclusion>
<artifactId>commons-beanutils</artifactId>
<groupId>commons-beanutils</groupId>
</exclusion>
<exclusion>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- 积木报表 -->
<dependency>
<groupId>org.jeecgframework.jimureport</groupId>
<artifactId>jimureport-spring-boot-starter</artifactId>
<version>1.4.32</version>
</dependency>
</dependencies>
|
|
59
|
|
|
60
61
|
<build>
<plugins>
|
|
62
|
<!-- 指定JDK编译版本 -->
|
|
63
64
|
<plugin>
<groupId>org.apache.maven.plugins</groupId>
|
|
65
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
66
|
<configuration>
|
|
67
68
69
|
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
|
|
70
71
|
</configuration>
</plugin>
|
|
72
|
<!-- 打包跳过测试 -->
|
|
73
74
|
<plugin>
<groupId>org.apache.maven.plugins</groupId>
|
|
75
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
76
|
<configuration>
|
|
77
|
<skipTests>true</skipTests>
|
|
78
|
</configuration>
|
|
79
80
81
82
83
|
</plugin>
<!-- 将依赖jar文件复制到lib目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
|
|
84
85
|
<executions>
<execution>
|
|
86
87
|
<id>copy-dependencies</id>
<phase>package</phase>
|
|
88
|
<goals>
|
|
89
|
<goal>copy-dependencies</goal>
|
|
90
91
|
</goals>
<configuration>
|
|
92
93
94
95
96
97
98
99
100
|
<!-- ${project.build.directory}maven内置变量 表示target目录 不写将在根目录下创建 -->
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<!-- excludeTransitive:是否不包含间接依赖包 -->
<excludeTransitive>false</excludeTransitive>
<!-- 复制的jar文件是否去掉版本信息 -->
<stripVersion>false</stripVersion>
<includeScope>runtime</includeScope>
<!-- 排除jar包 -->
<excludeArtifactIds>jeecg-boot-base-core</excludeArtifactIds>
|
|
101
102
103
104
|
</configuration>
</execution>
</executions>
</plugin>
|
|
105
|
<!-- 生成jar包文件 -->
|
|
106
|
<plugin>
|
|
107
108
109
|
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!-- 引用外部lib文件夹启动jar包:java -jar -Dloader.path=./lib huaheng-wms-core-4.0.1.jar -->
|
|
110
|
<configuration>
|
|
111
112
113
114
115
116
117
118
|
<mainClass>org.jeecg.JeecgSystemApplication</mainClass>
<layout>ZIP</layout>
<includes>
<include>
<groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-boot-base-core</artifactId>
</include>
</includes>
|
|
119
|
</configuration>
|
|
120
121
122
123
124
125
126
|
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
|
|
127
|
</plugin>
|
|
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.json</include>
<include>**/*.ftl</include>
</includes>
</resource>
</resources>
</build>
|
|
144
145
146
147
148
149
150
|
<!-- 环境 -->
<profiles>
<!-- 开发 -->
<profile>
<id>dev</id>
<activation>
|
|
151
|
<!-- 默认激活配置 -->
|
|
152
153
154
|
<activeByDefault>true</activeByDefault>
</activation>
<properties>
|
|
155
|
<!-- 当前环境 -->
|
|
156
|
<profile.name>dev</profile.name>
|
|
157
|
<!-- 配置文件前缀 -->
|
|
158
|
<prefix.name>jeecg</prefix.name>
|
|
159
|
<!-- Nacos配置中心地址 -->
|
|
160
|
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
|
|
161
|
<!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
|
|
162
|
<config.namespace></config.namespace>
|
|
163
|
<!-- Nacos用户名 -->
|
|
164
|
<config.username>nacos</config.username>
|
|
165
|
<!-- Nacos密码 -->
|
|
166
|
<config.password>nacos</config.password>
|
|
167
|
<!-- Nacos配置分组名称 -->
|
|
168
|
<config.group>DEFAULT_GROUP</config.group>
|
|
169
|
<!-- Nacos服务发现地址 -->
|
|
170
171
172
173
174
175
176
|
<discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
</properties>
</profile>
<!-- 测试 -->
<profile>
<id>test</id>
<properties>
|
|
177
|
<!-- 当前环境 -->
|
|
178
|
<profile.name>test</profile.name>
|
|
179
|
<!-- 配置文件前缀 -->
|
|
180
|
<prefix.name>jeecg</prefix.name>
|
|
181
|
<!-- Nacos配置中心地址 -->
|
|
182
|
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
|
|
183
|
<!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
|
|
184
|
<config.namespace></config.namespace>
|
|
185
|
<!-- Nacos用户名 -->
|
|
186
|
<config.username>nacos</config.username>
|
|
187
|
<!-- Nacos密码 -->
|
|
188
|
<config.password>nacos</config.password>
|
|
189
|
<!-- Nacos配置分组名称 -->
|
|
190
|
<config.group>DEFAULT_GROUP</config.group>
|
|
191
|
<!-- Nacos服务发现地址 -->
|
|
192
193
194
195
196
197
198
|
<discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
</properties>
</profile>
<!-- 生产 -->
<profile>
<id>prod</id>
<properties>
|
|
199
|
<!-- 当前环境,生产环境为空 -->
|
|
200
|
<profile.name>prod</profile.name>
|
|
201
|
<!-- 配置文件前缀 -->
|
|
202
|
<prefix.name>jeecg</prefix.name>
|
|
203
|
<!-- Nacos配置中心地址 -->
|
|
204
|
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
|
|
205
|
<!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
|
|
206
|
<config.namespace></config.namespace>
|
|
207
|
<!-- Nacos用户名 -->
|
|
208
|
<config.username>nacos</config.username>
|
|
209
|
<!-- Nacos密码 -->
|
|
210
|
<config.password>nacos</config.password>
|
|
211
|
<!-- Nacos配置分组名称 -->
|
|
212
|
<config.group>DEFAULT_GROUP</config.group>
|
|
213
|
<!-- Nacos服务发现地址 -->
|
|
214
215
216
217
|
<discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
</properties>
</profile>
</profiles>
|
|
218
|
</project>
|