|
@@ -0,0 +1,227 @@
|
|
|
|
|
+<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.leanwo.gateway</groupId>
|
|
|
|
|
+ <artifactId>GatewayServer</artifactId>
|
|
|
|
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
+
|
|
|
|
|
+ <!--指定父级依赖 -->
|
|
|
|
|
+ <parent>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
+ <version>2.2.4.RELEASE</version>
|
|
|
|
|
+ <relativePath /> <!-- lookup parent from repository -->
|
|
|
|
|
+ </parent>
|
|
|
|
|
+
|
|
|
|
|
+ <properties>
|
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
+ <h2.version>2.5.0-b60</h2.version>
|
|
|
|
|
+ <java.version>1.8</java.version>
|
|
|
|
|
+ <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
|
|
|
|
|
+ </properties>
|
|
|
|
|
+
|
|
|
|
|
+ <dependencies>
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter</artifactId>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
|
|
+ <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
|
|
+ <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
+ <scope>test</scope>
|
|
|
|
|
+ </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>
|
|
|
|
|
+ <!-- jar包名 -->
|
|
|
|
|
+ <finalName>GatewayServer</finalName>
|
|
|
|
|
+ <!--默认源代码目录-->
|
|
|
|
|
+ <sourceDirectory>src/main/java </sourceDirectory>
|
|
|
|
|
+ <!--默认测试源代码目录-->
|
|
|
|
|
+ <testSourceDirectory>src/test/java</testSourceDirectory>
|
|
|
|
|
+ <!--默认资源目录-->
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
|
|
+
|
|
|
|
|
+ <plugins>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <source>1.8</source>
|
|
|
|
|
+ <target>1.8</target>
|
|
|
|
|
+ <skip>true</skip>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
+ <version>2.20.1</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <skip>true</skip>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
+ <version>3.0.2</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <archive>
|
|
|
|
|
+ <manifest>
|
|
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
|
|
+ <classpathPrefix>lib/</classpathPrefix>
|
|
|
|
|
+ <mainClass>com.leanwo.file.server.FileServerApp</mainClass>
|
|
|
|
|
+ </manifest>
|
|
|
|
|
+ </archive>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
+ <version>2.10</version>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-dependencies</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-dependencies</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
|
|
+ <version>3.0.2</version>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-resources-config</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-resources</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/FileServer/config
|
|
|
|
|
+ </outputDirectory>
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>config/</directory>
|
|
|
|
|
+ <excludes>
|
|
|
|
|
+ <exclude>*.bat</exclude>
|
|
|
|
|
+ </excludes>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-resources-lib</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-resources</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/FileServer/lib
|
|
|
|
|
+ </outputDirectory>
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>${project.build.directory}/lib/</directory>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-resources-bat</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-resources</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/FileServer/
|
|
|
|
|
+ </outputDirectory>
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>config/</directory>
|
|
|
|
|
+ <includes>
|
|
|
|
|
+ <include>*.bat</include>
|
|
|
|
|
+ </includes>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>${project.build.directory}</directory>
|
|
|
|
|
+ <includes>
|
|
|
|
|
+ <include>FileServer*.jar</include>
|
|
|
|
|
+ </includes>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-resources-content</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-resources</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/FileServer/content
|
|
|
|
|
+ </outputDirectory>
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>content</directory>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ </plugins>
|
|
|
|
|
+ </build>
|
|
|
|
|
+</project>
|