<?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.lx</groupId>
|
<artifactId>product-server</artifactId>
|
<version>2.0.0-release</version>
|
</parent>
|
<artifactId>product-server-web</artifactId>
|
<packaging>jar</packaging>
|
<name>product-server-web</name>
|
<description>product-server-web</description>
|
<profiles>
|
<profile>
|
<id>dev</id>
|
<properties>
|
<profileActive>dev</profileActive>
|
</properties>
|
<activation>
|
<activeByDefault>true</activeByDefault>
|
</activation>
|
|
</profile>
|
|
<profile>
|
<id>test</id>
|
<properties>
|
<profileActive>test</profileActive>
|
</properties>
|
</profile>
|
|
<profile>
|
<id>prod</id>
|
<properties>
|
<profileActive>prod</profileActive>
|
</properties>
|
</profile>
|
|
</profiles>
|
<dependencies>
|
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-conduct</artifactId>
|
</dependency>
|
<!--补丁模块-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-patch</artifactId>
|
</dependency>
|
<!--人事管理-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-hr</artifactId>
|
</dependency>
|
<!--设备管理-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-device</artifactId>
|
</dependency>
|
<!--通用模块(util)-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-common</artifactId>
|
</dependency>
|
<!-- 手机端-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-mobile-core</artifactId>
|
</dependency>
|
<!--数据源-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-datasource</artifactId>
|
</dependency>
|
<!--打印(word替换)-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-print</artifactId>
|
</dependency>
|
<!--util-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-util</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-admin</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-quartz</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-org-admin</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-administration</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-mq</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-hr</artifactId>
|
</dependency>
|
<!--附件管理、文档管理-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-file</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-lucene</artifactId>
|
</dependency>
|
<!-- releases -->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-core</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-report</artifactId>
|
</dependency>
|
<!--数据导入导出-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-data-export-import</artifactId>
|
</dependency>
|
<!--开发工具-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-dev</artifactId>
|
</dependency>
|
<!--流程建模-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-flow</artifactId>
|
</dependency>
|
<!--功能建模-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-mvc</artifactId>
|
</dependency>
|
<!-- 表单建模-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-face</artifactId>
|
</dependency>
|
<!--数据建模-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-table</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-data-sync</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-badge</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-email</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-text-message</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-auth</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-data-center</artifactId>
|
</dependency>
|
|
<!--项目管理模块-->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-customer</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-task</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.spring</groupId>
|
<artifactId>spring-server-master</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.sendgrid</groupId>
|
<artifactId>sendgrid-java</artifactId>
|
<version>4.0.1</version>
|
</dependency>
|
<dependency>
|
<groupId>org.apache.commons</groupId>
|
<artifactId>commons-collections4</artifactId>
|
<version>4.1</version>
|
</dependency>
|
</dependencies>
|
<build>
|
<plugins>
|
<!-- 打JAR包 -->
|
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-jar-plugin</artifactId>
|
<configuration>
|
<!-- 不打包资源文件(配置文件和依赖包分开) -->
|
<excludes>
|
<exclude>*.properties</exclude>
|
<exclude>*.xml</exclude>
|
</excludes>
|
<archive>
|
<manifest>
|
<addClasspath>true</addClasspath>
|
<!-- MANIFEST.MF 中 Class-Path 加入前缀 -->
|
<classpathPrefix>lib/</classpathPrefix>
|
<!-- jar包不包含唯一版本标识 -->
|
<useUniqueVersions>true</useUniqueVersions>
|
<!--指定入口类 -->
|
<mainClass>com.product.Application</mainClass>
|
</manifest>
|
<manifestEntries>
|
<!--MANIFEST.MF 中 Class-Path 加入资源文件目录 -->
|
<Class-Path>./resources/</Class-Path>
|
</manifestEntries>
|
|
</archive>
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
</configuration>
|
</plugin>
|
|
<!-- 该插件的作用是用于复制依赖的jar包到指定的文件夹里 -->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-dependency-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy-dependencies</id>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-dependencies</goal>
|
</goals>
|
<configuration>
|
<outputDirectory>${project.build.directory}/lib/</outputDirectory>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
|
<!-- 该插件的作用是用于复制指定的文件 -->
|
<plugin>
|
<artifactId>maven-resources-plugin</artifactId>
|
<executions>
|
<execution> <!-- 复制配置文件 -->
|
<id>copy-resources</id>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-resources</goal>
|
</goals>
|
<configuration>
|
<resources>
|
<resource>
|
<directory>src/main/resources</directory>
|
<includes>
|
<include>*.properties</include>
|
<include>*.yml</include>
|
<include>*.xml</include>
|
<include>*.txt</include>
|
</includes>
|
</resource>
|
</resources>
|
<outputDirectory>${project.build.directory}/resources</outputDirectory>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
|
<!-- SpringBoot 打包插件,把 maven-jar-plugin 打成的jar包重新打成可运行jar包 -->
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<configuration>
|
<!-- 重写包含依赖,包含不存在的依赖,jar里没有pom里的依赖 -->
|
<includes>
|
<include>
|
<groupId>null</groupId>
|
<artifactId>null</artifactId>
|
</include>
|
</includes>
|
<includeSystemScope>true</includeSystemScope>
|
<layout>ZIP</layout>
|
<!-- 使用外部配置文件,jar包里没有资源文件 -->
|
<addResources>true</addResources>
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
</configuration>
|
<executions>
|
<execution>
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
<!-- 执行bat 前端编译 -->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
<executions>
|
<execution>
|
<goals>
|
<goal>run</goal>
|
</goals>
|
<configuration>
|
<!-- <target description="run the bat">
|
<echo>开始运行packed.bat命令行</echo>
|
<exec dir="D:/product/lxworkspaces/product-web" executable="cmd.exe">
|
<arg line="packed.bat"></arg>
|
</exec>
|
</target> -->
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
|
<!-- 拷贝文件 -->
|
<plugin>
|
<artifactId>maven-antrun-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy</id>
|
<phase>package</phase>
|
<configuration>
|
<tasks>
|
<copy todir="D:/product/workspace/product-server-install/resources/product-server/lib">
|
<fileset dir="${project.build.directory}/lib">
|
<include name="*.jar"/>
|
<exclude name="product-server-core-1.0.0-SNAPSHOT.jar"/>
|
<exclude name="product-server-core-2.0.0-SNAPSHOT.jar"/>
|
</fileset>
|
</copy>
|
<copy todir="D:/product/workspace/product-server-install/resources/product-server/resources">
|
<fileset dir="${project.build.directory}/resources">
|
<include name="application-prod.properties"/>
|
<include name="cache-prod.properties"/>
|
<include name="*.txt"/>
|
<include name="*.xml"/>
|
</fileset>
|
</copy>
|
<!-- <copy todir="D:/product/workspace/product-server-install/resources/product-server/webapp/web">-->
|
<!-- <fileset dir="D:/product/workspace3.0/WEB/V3.0.0/dist">-->
|
<!-- <include name="*.*"/>-->
|
<!-- </fileset>-->
|
<!-- </copy>-->
|
<copy file="${project.build.directory}/product-server-web-2.0.0-release.jar"
|
tofile="D:/product/workspace/product-server-install/resources/product-server/product-server-web-2.0.0-release.jar"
|
overwrite="true"/>
|
</tasks>
|
|
</configuration>
|
<goals>
|
<goal>run</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
|
</plugins>
|
</build>
|
</project>
|