2022-02-19 20:28:01 +08:00
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
|
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
<parent>
|
|
|
|
|
<artifactId>kdayun-root</artifactId>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<version>5.0.0</version>
|
|
|
|
|
<relativePath>../../</relativePath>
|
|
|
|
|
</parent>
|
|
|
|
|
<version>${base.version}</version>
|
|
|
|
|
<artifactId>kdayun-app</artifactId>
|
|
|
|
|
<name>kdayun-app</name>
|
|
|
|
|
<url>http://www.kdayun.com</url>
|
|
|
|
|
<properties>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<deployRoot>${project.build.directory}/deploy/${base.version}/</deployRoot>
|
|
|
|
|
</properties>
|
2022-04-26 09:16:56 +08:00
|
|
|
|
<distributionManagement>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>kdayun-releases</id>
|
|
|
|
|
<url>http://develop.kdayun.com:8081/repository/maven-local/</url>
|
|
|
|
|
</repository>
|
|
|
|
|
<snapshotRepository>
|
|
|
|
|
<id>kdayun-snapshots</id>
|
|
|
|
|
<url>http://develop.kdayun.com:8081/repository/maven-snapshots/</url>
|
|
|
|
|
</snapshotRepository>
|
|
|
|
|
</distributionManagement>
|
2022-02-19 20:28:01 +08:00
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-manager</artifactId>
|
|
|
|
|
<version>${base.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-admin</artifactId>
|
|
|
|
|
<version>${base.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-core</artifactId>
|
|
|
|
|
<version>${base.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-report</artifactId>
|
|
|
|
|
<version>${base.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-wechat</artifactId>
|
2022-09-14 19:35:32 +08:00
|
|
|
|
<version>1.0.2</version>
|
2022-02-19 20:28:01 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-wecom</artifactId>
|
2022-09-14 19:35:32 +08:00
|
|
|
|
<version>1.0.2</version>
|
2022-02-19 20:28:01 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-baidu</artifactId>
|
|
|
|
|
<version>1.0.1</version>
|
|
|
|
|
</dependency>
|
2022-02-19 21:30:44 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.kdayun</groupId>
|
|
|
|
|
<artifactId>kdayun-demo</artifactId>
|
|
|
|
|
<version>1.0.1</version>
|
|
|
|
|
</dependency>
|
2022-02-19 20:28:01 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
<build>
|
|
|
|
|
<defaultGoal>compile</defaultGoal>
|
|
|
|
|
<finalName>kdayun-app</finalName>
|
|
|
|
|
<plugins>
|
|
|
|
|
<!--定义项目的编译环境-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>${jdk.version}</source>
|
|
|
|
|
<target>${jdk.version}</target>
|
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<!--maven的测试用例插件,建议跳过。-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<!--这个是springboot的默认编译插件,他默认会把所有的文件打包成一个jar-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
<configuration>
|
|
|
|
|
<mainClass>com.ruoyi.RuoYiApplication</mainClass>
|
|
|
|
|
<fork>true</fork>
|
|
|
|
|
<addResources>true</addResources>
|
|
|
|
|
<outputDirectory>${project.build.directory}/jar</outputDirectory>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<!-- 打JAR包 -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<!-- 将静态资源排除出jar包 -->
|
|
|
|
|
<excludes>
|
|
|
|
|
<exclude>*.*</exclude>
|
|
|
|
|
<exclude>static/**</exclude>
|
|
|
|
|
<exclude>view/**</exclude>
|
|
|
|
|
<exclude>dataimport/**</exclude>
|
|
|
|
|
<exclude>scriptutil/**</exclude>
|
|
|
|
|
<exclude>update/**</exclude>
|
|
|
|
|
</excludes>
|
|
|
|
|
<archive>
|
|
|
|
|
<manifest>
|
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
|
<!-- MANIFEST.MF 中 Class-Path 加入前缀 -->
|
|
|
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
|
|
|
<!-- jar包不包含唯一版本标识 -->
|
|
|
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|
|
|
|
<!-- 指定启动类的包路径 -->
|
|
|
|
|
<mainClass>com.kdayun.MainApplication</mainClass>
|
|
|
|
|
</manifest>
|
|
|
|
|
<manifestEntries>
|
|
|
|
|
<!--MANIFEST.MF 中 Class-Path 加入资源文件目录 -->
|
|
|
|
|
<Class-Path>config/</Class-Path>
|
|
|
|
|
</manifestEntries>
|
|
|
|
|
</archive>
|
|
|
|
|
<!-- 指定打出的jar包路径 -->
|
|
|
|
|
<outputDirectory>${deployRoot}</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>${deployRoot}/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>
|
|
|
|
|
<excludes>
|
|
|
|
|
<exclude>run.bat</exclude>
|
|
|
|
|
</excludes>
|
|
|
|
|
<!-- 指定需要复制的文件 -->
|
|
|
|
|
<includes>
|
|
|
|
|
<include>*.*</include>
|
|
|
|
|
<include>static/**</include>
|
|
|
|
|
<include>view/**</include>
|
|
|
|
|
<include>dataimport/**</include>
|
|
|
|
|
<include>scriptutil/**</include>
|
|
|
|
|
<include>update/**</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<outputDirectory>${deployRoot}/config</outputDirectory>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>copy-run-bat</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<!-- 指定静态资源的路径 -->
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
<!-- 指定需要复制的文件 -->
|
|
|
|
|
<includes>
|
|
|
|
|
<include>run.bat</include>
|
|
|
|
|
<include>run</include>
|
|
|
|
|
<include>stop</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<outputDirectory>${deployRoot}</outputDirectory>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
|
|
</build>
|
|
|
|
|
<profiles>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>jdk-${jdk.version}</id>
|
|
|
|
|
<!-- 另外一种激活方式 -->
|
|
|
|
|
<activation>
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
<jdk>${jdk.version}</jdk>
|
|
|
|
|
</activation>
|
|
|
|
|
<properties>
|
|
|
|
|
<maven.compiler.source>${jdk.version}</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>${jdk.version}</maven.compiler.target>
|
|
|
|
|
<maven.compiler.compilerVersion>${jdk.version}</maven.compiler.compilerVersion>
|
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
|
|
|
|
</project>
|
|
|
|
|
|