| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?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.1</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.2.1</version>
- </dependency>
- <dependency>
- <groupId>net.mingsoft</groupId>
- <artifactId>ms-basic</artifactId>
- <version>3.0.2.2</version>
- </dependency>
- <dependency>
- <groupId>net.mingsoft</groupId>
- <artifactId>ms-mdiy</artifactId>
- <version>3.0.2</version>
- </dependency>
- <dependency>
- <groupId>net.mingsoft</groupId>
- <artifactId>store-client</artifactId>
- <version>3.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>
|