mirror of
https://gitee.com/fiz-eim/eim-server.git
synced 2025-12-30 12:32:26 +00:00
189 lines
7.2 KiB
XML
189 lines
7.2 KiB
XML
<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>
|
|
<groupId>com.soflyit.cloud.open</groupId>
|
|
<artifactId>eim-server</artifactId>
|
|
<version>${eim-cloud.version}${eim-cloud.changelist}</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>eim-auth</artifactId>
|
|
|
|
<description>
|
|
eim-auth认证授权中心
|
|
</description>
|
|
<properties>
|
|
<sofly.project.name>auth</sofly.project.name>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<!-- SpringCloud Alibaba Nacos -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SpringCloud Alibaba Nacos Config -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SpringCloud Alibaba Sentinel -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SpringBoot Web -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SpringBoot Actuator -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Industry Common Security-->
|
|
<dependency>
|
|
<groupId>com.soflyit.cloud.open</groupId>
|
|
<artifactId>eim-common-security</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.soflyit.cloud.open</groupId>
|
|
<artifactId>eim-common-auth</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.oltu.oauth2</groupId>
|
|
<artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.oltu.oauth2</groupId>
|
|
<artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.name.prefix}-${sofly.project.name}</finalName>
|
|
<plugins>
|
|
<!--deploy skip-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>2.6</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-config</id>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${basedir}/target/dist/config</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
<excludes>
|
|
<exclude>mapper/**</exclude>
|
|
<exclude>*.txt</exclude>
|
|
</excludes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>*.xml</exclude>
|
|
<exclude>*.yml</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<phase>compile</phase>
|
|
<configuration>
|
|
<target>
|
|
<replace file ="${basedir}/target/dist/config/bootstrap.yml" token="eim-eim-version" value="${project.version}"></replace>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-lib-src</id>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<target>
|
|
<mkdir dir="${project.build.directory}/dist/lib"></mkdir>
|
|
<copy todir="${project.build.directory}/dist/">
|
|
<fileset dir="${project.build.directory}/">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
</copy>
|
|
<zip destfile="${project.build.directory}/${project.build.finalName}.zip">
|
|
<zipfileset dir="${project.build.directory}/dist"/>
|
|
</zip>
|
|
<!--
|
|
<delete file="${project.build.directory}/${project.build.finalName}.jar"/>
|
|
-->
|
|
<delete dir="${project.build.directory}/dist" includeemptydirs="true"/>
|
|
<delete dir="${project.build.directory}/bin" includeemptydirs="true"/>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|