|
@@ -4,91 +4,150 @@
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<groupId>cn.rankin</groupId>
|
|
|
- <artifactId>rankin-user-service</artifactId>
|
|
|
+ <artifactId>rankin</artifactId>
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
- <packaging>jar</packaging>
|
|
|
+ <packaging>pom</packaging>
|
|
|
|
|
|
- <name>rankin-user-service</name>
|
|
|
- <description>User Service For Spring Cloud</description>
|
|
|
+ <name>${project.artifactId}</name>
|
|
|
+ <description>Distribute Project Based On Spring Cloud</description>
|
|
|
|
|
|
<parent>
|
|
|
- <groupId>cn.rankin</groupId>
|
|
|
- <artifactId>rankin</artifactId>
|
|
|
- <version>0.0.1-SNAPSHOT</version>
|
|
|
- <relativePath>../pom.xml</relativePath>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
+ <version>1.5.8.RELEASE</version>
|
|
|
+ <relativePath/> <!-- lookup parent from repository -->
|
|
|
</parent>
|
|
|
|
|
|
<properties>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
<java.version>1.8</java.version>
|
|
|
- <spring-cloud.version>Dalston.SR4</spring-cloud.version>
|
|
|
</properties>
|
|
|
|
|
|
+ <modules>
|
|
|
+ <module>rankin-eureka-service</module>
|
|
|
+ <module>rankin-config-service</module>
|
|
|
+ <module>rankin-product-service</module>
|
|
|
+ <module>rankin-user-service</module>
|
|
|
+ <module>rankin-resource-service</module>
|
|
|
+ <module>rankin-trade-service</module>
|
|
|
+ <module>rankin-cms-web</module>
|
|
|
+ <module>rankin-api-web</module>
|
|
|
+ <module>rankin-common-utils</module>
|
|
|
+ <module>rankin-data-api</module>
|
|
|
+ <module>rankin-task</module>
|
|
|
+ </modules>
|
|
|
+
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-starter-config</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-starter-eureka</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
+ <artifactId>spring-boot-starter</artifactId>
|
|
|
</dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
- <groupId>mysql</groupId>
|
|
|
- <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
+ <scope>test</scope>
|
|
|
</dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-starter-feign</artifactId>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ <version>1.2.38</version>
|
|
|
</dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
- <groupId>cn.rankin</groupId>
|
|
|
- <artifactId>rankin-common-utils</artifactId>
|
|
|
- <version>0.0.1-SNAPSHOT</version>
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
+ <artifactId>commons-lang3</artifactId>
|
|
|
+ <version>3.7</version>
|
|
|
</dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
- <groupId>cn.rankin</groupId>
|
|
|
- <artifactId>rankin-data-api</artifactId>
|
|
|
- <version>0.0.1-SNAPSHOT</version>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>1.16.16</version>
|
|
|
</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>${project.name}</finalName>
|
|
|
<plugins>
|
|
|
+ <!-- compiler插件, 设定JDK版本 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.3</version>
|
|
|
+ <configuration>
|
|
|
+ <source>${java.version}</source>
|
|
|
+ <target>${java.version}</target>
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
+ <showWarnings>true</showWarnings>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <!-- source插件, 上传源码 -->
|
|
|
<plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
+ <version>2.4</version>
|
|
|
<configuration>
|
|
|
- <outputDirectory>../target</outputDirectory>
|
|
|
+ <attach>true</attach>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
+ <phase>compile</phase>
|
|
|
<goals>
|
|
|
- <goal>repackage</goal>
|
|
|
+ <goal>jar</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>1.5.7.RELEASE</version>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>./target</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+
|
|
|
+ </pluginManagement>
|
|
|
+ <finalName>${project.name}</finalName>
|
|
|
</build>
|
|
|
|
|
|
-</project>
|
|
|
+ <repositories>
|
|
|
+ <repository>
|
|
|
+ <id>nexus</id>
|
|
|
+ <url>http://192.168.1.96:8081/nexus/content/groups/public/</url>
|
|
|
+ <layout>default</layout>
|
|
|
+ <releases>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </releases>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </repository>
|
|
|
+ </repositories>
|
|
|
+ <distributionManagement>
|
|
|
+ <repository>
|
|
|
+ <id>nexus-releases</id>
|
|
|
+ <name>Releases</name>
|
|
|
+ <url>http://192.168.1.96:8081/nexus/content/repositories/releases/</url>
|
|
|
+ </repository>
|
|
|
+ <snapshotRepository>
|
|
|
+ <id>nexus-snapshots</id>
|
|
|
+ <name>Snapshots</name>
|
|
|
+ <url>http://192.168.1.96:8081/nexus/content/repositories/snapshots/</url>
|
|
|
+ </snapshotRepository>
|
|
|
+ </distributionManagement>
|
|
|
+
|
|
|
+</project>
|