253 lines
9.5 KiB
XML
253 lines
9.5 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">
|
|||
|
|
<modelVersion>4.0.0</modelVersion>
|
|||
|
|
<parent>
|
|||
|
|
<artifactId>emis</artifactId>
|
|||
|
|
<groupId>com.xdadan</groupId>
|
|||
|
|
<version>1.0.0</version>
|
|||
|
|
<relativePath>../pom.xml</relativePath>
|
|||
|
|
</parent>
|
|||
|
|
<packaging>jar</packaging>
|
|||
|
|
<artifactId>emis-launcher</artifactId>
|
|||
|
|
<version>1.0.0</version>
|
|||
|
|
|
|||
|
|
<description>web服务入口</description>
|
|||
|
|
|
|||
|
|
<properties>
|
|||
|
|
<java.version>8</java.version>
|
|||
|
|
<target.dir>pub</target.dir>
|
|||
|
|
</properties>
|
|||
|
|
|
|||
|
|
<dependencies>
|
|||
|
|
|
|||
|
|
<!-- 核心模块-->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.xdadan</groupId>
|
|||
|
|
<artifactId>emis-framework</artifactId>
|
|||
|
|
<version>1.0.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.xdadan</groupId>
|
|||
|
|
<artifactId>emis-system-web</artifactId>
|
|||
|
|
<version>1.0.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- 业务模块-->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.xdadan</groupId>
|
|||
|
|
<artifactId>emis-biz-web</artifactId>
|
|||
|
|
<version>1.0.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.alibaba.boot</groupId>
|
|||
|
|
<artifactId>nacos-config-spring-boot-starter</artifactId>
|
|||
|
|
<version>0.2.12</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.alibaba.boot</groupId>
|
|||
|
|
<artifactId>nacos-discovery-spring-boot-starter</artifactId>
|
|||
|
|
<version>0.2.12</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.alibaba.boot</groupId>
|
|||
|
|
<artifactId>nacos-config-spring-boot-actuator</artifactId>
|
|||
|
|
<version>0.2.12</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.alibaba.boot</groupId>
|
|||
|
|
<artifactId>nacos-discovery-spring-boot-actuator</artifactId>
|
|||
|
|
<version>0.2.12</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- spring-boot-devtools -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|||
|
|
<optional>true</optional> <!-- 表示依赖不会传递 -->
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- swagger3-->
|
|||
|
|
<!-- <dependency>-->
|
|||
|
|
<!-- <groupId>io.springfox</groupId>-->
|
|||
|
|
<!-- <artifactId>springfox-boot-starter</artifactId>-->
|
|||
|
|
<!-- </dependency>-->
|
|||
|
|
|
|||
|
|
<!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
|
|||
|
|
<!-- <dependency>-->
|
|||
|
|
<!-- <groupId>io.swagger</groupId>-->
|
|||
|
|
<!-- <artifactId>swagger-models</artifactId>-->
|
|||
|
|
<!-- <version>1.6.2</version>-->
|
|||
|
|
<!-- </dependency>-->
|
|||
|
|
|
|||
|
|
<!-- Mysql驱动包 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>mysql</groupId>
|
|||
|
|
<artifactId>mysql-connector-java</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.guardsquare</groupId>
|
|||
|
|
<artifactId>proguard-base</artifactId>
|
|||
|
|
<version>7.1.0</version>
|
|||
|
|
<scope>runtime</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.guardsquare</groupId>
|
|||
|
|
<artifactId>proguard-core</artifactId>
|
|||
|
|
<version>7.1.0</version>
|
|||
|
|
<scope>runtime</scope>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</dependencies>
|
|||
|
|
|
|||
|
|
<build>
|
|||
|
|
<plugins>
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|||
|
|
<configuration>
|
|||
|
|
<source>1.8</source>
|
|||
|
|
<target>1.8</target>
|
|||
|
|
<encoding>UTF-8</encoding>
|
|||
|
|
</configuration>
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
<!-- proguard混淆插件-->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>com.github.wvengen</groupId>
|
|||
|
|
<artifactId>proguard-maven-plugin</artifactId>
|
|||
|
|
<version>2.2.0</version>
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<!-- 打包的时候开始混淆-->
|
|||
|
|
<phase>package</phase>
|
|||
|
|
<goals>
|
|||
|
|
<goal>proguard</goal>
|
|||
|
|
</goals>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
<configuration>
|
|||
|
|
<injar>${project.build.finalName}.jar</injar>
|
|||
|
|
<!--输出的jar-->
|
|||
|
|
<outjar>${project.build.finalName}.jar</outjar>
|
|||
|
|
<!-- 是否混淆-->
|
|||
|
|
<obfuscate>true</obfuscate>
|
|||
|
|
<proguardInclude>${project.basedir}/proguard.cfg</proguardInclude>
|
|||
|
|
<libs>
|
|||
|
|
<!-- 添加依赖 java8-->
|
|||
|
|
<lib>${java.home}/lib/rt.jar</lib>
|
|||
|
|
<lib>${java.home}/lib/jce.jar</lib>
|
|||
|
|
</libs>
|
|||
|
|
</configuration>
|
|||
|
|
<dependencies>
|
|||
|
|
<!-- https://mvnrepository.com/artifact/net.sf.proguard/proguard-base -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>net.sf.proguard</groupId>
|
|||
|
|
<artifactId>proguard-base</artifactId>
|
|||
|
|
<version>6.2.2</version>
|
|||
|
|
</dependency>
|
|||
|
|
</dependencies>
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|||
|
|
<version>2.1.1.RELEASE</version>
|
|||
|
|
<configuration>
|
|||
|
|
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
|||
|
|
</configuration>
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<goals>
|
|||
|
|
<goal>repackage</goal>
|
|||
|
|
</goals>
|
|||
|
|
<configuration>
|
|||
|
|
<includeSystemScope>true</includeSystemScope>
|
|||
|
|
<executable>true</executable>
|
|||
|
|
<mainClass>com.xdadan.erp.LaunchApplication</mainClass>
|
|||
|
|
</configuration>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
<plugin>
|
|||
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<phase>package</phase>
|
|||
|
|
<goals>
|
|||
|
|
<goal>run</goal>
|
|||
|
|
</goals>
|
|||
|
|
<configuration>
|
|||
|
|
<tasks>
|
|||
|
|
<delete verbose="true" includeemptydirs="true">
|
|||
|
|
<fileset dir="${target.dir}">
|
|||
|
|
<include name="**/*"/>
|
|||
|
|
</fileset>
|
|||
|
|
</delete>
|
|||
|
|
<mkdir dir="${target.dir}"/>
|
|||
|
|
<!-- <mkdir dir="${target.dir}/config"/>-->
|
|||
|
|
<copy todir="${target.dir}" overwrite="true" >
|
|||
|
|
<fileset dir="${project.build.directory}" erroronmissingdir="false">
|
|||
|
|
<include name="*.jar"/>
|
|||
|
|
</fileset>
|
|||
|
|
</copy>
|
|||
|
|
<copy todir="${target.dir}" file="${basedir}/../logback-spring.xml" overwrite="true"/>
|
|||
|
|
<!-- <copy todir="${target.dir}" file="${basedir}/../config.properties" overwrite="true"/>-->
|
|||
|
|
<!-- <copy todir="${target.dir}/config" file="${basedir}/../config/app.yml" overwrite="true"/>-->
|
|||
|
|
<copy todir="${target.dir}" file="${basedir}/../startup.sh" overwrite="true"/>
|
|||
|
|
|
|||
|
|
</tasks>
|
|||
|
|
</configuration>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|||
|
|
<version>2.2.1</version>
|
|||
|
|
<configuration>
|
|||
|
|
<finalName>${project.build.finalName}</finalName>
|
|||
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|||
|
|
<descriptors>
|
|||
|
|
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
|||
|
|
</descriptors>
|
|||
|
|
</configuration>
|
|||
|
|
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<id>make-assembly</id>
|
|||
|
|
<phase>package</phase>
|
|||
|
|
<goals>
|
|||
|
|
<goal>single</goal>
|
|||
|
|
</goals>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-war-plugin</artifactId>
|
|||
|
|
<version>3.1.0</version>
|
|||
|
|
<configuration>
|
|||
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|||
|
|
<warName>${project.artifactId}</warName>
|
|||
|
|
</configuration>
|
|||
|
|
</plugin>
|
|||
|
|
|
|||
|
|
</plugins>
|
|||
|
|
|
|||
|
|
<finalName>${project.artifactId}</finalName>
|
|||
|
|
</build>
|
|||
|
|
|
|||
|
|
</project>
|