<?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-project-server</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</parent>
|
<artifactId>product-project-server-web</artifactId>
|
<packaging>jar</packaging>
|
<name>product-project-server-web</name>
|
<description>product-project-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-common</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-util</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-admin</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-quartz</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-org-admin</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-administration</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-mq</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-project-server-base</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-project-server-contract</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-project-server-customer</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-file</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<!-- releases -->
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-core</artifactId>
|
<version>1.0.0-releases</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-project-server-customer</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-project-server-contract</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-project-server-base</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>org.apache.commons</groupId>
|
<artifactId>commons-collections4</artifactId>
|
<version>4.1</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-report</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-data-export-import</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-flow</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-mvc</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-auth</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-announcement</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>com.lx</groupId>
|
<artifactId>product-server-tool-table</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<dependency>
|
<groupId>org.spring</groupId>
|
<artifactId>spring-server-master</artifactId>
|
<version>1.2.6.6</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.lx.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>
|
|
</plugins>
|
</build>
|
<!-- 拷贝文件 <build>
|
<finalName>lx-server</finalName>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<configuration>
|
<mainClass>com.lx.Application</mainClass>
|
<includeSystemScope>true</includeSystemScope>
|
</configuration>
|
</plugin>
|
|
<plugin>
|
<artifactId>maven-antrun-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy</id>
|
<phase>package</phase>
|
<configuration>
|
<tasks>
|
<copy file="${project.build.directory}/lx-server.jar" tofile="D:/lxworkspaces/product-server-install/resources/lx-server.jar" overwrite="true"/>
|
<copy file="${project.build.directory}/lx-server.jar" tofile="D:/lxworkspaces/product-server-install/bin/product-server/lx-server.jar" overwrite="true"/>
|
</tasks>
|
</configuration>
|
<goals>
|
<goal>run</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
</plugins>
|
|
</build> -->
|
|
<distributionManagement>
|
<repository>
|
<id>releases</id>
|
<url>http://47.75.52.144:8086/nexus/content/repositories/releases</url>
|
</repository>
|
</distributionManagement>
|
</project>
|