|
|
@@ -120,80 +120,80 @@
|
|
|
<directory>src/main/webapp</directory>
|
|
|
<excludes>
|
|
|
<!-- 打包生产并手动将static、html、upload、template复制到生产 -->
|
|
|
- <exclude>static/</exclude>
|
|
|
+ <!--<exclude>static/</exclude>
|
|
|
<exclude>html/</exclude>
|
|
|
<exclude>upload/</exclude>
|
|
|
- <exclude>template/</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>
|
|
|
- <executable>true</executable>
|
|
|
- <fork>true</fork>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
+ <!--<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>
|
|
|
+ <executable>true</executable>
|
|
|
+ <fork>true</fork>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.1</version>
|
|
|
- <configuration>
|
|
|
- <source>${java.version}</source>
|
|
|
- <target>${java.version}</target>
|
|
|
- <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
- <showDeprecation>true</showDeprecation>
|
|
|
- <showWarnings>true</showWarnings>
|
|
|
- <compilerArguments>
|
|
|
- <verbose/>
|
|
|
- <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
|
|
|
- </compilerArguments>
|
|
|
- </configuration>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>org.codehaus.plexus</groupId>
|
|
|
- <artifactId>plexus-compiler-eclipse</artifactId>
|
|
|
- <version>2.1</version>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>${java.version}</source>
|
|
|
+ <target>${java.version}</target>
|
|
|
+ <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
+ <showDeprecation>true</showDeprecation>
|
|
|
+ <showWarnings>true</showWarnings>
|
|
|
+ <compilerArguments>
|
|
|
+ <verbose/>
|
|
|
+ <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
|
|
|
+ </compilerArguments>
|
|
|
+ </configuration>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.codehaus.plexus</groupId>
|
|
|
+ <artifactId>plexus-compiler-eclipse</artifactId>
|
|
|
+ <version>2.1</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </plugin>
|
|
|
|
|
|
- <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>ms-mcms</finalName>
|
|
|
- <descriptors>
|
|
|
- <descriptor>src/main/scripts/assembly.xml</descriptor>
|
|
|
- </descriptors>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
+ <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>ms-mcms</finalName>
|
|
|
+ <descriptors>
|
|
|
+ <descriptor>src/main/scripts/assembly.xml</descriptor>
|
|
|
+ </descriptors>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
|
|
|
|
|
|
- </plugins>
|
|
|
- <defaultGoal>compile</defaultGoal>
|
|
|
- </build>
|
|
|
+ </plugins>
|
|
|
+ <defaultGoal>compile</defaultGoal>
|
|
|
+ </build>
|
|
|
</project>
|