DINGYL 2 сар өмнө
parent
commit
1e4ccc0ad2
1 өөрчлөгдсөн 45 нэмэгдсэн , 1 устгасан
  1. 45 1
      pom.xml

+ 45 - 1
pom.xml

@@ -79,7 +79,7 @@
 		    <artifactId>jjwt</artifactId>
 		    <version>0.6.0</version>
 		</dependency>
-		
+
 		<dependency>
 		    <groupId>org.codehaus.jackson</groupId>
 		    <artifactId>jackson-core-asl</artifactId>
@@ -131,10 +131,54 @@
     </dependencies>
 
 	<build>
+		<resources>
+			<resource>
+				<filtering>true</filtering>
+				<directory>src/main/resources</directory>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+		</resources>
 		<plugins>
 			<plugin>
 				<groupId>org.springframework.boot</groupId>
 				<artifactId>spring-boot-maven-plugin</artifactId>
+            			<configuration>
+                			<includeSystemScope>true</includeSystemScope>
+            			</configuration>
+        		</plugin>
+                        <plugin>
+                                <groupId>org.apache.maven.plugins</groupId>
+                                <artifactId>maven-compiler-plugin</artifactId>
+                                <version>3.5.1</version>
+                                <configuration>
+                                        <source>1.8</source>
+                                        <target>1.8</target>
+                                        <encoding>UTF-8</encoding>
+                                        <compilerArgs>
+                                                <arg>-Xlint:unchecked</arg>
+                                                <arg>-Xlint:deprecation</arg>
+                                                <arg>-bootclasspath</arg>
+                                                <arg>${env.JAVA_HOME}/jre/lib/rt.jar</arg>
+                                                <arg>-extdirs</arg>
+                                                <!-- windows下用分号隔开 -->
+                                                <arg>${env.JAVA_HOME}/jre/lib:${project.basedir}/lib</arg>
+                                        </compilerArgs>
+                                </configuration>
+                        </plugin>
+			<plugin>
+				<groupId>org.springframework.boot</groupId>
+				<artifactId>spring-boot-maven-plugin</artifactId>
+               			<configuration>
+                    			<compilerArgs>
+                        			<arg>-Xlint:deprecation</arg>
+                                                <arg>${env.JAVA_HOME}/jre/lib/rt.jar</arg>
+                    			</compilerArgs>
+                    			<compilerArguments>
+                        			<bootclasspath>${env.JAVA_HOME}/jre/lib/rt.jar:${env.JAVA_HOME}/jre/lib/jce.jar</bootclasspath>
+                    			</compilerArguments>
+                		</configuration>
 			</plugin>
 		</plugins>
 	</build>