maven plugin update
This commit is contained in:
@@ -88,23 +88,13 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- <plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
</plugin> -->
|
|
||||||
|
|
||||||
<!-- 打包插件, war包名称不带版本号 -->
|
<!-- war插件,war包名称不带版本号 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- <packagingExcludes></packagingExcludes>
|
|
||||||
<warSourceExcludes></warSourceExcludes> -->
|
|
||||||
<webappDirectory>\${project.build.directory}/\${project.artifactId}</webappDirectory>
|
|
||||||
<warName>\${finalName}</warName>
|
<warName>\${finalName}</warName>
|
||||||
<archive>
|
|
||||||
<addMavenDescriptor>false</addMavenDescriptor>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|||||||
@@ -74,53 +74,16 @@
|
|||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
<!-- Compiler 插件, 设定JDK版本 -->
|
<!-- compiler插件 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
|
||||||
<showWarnings>true</showWarnings>
|
|
||||||
<!-- <compilerArguments> -->
|
|
||||||
<!-- <verbose /> 输出有关编译器正在执行的操作的消息 -->
|
|
||||||
<!-- <bootclasspath>${JAVA_HOME}\jre\lib\rt.jar;${JAVA_HOME}\jre\lib\jce.jar</bootclasspath> -->
|
|
||||||
<!-- </compilerArguments> -->
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
|
<!-- jar插件 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<configuration>
|
|
||||||
<!-- <encoding>${project.build.sourceEncoding}</encoding> -->
|
|
||||||
<archive>
|
|
||||||
<addMavenDescriptor>false</addMavenDescriptor>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<!-- <phase>prepare-package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals> -->
|
|
||||||
<configuration>
|
|
||||||
<!-- <classesDirectory>${project.outputDirectory}</classesDirectory>
|
|
||||||
<finalName>${finalName}</finalName>
|
|
||||||
<outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/lib</outputDirectory>
|
|
||||||
<includes>
|
|
||||||
<include>com/thinkgem/jeesite/**</include>
|
|
||||||
</includes> -->
|
|
||||||
<archive>
|
|
||||||
<manifest>
|
|
||||||
<!-- Add directory entries -->
|
|
||||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
||||||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
|
||||||
<addClasspath>true</addClasspath>
|
|
||||||
</manifest>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- resource插件 -->
|
<!-- resource插件 -->
|
||||||
@@ -146,8 +109,49 @@
|
|||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
|
<!-- compiler插件,设定JDK版本 -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<showWarnings>true</showWarnings>
|
||||||
|
<!-- <compilerArguments>
|
||||||
|
<verbose /> 输出有关编译器正在执行的操作的消息
|
||||||
|
<bootclasspath>${JAVA_HOME}\jre\lib\rt.jar;${JAVA_HOME}\jre\lib\jce.jar</bootclasspath>
|
||||||
|
</compilerArguments> -->
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<!-- jar插件,配置manifest文件,加入lib包的jar依赖 -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<addMavenDescriptor>false</addMavenDescriptor>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>userfiles/**</exclude>
|
||||||
|
</excludes>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||||
|
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||||||
|
<addClasspath>true</addClasspath>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<!-- 打包插件, war包名称不带版本号 -->
|
<!-- war插件,war包名称不带版本号 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
|
|||||||
@@ -41,27 +41,27 @@
|
|||||||
<artifactId>jeesite-module-core</artifactId>
|
<artifactId>jeesite-module-core</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 在线文档接口 -->
|
<!-- 在线文档接口 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
<artifactId>jeesite-module-swagger</artifactId>
|
<artifactId>jeesite-module-swagger</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 内容管理模块
|
<!-- 内容管理模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
<artifactId>jeesite-module-cms</artifactId>
|
<artifactId>jeesite-module-cms</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency> -->
|
</dependency>
|
||||||
|
|
||||||
<!-- 移动端模块
|
<!-- 移动端模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
<artifactId>jeesite-module-app</artifactId>
|
<artifactId>jeesite-module-app</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency> -->
|
</dependency>
|
||||||
|
|
||||||
<!-- 文件管理共享(标准版)
|
<!-- 文件管理共享(标准版)
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency> -->
|
</dependency> -->
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@@ -99,23 +99,13 @@
|
|||||||
<includeSystemScope>true</includeSystemScope>
|
<includeSystemScope>true</includeSystemScope>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- <plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<!-- war插件,war包名称不带版本号 -->
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
</plugin> -->
|
|
||||||
|
|
||||||
<!-- 打包插件, war包名称不带版本号 -->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- <packagingExcludes></packagingExcludes>
|
|
||||||
<warSourceExcludes></warSourceExcludes> -->
|
|
||||||
<webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory>
|
|
||||||
<warName>${finalName}</warName>
|
<warName>${finalName}</warName>
|
||||||
<archive>
|
|
||||||
<addMavenDescriptor>false</addMavenDescriptor>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|||||||
@@ -108,23 +108,13 @@
|
|||||||
<includeSystemScope>true</includeSystemScope>
|
<includeSystemScope>true</includeSystemScope>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- <plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<!-- war插件,war包名称不带版本号 -->
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
</plugin> -->
|
|
||||||
|
|
||||||
<!-- 打包插件, war包名称不带版本号 -->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- <packagingExcludes></packagingExcludes>
|
|
||||||
<warSourceExcludes></warSourceExcludes> -->
|
|
||||||
<webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory>
|
|
||||||
<warName>${finalName}</warName>
|
<warName>${finalName}</warName>
|
||||||
<archive>
|
|
||||||
<addMavenDescriptor>false</addMavenDescriptor>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|||||||
20
web/pom.xml
20
web/pom.xml
@@ -41,21 +41,21 @@
|
|||||||
<artifactId>jeesite-module-core</artifactId>
|
<artifactId>jeesite-module-core</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 在线文档接口 -->
|
<!-- 在线文档接口 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
<artifactId>jeesite-module-swagger</artifactId>
|
<artifactId>jeesite-module-swagger</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 内容管理模块 -->
|
<!-- 内容管理模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
<artifactId>jeesite-module-cms</artifactId>
|
<artifactId>jeesite-module-cms</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 移动端模块 -->
|
<!-- 移动端模块 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
@@ -99,23 +99,13 @@
|
|||||||
<includeSystemScope>true</includeSystemScope>
|
<includeSystemScope>true</includeSystemScope>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- <plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<!-- war插件,war包名称不带版本号 -->
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
</plugin> -->
|
|
||||||
|
|
||||||
<!-- 打包插件, war包名称不带版本号 -->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- <packagingExcludes></packagingExcludes>
|
|
||||||
<warSourceExcludes></warSourceExcludes> -->
|
|
||||||
<webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory>
|
|
||||||
<warName>${finalName}</warName>
|
<warName>${finalName}</warName>
|
||||||
<archive>
|
|
||||||
<addMavenDescriptor>false</addMavenDescriptor>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user