211 lines
8.2 KiB
XML
211 lines
8.2 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>
|
||
<groupId>com.xdadan</groupId>
|
||
<artifactId>emis</artifactId>
|
||
<version>1.0.0</version>
|
||
<relativePath>../pom.xml</relativePath>
|
||
</parent>
|
||
<packaging>jar</packaging>
|
||
<artifactId>emis-server</artifactId>
|
||
<version>1.0.2</version>
|
||
|
||
<description>emis 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.4</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.xdadan</groupId>
|
||
<artifactId>emis-system-web</artifactId>
|
||
<version>1.0.4</version>
|
||
</dependency>
|
||
|
||
<!-- 业务模块-->
|
||
<dependency>
|
||
<groupId>com.xdadan</groupId>
|
||
<artifactId>emis-biz-web</artifactId>
|
||
<version>1.0.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.xdadan</groupId>
|
||
<artifactId>emis-wms-web</artifactId>
|
||
<version>1.0.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>8.0.16</version>
|
||
</dependency>
|
||
|
||
<!-- spring-boot-devtools -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-devtools</artifactId>
|
||
<optional>true</optional> <!-- 表示依赖不会传递 -->
|
||
</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>
|
||
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin -->
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-deploy-plugin</artifactId>
|
||
<version>3.0.0-M1</version>
|
||
<!--deploy 时忽略 model-->
|
||
<configuration>
|
||
<skip>true</skip>
|
||
</configuration>
|
||
</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.properties" 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-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> |