|
@@ -67,4 +67,67 @@
|
|
|
<version>1.6.2</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>2.5.15</version>
|
|
|
+ <configuration>
|
|
|
+ <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
+ <version>3.0.0</version>
|
|
|
+ <configuration>
|
|
|
+ <failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
+ <warName>${project.artifactId}</warName>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <!-- YUI Compressor (CSS/JS压缩)
|
|
|
+ <plugin>
|
|
|
+ <groupId>net.alchim31.maven</groupId>
|
|
|
+ <artifactId>yuicompressor-maven-plugin</artifactId>
|
|
|
+ <version>1.5.1</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>compress</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
+ <jswarn>false</jswarn>
|
|
|
+ <nosuffix>true</nosuffix>
|
|
|
+ <linebreakpos>50000</linebreakpos>
|
|
|
+ <sourceDirectory>src/main/resources/static</sourceDirectory>
|
|
|
+ <force>true</force>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.js</include>
|
|
|
+ <include>**/*.css</include>
|
|
|
+ </includes>
|
|
|
+ <excludes>
|
|
|
+ <exclude>**/*.min.js</exclude>
|
|
|
+ <exclude>**/*.min.css</exclude>
|
|
|
+ <exclude>**/fileinput.js</exclude>
|
|
|
+ <exclude>**/validate/**</exclude>
|
|
|
+ <exclude>**/bootstrap-table/**</exclude>
|
|
|
+ </excludes>
|
|
|
+ </configuration>
|
|
|
+ </plugin> -->
|
|
|
+ </plugins>
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ </build>
|
|
|
</project>
|