219 lines
8.4 KiB
XML
219 lines
8.4 KiB
XML
<?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">
|
|
<parent>
|
|
<artifactId>iot-user-center</artifactId>
|
|
<groupId>com.fourfaith.iot</groupId>
|
|
<version>2.7.9-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>iot-user-center-main</artifactId>
|
|
<name>iot-user-center</name>
|
|
<packaging>${project.packaging}</packaging>
|
|
<version>2.7.9-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
<maven.deploy.skip>true</maven.deploy.skip>
|
|
<spring-boot.version>2.3.1.RELEASE</spring-boot.version>
|
|
<spring-cloud.version>Hoxton.SR9</spring-cloud.version>
|
|
<spring-cloud-alibaba.version>2.2.6.RELEASE</spring-cloud-alibaba.version>
|
|
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
|
|
</properties>
|
|
|
|
<!-- 只声明依赖,不引入依赖 -->
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- 声明springCloud版本 -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
<version>${spring-cloud.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<!-- 声明 springCloud Alibaba 版本 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
<version>${spring-cloud-alibaba.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-access</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fourfaith.framework</groupId>
|
|
<artifactId>fourfaith-dubbo</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.apache.dubbo</groupId>
|
|
<artifactId>dubbo-common</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.dubbo</groupId>
|
|
<artifactId>dubbo-remoting-api</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fourfaith.iot</groupId>
|
|
<artifactId>iot-user-center-dubbo-api</artifactId>
|
|
</dependency>
|
|
<!-- <!– https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-discovery –>-->
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>com.alibaba.cloud</groupId>-->
|
|
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
|
|
<!-- <version>2.2.6.RELEASE</version>-->
|
|
<!-- <exclusions>-->
|
|
<!-- <exclusion>-->
|
|
<!-- <groupId>com.alibaba.nacos</groupId>-->
|
|
<!-- <artifactId>nacos-client</artifactId>-->
|
|
<!-- </exclusion>-->
|
|
<!-- </exclusions>-->
|
|
<!-- </dependency>-->
|
|
<!-- <!– https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-config –>-->
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>com.alibaba.cloud</groupId>-->
|
|
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>-->
|
|
<!-- <version>2.2.6.RELEASE</version>-->
|
|
<!-- <exclusions>-->
|
|
<!-- <exclusion>-->
|
|
<!-- <groupId>com.alibaba.nacos</groupId>-->
|
|
<!-- <artifactId>nacos-client</artifactId>-->
|
|
<!-- </exclusion>-->
|
|
<!-- </exclusions>-->
|
|
<!-- </dependency>-->
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-client</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fourfaith.iot</groupId>
|
|
<artifactId>iot-user-center-restful-api</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>dev</id>
|
|
<properties>
|
|
<profiles.active>dev</profiles.active>
|
|
<project.packaging>war</project.packaging>
|
|
</properties>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
</profile>
|
|
<profile>
|
|
<id>local</id>
|
|
<properties>
|
|
<profiles.active>local</profiles.active>
|
|
<project.packaging>war</project.packaging>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>test</id>
|
|
<properties>
|
|
<profiles.active>test</profiles.active>
|
|
<project.packaging>war</project.packaging>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>pre</id>
|
|
<properties>
|
|
<profiles.active>pre</profiles.active>
|
|
<project.packaging>war</project.packaging>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>prod</id>
|
|
<properties>
|
|
<profiles.active>prod</profiles.active>
|
|
<project.packaging>jar</project.packaging>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>pro-245</id>
|
|
<properties>
|
|
<profiles.active>pro-245</profiles.active>
|
|
<project.packaging>jar</project.packaging>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<finalName>iot-user-center-${project.version}-${maven.build.timestamp}</finalName>
|
|
<!-- <finalName>iot-user-center-${project.version}</finalName>-->
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<fork>true</fork>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<addMavenDescriptor>false</addMavenDescriptor>
|
|
</archive>
|
|
<warName>${project.build.finalName}</warName>
|
|
<webResources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<targetPath>WEB-INF/classes</targetPath>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>application.yml</include>
|
|
<include>log4j2-spring.xml</include>
|
|
<include>application-${profiles.active}.yml</include>
|
|
</includes>
|
|
</resource>
|
|
</webResources>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |