¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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-SNAPSHOT</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-common</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-print</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-util</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-admin</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-quartz</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-org-admin</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | |
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-administration</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-mq</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-file</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | |
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-email</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-lucene</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <!-- release -->
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-core</artifactId>
|
| | | <version>2.0.1</version>
|
| | | </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>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-report</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-data-export-import</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | |
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-tool-flow</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-tool-mvc</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-announcement</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-tool-table</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-badge</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-email</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-text-message</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-auth</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-data-center</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>org.spring</groupId>
|
| | | <artifactId>spring-server-master</artifactId>
|
| | | <version>1.2.6.6</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-customer</artifactId>
|
| | | <version>2.0.0-release</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>com.lx</groupId>
|
| | | <artifactId>product-server-task</artifactId>
|
| | | <version>2.0.0-release</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/lxworkspaces/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"/>
|
| | | </fileset>
|
| | | </copy>
|
| | | <copy todir="D:/product/lxworkspaces/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/lxworkspaces/product-server-install/resources/product-server/web">
|
| | | <fileset dir="D:/product/lxworkspaces/product-web/dist">
|
| | | <include name="*.*"/>
|
| | | </fileset>
|
| | | </copy>
|
| | | <copy file="${project.build.directory}/product-server-web-1.0.0-SNAPSHOT.jar"
|
| | | tofile="D:/product/lxworkspaces/product-server-install/resources/product-server/product-server-web-1.0.0-SNAPSHOT.jar"
|
| | | overwrite="true"/>
|
| | | </tasks>
|
| | | -->
|
| | | </configuration>
|
| | | <goals>
|
| | | <goal>run</goal>
|
| | | </goals>
|
| | | </execution>
|
| | | </executions>
|
| | | </plugin>
|
| | |
|
| | | </plugins>
|
| | | </build>
|
| | | </project>
|