Blame view

huaheng-wms-core/pom.xml 9.97 KB
肖超群 authored
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">
肖超群 authored
4
5
6
7
8
9
10
11
12
13
14
    <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>
15
16
17
18
19
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.build.timestamp.format>yyyy-MM-dd-HH</maven.build.timestamp.format>
    </properties>
肖超群 authored
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    <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>
35
肖超群 authored
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
        <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>
64
65
    <build>
谭毅彬 authored
66
        <defaultGoal>compile</defaultGoal>
67
        <finalName>${project.artifactId}-${build.time}</finalName>
68
        <plugins>
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>timestamp-property</id>
                        <goals>
                            <goal>timestamp-property</goal>
                        </goals>
                        <configuration>
                            <name>build.time</name>
                            <pattern>yyyy-MM-dd-HH</pattern>
                            <locale>en_US</locale>
                            <timeZone>GMT+8</timeZone>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
87
            <!-- 指定JDK编译版本 -->
88
89
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
90
                <artifactId>maven-compiler-plugin</artifactId>
91
                <configuration>
92
93
94
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
95
96
                </configuration>
            </plugin>
97
            <!-- 打包跳过测试 -->
98
99
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
100
                <artifactId>maven-surefire-plugin</artifactId>
101
                <configuration>
102
                    <skipTests>true</skipTests>
103
                </configuration>
104
105
106
107
108
            </plugin>
            <!-- 将依赖jar文件复制到lib目录 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
109
110
                <executions>
                    <execution>
111
112
                        <id>copy-dependencies</id>
                        <phase>package</phase>
113
                        <goals>
114
                            <goal>copy-dependencies</goal>
115
116
                        </goals>
                        <configuration>
117
118
119
120
121
122
123
124
125
                            <!-- ${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>
126
127
128
129
                        </configuration>
                    </execution>
                </executions>
            </plugin>
130
            <!-- 生成jar包文件 -->
131
            <plugin>
132
133
134
                <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 -->
135
                <configuration>
136
137
138
139
140
141
142
143
                    <mainClass>org.jeecg.JeecgSystemApplication</mainClass>
                    <layout>ZIP</layout>
                    <includes>
                        <include>
                            <groupId>org.jeecgframework.boot</groupId>
                            <artifactId>jeecg-boot-base-core</artifactId>
                        </include>
                    </includes>
144
                </configuration>
145
146
147
148
149
150
151
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
152
            </plugin>
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
        </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>
肖超群 authored
169
170
171
172
173
174
175

    <!-- 环境 -->
    <profiles>
        <!-- 开发 -->
        <profile>
            <id>dev</id>
            <activation>
176
                <!-- 默认激活配置 -->
肖超群 authored
177
178
179
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
180
                <!-- 当前环境 -->
肖超群 authored
181
                <profile.name>dev</profile.name>
182
                <!-- 配置文件前缀 -->
肖超群 authored
183
                <prefix.name>jeecg</prefix.name>
184
                <!-- Nacos配置中心地址 -->
肖超群 authored
185
                <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
186
                <!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
肖超群 authored
187
                <config.namespace></config.namespace>
188
                <!-- Nacos用户名 -->
肖超群 authored
189
                <config.username>nacos</config.username>
190
                <!-- Nacos密码 -->
肖超群 authored
191
                <config.password>nacos</config.password>
192
                <!-- Nacos配置分组名称 -->
肖超群 authored
193
                <config.group>DEFAULT_GROUP</config.group>
194
                <!-- Nacos服务发现地址 -->
肖超群 authored
195
196
197
198
199
200
201
                <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
            </properties>
        </profile>
        <!-- 测试 -->
        <profile>
            <id>test</id>
            <properties>
202
                <!-- 当前环境 -->
肖超群 authored
203
                <profile.name>test</profile.name>
204
                <!-- 配置文件前缀 -->
肖超群 authored
205
                <prefix.name>jeecg</prefix.name>
206
                <!-- Nacos配置中心地址 -->
肖超群 authored
207
                <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
208
                <!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
肖超群 authored
209
                <config.namespace></config.namespace>
210
                <!-- Nacos用户名 -->
肖超群 authored
211
                <config.username>nacos</config.username>
212
                <!-- Nacos密码 -->
肖超群 authored
213
                <config.password>nacos</config.password>
214
                <!-- Nacos配置分组名称 -->
肖超群 authored
215
                <config.group>DEFAULT_GROUP</config.group>
216
                <!-- Nacos服务发现地址 -->
肖超群 authored
217
218
219
220
221
222
223
                <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
            </properties>
        </profile>
        <!-- 生产 -->
        <profile>
            <id>prod</id>
            <properties>
224
                <!-- 当前环境,生产环境为空 -->
肖超群 authored
225
                <profile.name>prod</profile.name>
226
                <!-- 配置文件前缀 -->
肖超群 authored
227
                <prefix.name>jeecg</prefix.name>
228
                <!-- Nacos配置中心地址 -->
肖超群 authored
229
                <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
230
                <!-- Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空 -->
肖超群 authored
231
                <config.namespace></config.namespace>
232
                <!-- Nacos用户名 -->
肖超群 authored
233
                <config.username>nacos</config.username>
234
                <!-- Nacos密码 -->
肖超群 authored
235
                <config.password>nacos</config.password>
236
                <!-- Nacos配置分组名称 -->
肖超群 authored
237
                <config.group>DEFAULT_GROUP</config.group>
238
                <!-- Nacos服务发现地址 -->
肖超群 authored
239
240
241
242
                <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
            </properties>
        </profile>
    </profiles>
肖超群 authored
243
</project>