123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <?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>dcuc-app</artifactId>
- <groupId>com.dragoninfo</groupId>
- <version>2.1.2-tjdsj-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>dcuc-app-service</artifactId>
- <dependencies>
- <!--配置 duceap 开始-->
- <!-- 引入duceap-cloud核心包-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-cloud-starter</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>HdrHistogram</artifactId>
- <groupId>org.hdrhistogram</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <!--基础-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-boot-starter</artifactId>
- <exclusions>
- <exclusion>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-core-repository-jpa</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!--flyway模块-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-boot-starter-flyway</artifactId>
- </dependency>
- <!--配置中心-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-cloud-starter-config-apollo</artifactId>
- </dependency>
- <!--审计-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-boot-starter-auditlog</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>duceap-core-repository-jpa</artifactId>
- <groupId>com.dragonsoft</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <!--MyBatis-Plus-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-boot-starter-mybatis</artifactId>
- </dependency>
- <!--配置 duceap 结束-->
- <!--许可-->
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-support-license</artifactId>
- </dependency>
- <!--许可依赖包 结束-->
- <!--配置 dcuc 开始-->
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-common</artifactId>
- <version>2.0.0-SNAPSHOT</version>
- <exclusions>
- <exclusion>
- <artifactId>hibernate-core</artifactId>
- <groupId>org.hibernate</groupId>
- </exclusion>
- <exclusion>
- <artifactId>hibernate-entitymanager</artifactId>
- <groupId>org.hibernate</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-app-api</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-duceap-api</artifactId>
- <version>2.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-org-api</artifactId>
- <version>2.0.0-tjdsj-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-user-api</artifactId>
- <version>2.0.1-tjdsj-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.dragoninfo</groupId>
- <artifactId>dcuc-auth-api</artifactId>
- <version>2.1.0-tjdsj-SNAPSHOT</version>
- </dependency>
- <!--配置 dcuc 结束-->
- <!--配置第三方组件开始-->
- <!--oracle 引入-->
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc6</artifactId>
- </dependency>
- <!--mysql 引入-->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <scope>provided</scope>
- </dependency>
- <!--配置第三方组件结束-->
- <!--配置 spring 开始-->
- <!--配置处理-->
- <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>
- </dependency>
- <!--kafka审计需要用到-->
- <dependency>
- <groupId>org.springframework.kafka</groupId>
- <artifactId>spring-kafka</artifactId>
- </dependency>
- <!--测试-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>dcms-mq-client-model</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>compile</scope>
- </dependency>
- <!--配置 spring 结束-->
- </dependencies>
- <packaging>${project.packaging}</packaging>
- <profiles>
- <!--war打包配置-->
- <!--使用方式 mvn clean package -Pwar-->
- <profile>
- <id>war</id>
- <properties>
- <project.packaging>war</project.packaging>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.dragonsoft</groupId>
- <artifactId>duceap-boot-starter-web</artifactId>
- <!-- 移除嵌入式tomcat插件 -->
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <failOnMissingWebXml>false</failOnMissingWebXml>
- <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
- <packagingExcludes>WEB-INF/lib/duceap-support-licenseignore*.jar</packagingExcludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <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.app.DcucAppApplication</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>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|