123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?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>
- <parent>
- <artifactId>fm-cloud</artifactId>
- <groupId>com.persagy</groupId>
- <version>3.0.0</version>
- </parent>
- <artifactId>fm-person</artifactId>
- <version>3.0.0</version>
- <packaging>jar</packaging>
- <properties>
- <platform.version>1.0.0</platform.version>
- </properties>
- <dependencies>
- <!-- 配置中心(包含注册中心) -->
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-config-client</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <!-- 日志 -->
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-log-spring-boot-starter</artifactId>
- </dependency>
- <!-- feign -->
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <!-- swagger -->
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-swagger2-spring-boot-starter</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <!-- <!– prometheus –>-->
- <!-- <dependency>-->
- <!-- <groupId>org.springframework.boot</groupId>-->
- <!-- <artifactId>spring-boot-starter-actuator</artifactId>-->
- <!-- </dependency>-->
- <!-- <dependency>-->
- <!-- <groupId>io.micrometer</groupId>-->
- <!-- <artifactId>micrometer-registry-prometheus</artifactId>-->
- <!-- </dependency>-->
- <!-- lombok -->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <!-- lang -->
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.5</version>
- </dependency>
- <!-- gson json,java对象互转 -->
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>2.8.6</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>fm-translate</artifactId>
- <version>3.0.0</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>fm-mybatis</artifactId>
- <version>3.0.0</version>
- <scope>compile</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>fm-person</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <encoding>UTF-8</encoding>
- <skip>true</skip>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <!-- 指定启动类 -->
- <configuration>
- <mainClass>com.persagy.ServerApplication</mainClass>
- </configuration>
- </plugin>
- <!-- 按照测试要求打成zip需要的配置 -->
- <plugin>
- <groupId>com.coderplus.maven.plugins</groupId>
- <artifactId>copy-rename-maven-plugin</artifactId>
- <version>1.0.1</version>
- <executions>
- <execution>
- <id>rename-file</id>
- <phase>compile</phase>
- <goals>
- <goal>rename</goal>
- </goals>
- <configuration>
- <destinationFile>${project.build.directory}/version.txt</destinationFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!--拷贝资源文件 copy-resources-->
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <resources>
- <resource>
- <directory>src/main/resources/</directory>
- <includes>
- <include>**/*.yml</include>
- </includes>
- </resource>
- <resource>
- <directory>${project.build.directory}</directory>
- <includes>
- <include>**/version.txt</include>
- </includes>
- </resource>
- </resources>
- <outputDirectory>${project.build.directory}/config</outputDirectory>
- </configuration>
- </execution>
- <!--拷贝启动脚本-->
- <execution>
- <id>copy-version</id>
- <phase>package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <resources>
- <resource>
- <directory>src/script</directory>
- </resource>
- </resources>
- <outputDirectory>${project.build.directory}</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|