123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <?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>
- <packaging>jar</packaging>
- <parent>
- <groupId>com.kakarote</groupId>
- <artifactId>wkcrm</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <artifactId>wk_crm</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>crm</name>
- <description>客户关系管理</description>
- <dependencies>
- <dependency>
- <groupId>com.kakarote</groupId>
- <artifactId>core</artifactId>
- <version>${core.version}</version>
- </dependency>
- <dependency>
- <groupId>io.seata</groupId>
- <artifactId>seata-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>com.itextpdf</groupId>
- <artifactId>itextpdf</artifactId>
- <version>5.5.11</version>
- </dependency>
- <dependency>
- <groupId>com.itextpdf</groupId>
- <artifactId>itext-asian</artifactId>
- <version>5.2.0</version>
- </dependency>
- <dependency>
- <groupId>com.itextpdf.tool</groupId>
- <artifactId>xmlworker</artifactId>
- <version>5.5.11</version>
- </dependency>
- <!-- elasticsearch 版本为6.8.6-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource>
- <!-- xml放在java目录下-->
- <directory>src/main/java/com/kakarote/${name}/</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </resource>
- <!--解决idea不识别resources的问题-->
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <excludes>
- <exclude>fonts/*</exclude>
- </excludes>
- </resource>
- <!--自定义字体文件,打印预览使用-->
- <resource>
- <directory>src/main/resources</directory>
- <filtering>false</filtering>
- <includes>
- <include>fonts/*</include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <!--打包jar-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <!--MANIFEST.MF 中 Class-Path 加入前缀-->
- <classpathPrefix>lib/</classpathPrefix>
- <!--jar包不包含唯一版本标识-->
- <useUniqueVersions>false</useUniqueVersions>
- <!--指定入口类-->
- <mainClass>com.kakarote.crm.CrmApplication</mainClass>
- </manifest>
- <manifestEntries>
- <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
- <Class-Path>./config/</Class-Path>
- </manifestEntries>
- </archive>
- <outputDirectory>${project.build.directory}</outputDirectory>
- </configuration>
- </plugin>
- <!--拷贝依赖 copy-dependencies-->
- <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>
- <!--拷贝资源文件 copy-resources-->
- <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>
- </resource>
- </resources>
- <outputDirectory>${project.build.directory}/config</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <finalName>${name}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>../assembly.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|