mirror of
https://gitee.com/mingSoft/MCMS.git
synced 2026-05-07 01:00:35 +08:00
131 lines
5.0 KiB
XML
131 lines
5.0 KiB
XML
<?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">
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>3.4.2</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<groupId>net.mingsoft</groupId>
|
||
<artifactId>ms-mcms</artifactId>
|
||
<version>6.0.0</version>
|
||
<name>${project.groupId}:${project.artifactId}</name>
|
||
<packaging>jar</packaging>
|
||
<properties>
|
||
<java.version>17</java.version>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>net.mingsoft</groupId>
|
||
<artifactId>ms-base</artifactId>
|
||
<version>3.0.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>net.mingsoft</groupId>
|
||
<artifactId>ms-basic</artifactId>
|
||
<version>3.0.0.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>net.mingsoft</groupId>
|
||
<artifactId>ms-mdiy</artifactId>
|
||
<version>3.0.0.1</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>net.mingsoft</groupId>
|
||
<artifactId>store-client</artifactId>
|
||
<version>3.0.0.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.github.oshi</groupId>
|
||
<artifactId>oshi-core</artifactId>
|
||
<version>6.2.2</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>${project.artifactId}</finalName>
|
||
<resources>
|
||
<resource>
|
||
<directory>src/main/webapp</directory>
|
||
|
||
<!--打包生产jar包推荐启用下面配置-->
|
||
<!--打包生产war包不启用下面配置-->
|
||
<excludes>
|
||
<!-- 可以避免将静态资源打入jar包中,方便生产实时修改静态资源文件-->
|
||
<!-- 打包生产建议并手动将static、html、upload、template复制到生产 -->
|
||
<!--<exclude>static/</exclude>
|
||
<exclude>html/</exclude>
|
||
<exclude>upload/</exclude>
|
||
<exclude>template/</exclude>-->
|
||
|
||
<!-- 如果生产需要实时修改WEB-INF/下的页面可,启用这行并手动将项目中的WEB-INF目录复制到运行环境 -->
|
||
<!-- <exclude>WEB-INF/</exclude> -->
|
||
</excludes>
|
||
</resource>
|
||
<resource>
|
||
<directory>src/main/resources</directory>
|
||
</resource>
|
||
<resource>
|
||
<directory>src/main/java</directory>
|
||
<excludes>
|
||
<exclude>**/*.java</exclude>
|
||
</excludes>
|
||
</resource>
|
||
</resources>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<configuration>
|
||
<mainClass>net.mingsoft.MSApplication</mainClass>
|
||
<executable>true</executable>
|
||
<includeSystemScope>true</includeSystemScope>
|
||
</configuration>
|
||
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<configuration>
|
||
<source>${java.version}</source>
|
||
<target>${java.version}</target>
|
||
<encoding>${project.build.sourceEncoding}</encoding>
|
||
<showDeprecation>true</showDeprecation>
|
||
<showWarnings>true</showWarnings>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<!-- 结合(resources》resource》excludes的配置使用 -->
|
||
<!-- 打包出的结构 http://doc.mingsoft.net/server/huan-jing-pei-zhi/jarbu-shu.html#%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84-->
|
||
<!-- 打包war包时,注释掉此插件-->
|
||
<plugin>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>3.1.1</version>
|
||
<executions>
|
||
<execution>
|
||
<id>build-package</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
<configuration>
|
||
<finalName>${project.artifactId}</finalName>
|
||
<descriptors>
|
||
<descriptor>assembly.xml</descriptor>
|
||
</descriptors>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
|
||
</plugins>
|
||
<defaultGoal>compile</defaultGoal>
|
||
</build>
|
||
</project>
|