cn.endv.tui

cn.endv.tui

  1 <?xml version="1.0" encoding="UTF-8"?>
  2 <project xmlns="http://maven.apache.org/POM/4.0.0"
  3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5     <parent>
  6         <artifactId>endv</artifactId>
  7         <groupId>cn.endv.tui</groupId>
  8         <version>0.0.1</version>
  9         <relativePath>../pom.xml</relativePath>
 10     </parent>
 11     <modelVersion>4.0.0</modelVersion>
 12 
 13     <artifactId>endv-web</artifactId>
 14     <build>
 15         <finalName>endv-web</finalName>
 16         <filters>
 17             <filter>../conf/conf-${deploy.env}.properties</filter>
 18         </filters>
 19         <resources>
 20             <resource>
 21                 <directory>src/main/resources</directory>
 22                 <includes>
 23                     <include>**/*</include>
 24                 </includes>
 25                 <filtering>true</filtering>
 26             </resource>
 27 
 28 <!--            <resource>-->
 29 <!--                <directory>src/main/webapp</directory>-->
 30 <!--            </resource>-->
 31 <!--            <resource>-->
 32 <!--                <directory>src/main/resources</directory>-->
 33 <!--            </resource>-->
 34 <!--            <resource>-->
 35 <!--                <directory>src/main/webapp/WEB-INF/lib</directory>-->
 36 <!--                <targetPath>BOOT-INF/lib</targetPath>-->
 37 <!--            </resource>-->
 38 
 39         </resources>
 40         <plugins>
 41 
 42             <!-- maven-jar-plugin-->
 43             <plugin>
 44                 <artifactId>maven-jar-plugin</artifactId>
 45                 <version>3.0.2</version>
 46                 <configuration>
 47                     <!-- Configuration of the archiver -->
 48                     <archive>
 49                         <!--生成的jar中,不要包含pom.xml和pom.properties这两个文件-->
 50                         <addMavenDescriptor>false</addMavenDescriptor>
 51                         <!-- Manifest specific configuration -->
 52                         <manifest>
 53                             <!--是否要把第三方jar放到manifest的classpath中-->
 54                             <addClasspath>true</addClasspath>
 55                             <!--生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/-->
 56                             <classpathPrefix>lib/</classpathPrefix>
 57                             <!--<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
 58                             <addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>-->
 59                             <!--应用的main class-->
 60                             <mainClass>cn.endv.web.AppLauncher</mainClass>
 61                         </manifest>
 62                         <manifestEntries>
 63                             <Main-Verticle>cn.endv.web.AppServer</Main-Verticle>
 64                         </manifestEntries>
 65                     </archive>
 66                 </configuration>
 67                 <executions>
 68                     <execution>
 69                         <phase>package</phase>
 70                     </execution>
 71                 </executions>
 72             </plugin>
 73 
 74             <!-- maven-assembly-plugin-->
 75             <plugin>
 76                 <artifactId>maven-assembly-plugin</artifactId>
 77                 <version>2.6</version>
 78                 <configuration>
 79                     <finalName>mpns</finalName>
 80                     <descriptors>
 81                         <descriptor>assembly.xml</descriptor>
 82                     </descriptors>
 83                 </configuration>
 84                 <executions>
 85                     <execution>
 86                         <phase>package</phase>
 87                         <goals>
 88                             <goal>single</goal>
 89                         </goals>
 90                     </execution>
 91                 </executions>
 92             </plugin>
 93 
 94             <!-- maven-compiler-plugin-->
 95             <plugin>
 96                 <artifactId>maven-compiler-plugin</artifactId>
 97                 <version>3.6.2</version>
 98                 <configuration>
 99                     <source>${java.version}</source>
100                     <target>${java.version}</target>
101                     <encoding>${java.encoding}</encoding>
102                 </configuration>
103             </plugin>
104             <!-- maven-resources-plugin-->
105             <plugin>
106                 <version>3.1.0</version>
107                 <artifactId>maven-resources-plugin</artifactId>
108                 <configuration>
109                     <encoding>${java.encoding}</encoding>
110                 </configuration>
111             </plugin>
112             <!-- maven-surefire-plugin-->
113             <plugin>
114                 <version>3.0.0-M3</version>
115                 <artifactId>maven-surefire-plugin</artifactId>
116                 <configuration>
117                     <skip>true</skip>
118                 </configuration>
119             </plugin>
120 
121         </plugins>
122 
123 
124 
125     </build>
126     <dependencies>
127         <dependency>
128             <groupId>mysql</groupId>
129             <artifactId>mysql-connector-java</artifactId>
130             <version>8.0.18</version>
131             <scope>compile</scope>
132             <exclusions>
133                 <exclusion>
134                     <artifactId>protobuf-java</artifactId>
135                     <groupId>com.google.protobuf</groupId>
136                 </exclusion>
137             </exclusions>
138         </dependency>
139         <dependency>
140             <groupId>com.zaxxer</groupId>
141             <artifactId>HikariCP</artifactId>
142             <version>3.4.1</version>
143             <exclusions>
144                 <exclusion>
145                     <artifactId>slf4j-api</artifactId>
146                     <groupId>org.slf4j</groupId>
147                 </exclusion>
148             </exclusions>
149         </dependency>
150         <dependency>
151             <artifactId>slf4j-nop</artifactId>
152             <groupId>org.slf4j</groupId>
153             <version>${slf4j.version}</version>
154         </dependency>
155         <!--        <dependency>-->
156         <!--            <groupId>io.vertx</groupId>-->
157         <!--            <artifactId>vertx-core</artifactId>-->
158         <!--            <version>3.4.2</version>-->
159         <!--            <exclusions>-->
160         <!--                <exclusion>-->
161         <!--                    <artifactId>netty-common</artifactId>-->
162         <!--                    <groupId>io.netty</groupId>-->
163         <!--                </exclusion>-->
164         <!--                <exclusion>-->
165         <!--                    <artifactId>netty-codec</artifactId>-->
166         <!--                    <groupId>io.netty</groupId>-->
167         <!--                </exclusion>-->
168         <!--                <exclusion>-->
169         <!--                    <artifactId>netty-codec-http</artifactId>-->
170         <!--                    <groupId>io.netty</groupId>-->
171         <!--                </exclusion>-->
172         <!--                <exclusion>-->
173         <!--                    <artifactId>netty-handler</artifactId>-->
174         <!--                    <groupId>io.netty</groupId>-->
175         <!--                </exclusion>-->
176         <!--                <exclusion>-->
177         <!--                    <artifactId>netty-transport</artifactId>-->
178         <!--                    <groupId>io.netty</groupId>-->
179         <!--                </exclusion>-->
180         <!--                <exclusion>-->
181         <!--                    <artifactId>jackson-core</artifactId>-->
182         <!--                    <groupId>com.fasterxml.jackson.core</groupId>-->
183         <!--                </exclusion>-->
184         <!--                <exclusion>-->
185         <!--                    <artifactId>netty-resolver</artifactId>-->
186         <!--                    <groupId>io.netty</groupId>-->
187         <!--                </exclusion>-->
188         <!--            </exclusions>-->
189         <!--        </dependency>-->
190         <dependency>
191             <groupId>io.vertx</groupId>
192             <artifactId>vertx-web</artifactId>
193             <version>${vertx.version}</version>
194             <!--            <exclusions>-->
195             <!--                <exclusion>-->
196             <!--                    <artifactId>vertx-core</artifactId>-->
197             <!--                    <groupId>io.vertx</groupId>-->
198             <!--                </exclusion>-->
199             <!--            </exclusions>-->
200         </dependency>
201         <!--        <dependency>-->
202         <!--            <groupId>cn.endv.tui</groupId>-->
203         <!--            <artifactId>endv-core</artifactId>-->
204         <!--            <exclusions>-->
205         <!--                <exclusion>-->
206         <!--                    <artifactId>netty-buffer</artifactId>-->
207         <!--                    <groupId>io.netty</groupId>-->
208         <!--                </exclusion>-->
209 
210         <!--            </exclusions>-->
211         <!--        </dependency>-->
212         <dependency>
213             <groupId>org.springframework</groupId>
214             <artifactId>spring-context</artifactId>
215             <version>5.1.8.RELEASE</version>
216             <!--            <version>4.3.2.RELEASE</version>-->
217 
218         </dependency>
219         <!-- Java Mail API -->
220         <dependency>
221             <groupId>javax.mail</groupId>
222             <artifactId>mail</artifactId>
223             <version>1.5.0-b01</version>
224         </dependency>
225 
226         <dependency>
227             <groupId>io.vertx</groupId>
228             <artifactId>vertx-web-client</artifactId>
229             <version>${vertx.version}</version>
230         </dependency>
231 
232         <dependency>
233             <groupId>cn.endv.tui</groupId>
234             <artifactId>endv-sdk</artifactId>
235         </dependency>
236         <dependency>
237             <groupId>org.thymeleaf</groupId>
238             <artifactId>thymeleaf</artifactId>
239             <version>3.0.11.RELEASE</version>
240         </dependency>
241 <!--        <dependency>-->
242 <!--            <groupId>com.github.binarywang</groupId>-->
243 <!--            <artifactId>weixin-java-pay</artifactId>-->
244 <!--            <version>3.7.0</version>-->
245 
246 <!--        </dependency>-->
247         <dependency>
248             <groupId>com.alipay.sdk</groupId>
249             <artifactId>alipay-sdk-java</artifactId>
250             <version>4.9.106.ALL</version>
251 <!--            <scope>system</scope>-->
252 <!--            <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/alipay-sdk-java-4.9.106.ALL.jar</systemPath>-->
253         </dependency>
254 
255         <!--        <dependency>-->
256         <!--            <groupId>io.vertx</groupId>-->
257         <!--            <artifactId>vertx-rx-java2</artifactId>-->
258         <!--            <version>3.8.4</version>-->
259         <!--        </dependency>-->
260 <!--        <dependency>-->
261 <!--            <groupId>com.fasterxml.jackson.core</groupId>-->
262 <!--            <artifactId>jackson-core</artifactId>-->
263 <!--            <version>2.9.10</version>-->
264 <!--        </dependency>-->
265 
266 <!--        <dependency>-->
267 <!--            <groupId>org.apache.httpcomponents</groupId>-->
268 <!--            <artifactId>httpclient</artifactId>-->
269 <!--            <version>4.5.6</version>-->
270 <!--        </dependency>-->
271     </dependencies>
272 
273 
274     <properties>
275         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
276         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
277         <java.encoding>UTF-8</java.encoding>
278         <java.version>1.8</java.version>
279     </properties>
280 
281     <profiles>
282         <!--deploy env-->
283         <profile>
284             <id>dev</id>
285             <properties>
286                 <deploy.env>dev</deploy.env>
287             </properties>
288         </profile>
289         <profile>
290             <id>daily</id>
291             <properties>
292                 <deploy.env>daily</deploy.env>
293             </properties>
294             <activation>
295                 <activeByDefault>true</activeByDefault>
296             </activation>
297         </profile>
298         <profile>
299             <id>online</id>
300             <properties>
301                 <deploy.env>online</deploy.env>
302             </properties>
303         </profile>
304     </profiles>
305 </project>
cn.endv.tui
原文地址:https://www.cnblogs.com/endv/p/12677508.html