|
@@ -7,7 +7,7 @@
|
|
|
<groupId>com.shawn</groupId>
|
|
|
<artifactId>ShenzeeServer</artifactId>
|
|
|
<version>0.0.1</version>
|
|
|
- <packaging>jar</packaging>
|
|
|
+ <packaging>war</packaging>
|
|
|
|
|
|
<name>ShenzeeServer</name>
|
|
|
<description>spring discover server</description>
|
|
@@ -30,12 +30,25 @@
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-jdbc</artifactId>
|
|
|
+ <artifactId>spring-boot-starter</artifactId>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
</dependency>
|
|
|
+ <!--修改Tomcat依赖时态,本地开发依然可以调用内嵌tomcat-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
@@ -80,35 +93,6 @@
|
|
|
<version>1.2.58</version>
|
|
|
</dependency>
|
|
|
|
|
|
- <!-- elasticsearch -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.elasticsearch</groupId>
|
|
|
- <artifactId>elasticsearch</artifactId>
|
|
|
- <version>5.5.0</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.elasticsearch.client</groupId>
|
|
|
- <artifactId>x-pack-transport</artifactId>
|
|
|
- <version>5.5.2</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.elasticsearch.client</groupId>
|
|
|
- <artifactId>transport</artifactId>
|
|
|
- <version>5.5.2</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.elasticsearch.plugin</groupId>
|
|
|
- <artifactId>x-pack-api</artifactId>
|
|
|
- <version>5.5.2</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.elasticsearch.plugin</groupId>
|
|
|
- <artifactId>transport-netty4-client</artifactId>
|
|
|
- <version>5.5.2</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
<!-- swagger2 -->
|
|
|
<dependency>
|
|
|
<groupId>io.springfox</groupId>
|
|
@@ -122,39 +106,20 @@
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
- <dependencyManagement>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-dependencies</artifactId>
|
|
|
- <version>${spring-cloud.version}</version>
|
|
|
- <type>pom</type>
|
|
|
- <scope>import</scope>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- </dependencyManagement>
|
|
|
-
|
|
|
<build>
|
|
|
+ <finalName>ShenzeeServer</finalName>
|
|
|
<plugins>
|
|
|
+ <!-- Package the project as an executable jar -->
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <!-- Set the character encoding for the JVM -->
|
|
|
<configuration>
|
|
|
- <layout>ZIP</layout>
|
|
|
+ <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
-
|
|
|
- <repositories>
|
|
|
- <repository>
|
|
|
- <id>spring-milestones</id>
|
|
|
- <name>Spring Milestones</name>
|
|
|
- <url>https://repo.spring.io/milestone</url>
|
|
|
- <snapshots>
|
|
|
- <enabled>false</enabled>
|
|
|
- </snapshots>
|
|
|
- </repository>
|
|
|
- </repositories>
|
|
|
+
|
|
|
|
|
|
</project>
|