259 lines
8.0 KiB
XML
259 lines
8.0 KiB
XML
<?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>
|
||
<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>
|
||
<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-api</artifactId>
|
||
<version>1.0.3</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.kdayun</groupId>
|
||
<artifactId>kdayun-wechat</artifactId>
|
||
<version>1.0.4</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.kdayun</groupId>
|
||
<artifactId>kdayun-wecom</artifactId>
|
||
<version>1.0.4</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.kdayun</groupId>
|
||
<artifactId>kdayun-baidu</artifactId>
|
||
<version>1.0.1</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>commons.commons-beanutils</groupId>
|
||
<artifactId>commons-beanutils</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>ch.qos.logback</groupId>
|
||
<artifactId>logback-classic</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>ch.qos.logback</groupId>
|
||
<artifactId>logback-core</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.kdayun</groupId>
|
||
<artifactId>kdayun-demo</artifactId>
|
||
<version>1.0.1</version>
|
||
</dependency>
|
||
</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>
|
||
|