[quote]
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zyd.orders</groupId>
<artifactId>placeorder_user</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>placeorder_user</name>
<description>用户管理模块</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<outputDirectory>C:/danny/dev_tool/apache-tomcat-7.0.79/webapps</outputDirectory>
<start-class>com.zyd.orders.placeorder.SpringBootStartApplication</start-class>
</properties>
<dependencies>
<dependency>
<groupId>org.sweeter</groupId>
<artifactId>sweeter2</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.zyd.orders</groupId>
<artifactId>placeorder_common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.sweeter</groupId>
<artifactId>sweeter2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.zyd.orders</groupId>
<artifactId>placeorder_product</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
</dependency>
<!--获取手机号归属地需要-->
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>geocoder</artifactId>
<version>2.15</version>
</dependency>
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>libphonenumber</artifactId>
<version>6.3</version>
</dependency>
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>prefixmapper</artifactId>
<version>2.15</version>
</dependency>
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>carrier</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<version>2.0.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>5.0.5.RELEASE</version>
</dependency>
<!-- 大汉三通 -->
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-starter-web</artifactId> -->
<!-- 移除嵌入式tomcat插件 -->
<!-- <exclusions> -->
<!-- <exclusion> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-starter-tomcat</artifactId> -->
<!-- </exclusion> -->
<!-- </exclusions> -->
<!-- <version>2.0.3.RELEASE</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>javax.servlet</groupId> -->
<!-- <artifactId>javax.servlet-api</artifactId> -->
<!-- <version>3.1.0</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>org.apache.tomcat</groupId> -->
<!-- <artifactId>tomcat-servlet-api</artifactId> -->
<!-- <version>8.0.36</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- scope=provided,当打包成war时不会将tomcat.jar打包进去;当直接eclipse执行DemoApplication时需要
一定要配置<scope>provided</scope>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
<version>2.0.3.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 编译插件,以${java.version}编译 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<!-- war发布打包,并war包直接输出到tomcat下 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!-- 设置成false,否则检查web.xml是否存在。因为springboot是没有web.xml的 -->
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>placeorder-user</warName>
<archive>
<manifest>
<mainClass>${start-class}</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
<skipTests>true</skipTests>
<skip>true</skip><!-- 跳过测试 -->
<testFailureIgnore>true</testFailureIgnore>
<!-- 将war包直接输出到tomcat下webapps目录下 -->
<outputDirectory>${outputDirectory}</outputDirectory>
</configuration>
</plugin>
<!-- jar发布打包,并jar包直接输出到指定目录下 -->
<!-- <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.9.RELEASE</version>
<configuration>
指定该Main Class为全局的唯一入口
<mainClass>com.example.demo.DemoApplication</mainClass>
<layout>ZIP</layout>
<outputDirectory>${outputDirectory}</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>可以把依赖的包都打包到生成的Jar包中
</goals>
</execution>
</executions>
</plugin> -->
<!-- 将resources目录下文件打包进去 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<useDefaultDelimiters>false</useDefaultDelimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<!-- <build> -->
<!-- war发布打包,并war包直接输出到tomcat下 -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-war-plugin</artifactId> -->
<!-- <configuration> -->
<!-- 设置成false,否则检查web.xml是否存在。因为springboot是没有web.xml的 -->
<!-- <failOnMissingWebXml>false</failOnMissingWebXml> -->
<!-- <warName>placeorder-user</warName> -->
<!-- <archive> -->
<!-- <manifest> -->
<!-- <mainClass>com.zyd.orders.placeorder.PlaceorderSysApplication</mainClass> -->
<!-- <addDefaultImplementationEntries>true</addDefaultImplementationEntries> -->
<!-- </manifest> -->
<!-- </archive> -->
<!-- <skipTests>true</skipTests> -->
<!-- <skip>true</skip>跳过测试 -->
<!-- <testFailureIgnore>true</testFailureIgnore> -->
<!-- 将war包直接输出到tomcat下webapps目录下 -->
<!-- <outputDirectory>${outputDirectory}</outputDirectory> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-resources-plugin</artifactId> -->
<!-- <configuration> -->
<!-- <encoding>UTF-8</encoding> -->
<!-- <delimiters> -->
<!-- <delimiter>@</delimiter> -->
<!-- </delimiters> -->
<!-- <useDefaultDelimiters>false</useDefaultDelimiters> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-surefire-plugin</artifactId> -->
<!-- <configuration> -->
<!-- <skipTests>true</skipTests> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- </build> -->
</project>
[/quote]
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zyd.orders</groupId>
<artifactId>placeorder_user</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>placeorder_user</name>
<description>用户管理模块</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<outputDirectory>C:/danny/dev_tool/apache-tomcat-7.0.79/webapps</outputDirectory>
<start-class>com.zyd.orders.placeorder.SpringBootStartApplication</start-class>
</properties>
<dependencies>
<dependency>
<groupId>org.sweeter</groupId>
<artifactId>sweeter2</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.zyd.orders</groupId>
<artifactId>placeorder_common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.sweeter</groupId>
<artifactId>sweeter2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.zyd.orders</groupId>
<artifactId>placeorder_product</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
</dependency>
<!--获取手机号归属地需要-->
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>geocoder</artifactId>
<version>2.15</version>
</dependency>
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>libphonenumber</artifactId>
<version>6.3</version>
</dependency>
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>prefixmapper</artifactId>
<version>2.15</version>
</dependency>
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>carrier</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<version>2.0.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>5.0.5.RELEASE</version>
</dependency>
<!-- 大汉三通 -->
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-starter-web</artifactId> -->
<!-- 移除嵌入式tomcat插件 -->
<!-- <exclusions> -->
<!-- <exclusion> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-starter-tomcat</artifactId> -->
<!-- </exclusion> -->
<!-- </exclusions> -->
<!-- <version>2.0.3.RELEASE</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>javax.servlet</groupId> -->
<!-- <artifactId>javax.servlet-api</artifactId> -->
<!-- <version>3.1.0</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>org.apache.tomcat</groupId> -->
<!-- <artifactId>tomcat-servlet-api</artifactId> -->
<!-- <version>8.0.36</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- scope=provided,当打包成war时不会将tomcat.jar打包进去;当直接eclipse执行DemoApplication时需要
一定要配置<scope>provided</scope>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
<version>2.0.3.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 编译插件,以${java.version}编译 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<!-- war发布打包,并war包直接输出到tomcat下 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!-- 设置成false,否则检查web.xml是否存在。因为springboot是没有web.xml的 -->
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>placeorder-user</warName>
<archive>
<manifest>
<mainClass>${start-class}</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
<skipTests>true</skipTests>
<skip>true</skip><!-- 跳过测试 -->
<testFailureIgnore>true</testFailureIgnore>
<!-- 将war包直接输出到tomcat下webapps目录下 -->
<outputDirectory>${outputDirectory}</outputDirectory>
</configuration>
</plugin>
<!-- jar发布打包,并jar包直接输出到指定目录下 -->
<!-- <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.9.RELEASE</version>
<configuration>
指定该Main Class为全局的唯一入口
<mainClass>com.example.demo.DemoApplication</mainClass>
<layout>ZIP</layout>
<outputDirectory>${outputDirectory}</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>可以把依赖的包都打包到生成的Jar包中
</goals>
</execution>
</executions>
</plugin> -->
<!-- 将resources目录下文件打包进去 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<useDefaultDelimiters>false</useDefaultDelimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<!-- <build> -->
<!-- war发布打包,并war包直接输出到tomcat下 -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-war-plugin</artifactId> -->
<!-- <configuration> -->
<!-- 设置成false,否则检查web.xml是否存在。因为springboot是没有web.xml的 -->
<!-- <failOnMissingWebXml>false</failOnMissingWebXml> -->
<!-- <warName>placeorder-user</warName> -->
<!-- <archive> -->
<!-- <manifest> -->
<!-- <mainClass>com.zyd.orders.placeorder.PlaceorderSysApplication</mainClass> -->
<!-- <addDefaultImplementationEntries>true</addDefaultImplementationEntries> -->
<!-- </manifest> -->
<!-- </archive> -->
<!-- <skipTests>true</skipTests> -->
<!-- <skip>true</skip>跳过测试 -->
<!-- <testFailureIgnore>true</testFailureIgnore> -->
<!-- 将war包直接输出到tomcat下webapps目录下 -->
<!-- <outputDirectory>${outputDirectory}</outputDirectory> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-resources-plugin</artifactId> -->
<!-- <configuration> -->
<!-- <encoding>UTF-8</encoding> -->
<!-- <delimiters> -->
<!-- <delimiter>@</delimiter> -->
<!-- </delimiters> -->
<!-- <useDefaultDelimiters>false</useDefaultDelimiters> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-surefire-plugin</artifactId> -->
<!-- <configuration> -->
<!-- <skipTests>true</skipTests> -->
<!-- </configuration> -->
<!-- </plugin> -->
<!-- </build> -->
</project>
[/quote]