123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- <?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>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-auth-back</artifactId>
- <version>2.5.0-tjdsj-SNAPSHOT</version>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <!--revisions需写死,用于标识打包的版本号,不可删除-->
- <revision>2.4.2-tjdsj-SNAPSHOT</revision>
- <duceap.version>2.1.0-SNAPSHOT</duceap.version>
- <lombok.version>1.18.2</lombok.version>
- <jwt.version>3.10.3</jwt.version>
- </properties>
- <dependencyManagement>
- <dependencies>
- <!-- 导入duceap-cloud 2.0 POM定义-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-cloud-parent</artifactId>
- <version>${duceap.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <!--配置 spring boot 开始-->
- <!--配置处理-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-configuration-processor</artifactId>
- <optional>true</optional>
- </dependency>
- <!--监控配置-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>HdrHistogram</artifactId>
- <groupId>org.hdrhistogram</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-websocket</artifactId>
- </dependency>
- <!--配置 spring boot 结束-->
- <!--配置 duceap 开始-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-boot-starter</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>duceap-core-repository-jpa</artifactId>
- <groupId>com.dragonsoft</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- 引入duceap-cloud核心包-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-cloud-starter</artifactId>
- </dependency>
- <!--配置中心-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-cloud-starter-config-apollo</artifactId>
- </dependency>
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-security-dcuc</artifactId>
- </dependency>
- <!--配置 duceap 结束-->
- <!--许可-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-support-license</artifactId>
- </dependency>
- <!--许可依赖包 结束-->
- <!--redis缓存-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-boot-starter-cache-redis</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>spring-jdbc</artifactId>
- <groupId>org.springframework</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <!--配置 dcuc 开始-->
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-common</artifactId>
- <version>2.1.0-tjdsj-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-auth-api</artifactId>
- <version>2.5.0-tjdsj-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-app-api</artifactId>
- <version>2.2.4-tjdsj-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-coder-api</artifactId>
- <version>2.0.1-SNAPSHOT</version>
- <exclusions>
- <exclusion>
- <artifactId>dcuc-duceap-model</artifactId>
- <groupId>com.dragoninfo</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-duceap-api</artifactId>
- <version>2.2.0-tjdsj-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-validation</artifactId>
- <version>2.4.2</version>
- </dependency>
- <dependency>
- <groupId>com.auth0</groupId>
- <artifactId>java-jwt</artifactId>
- <version>${jwt.version}</version>
- </dependency>
- <!--配置 dcuc 结束-->
- <!-- <dependency>-->
- <!-- <groupId>net.unicon.cas</groupId>-->
- <!-- <artifactId>cas-client-autoconfig-support</artifactId>-->
- <!-- <version>2.1.0-GA</version>-->
- <!-- <exclusions>-->
- <!-- <exclusion>-->
- <!-- <artifactId>joda-time</artifactId>-->
- <!-- <groupId>joda-time</groupId>-->
- <!-- </exclusion>-->
- <!-- </exclusions>-->
- <!-- </dependency>-->
- <!-- https://mvnrepository.com/artifact/log4j/log4j -->
- <dependency>
- <groupId>com.squareup.okhttp</groupId>
- <artifactId>okhttp</artifactId>
- <version>2.7.5</version>
- </dependency>
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>2.8.6</version>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>${lombok.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>net.sf.ezmorph</groupId>
- <artifactId>ezmorph</artifactId>
- <version>1.0.6</version>
- <scope>compile</scope>
- </dependency>
- <!--dids-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-security-dids</artifactId>
- </dependency>
- <!--测试-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-security-jwt</artifactId>
- </dependency>
- </dependencies>
- <!--指定仓库地址-->
- <repositories>
- <repository>
- <id>public-repository</id>
- <name>Team Nexus Release Repository</name>
- <url>http://192.168.6.13:8081/nexus/content/groups/public</url>
- </repository>
- <repository>
- <id>duceap-releases</id>
- <name>Team Nexus Release Repository</name>
- <url>http://192.168.6.13:8081/nexus/content/groups/Dragon</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- </repository>
- </repositories>
- <!-- 设定插件仓库 如有Nexus私服, 取消注释并指向正确的服务器地址.-->
- <pluginRepositories>
- <pluginRepository>
- <id>nexus</id>
- <name>Team Nexus Repository</name>
- <url>http://192.168.6.13:8081/nexus/content/groups/public</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- <distributionManagement>
- <repository>
- <id>duceap-releases</id>
- <name>Team Nexus Release Repository</name>
- <url>http://192.168.6.13:8081/nexus/content/repositories/duceap-releases/</url>
- </repository>
- <snapshotRepository>
- <id>duceap-snapshots</id>
- <name>Team Nexus Snapshot Repository</name>
- <url>http://192.168.6.13:8081/nexus/content/repositories/duceap-snapshots</url>
- <uniqueVersion>false</uniqueVersion>
- </snapshotRepository>
- </distributionManagement>
- <packaging>${project.packaging}</packaging>
- <profiles>
- <profile>
- <id>jar</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <project.packaging>jar</project.packaging>
- </properties>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.6</version>
- <executions>
- <execution>
- <id>copy-libs</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
- <!-- <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
- <excludeScope>provided</excludeScope>
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
- <!--取消依赖包的时间戳-->
- <useBaseVersion>true</useBaseVersion>
- </configuration>
- </execution>
- <execution>
- <id>unpack</id>
- <phase>package</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-base</artifactId>
- <!--根据框架版本修改-->
- <version>2.1.0-SNAPSHOT</version>
- <!--<version>2.1.0-SNAPSHOT</version>-->
- <outputDirectory>${project.build.directory}/temp</outputDirectory>
- <!--加入平台的启动脚本-->
- <includes>META-INF/scripts/**</includes>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.5.5</version>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>${project.name}-${project.version}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <!--配置描述文件路径-->
- <descriptor>src/main/assembly/assembly.xml</descriptor>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <archive>
- <manifest>
- <!--运行jar包时运行的主类,要求类全名-->
- <mainClass>com.dragoninfo.dcuc.authweb.DcucAuthWebApplication</mainClass>
- <addClasspath>true</addClasspath>
- <!--取消MANIFEST.MF中classpath下的时间戳-->
- <useUniqueVersions>false</useUniqueVersions>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.6.0</version>
- <configuration>
- <source>8</source>
- <target>8</target>
- </configuration>
- </plugin>
- <!--生成git-infos.properties 版本文件-->
- <plugin>
- <groupId>pl.project13.maven</groupId>
- <artifactId>git-commit-id-plugin</artifactId>
- <version>4.9.10</version>
- <executions>
- <execution>
- <id>get-the-git-infos</id>
- <goals>
- <goal>revision</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <abbrevLength>8</abbrevLength>
- <dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
- <generateGitPropertiesFile>true</generateGitPropertiesFile>
- <includeOnlyProperties>
- <includeOnlyProperty>^git.branch</includeOnlyProperty>
- <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
- <includeOnlyProperty>^git.commit.(id|id.abbrev|message.full)*</includeOnlyProperty>
- </includeOnlyProperties>
- <generateGitPropertiesFilename>${project.build.outputDirectory}/git-infos.properties
- </generateGitPropertiesFilename>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|