Ver código fonte

处理打包出现警告问题

RuoYi 5 anos atrás
pai
commit
aa0f33b5e7
2 arquivos alterados com 4 adições e 2 exclusões
  1. 1 0
      pom.xml
  2. 3 2
      ruoyi-admin/pom.xml

+ 1 - 0
pom.xml

@@ -228,6 +228,7 @@
             <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>

+ 3 - 2
ruoyi-admin/pom.xml

@@ -80,6 +80,7 @@
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+				<version>2.1.1.RELEASE</version>
                 <configuration>
 					<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
 				</configuration>
@@ -97,11 +98,11 @@
                 <version>3.0.0</version>   
                 <configuration>
                     <failOnMissingWebXml>false</failOnMissingWebXml>
-                    <warName>${artifactId}</warName>
+                    <warName>${project.artifactId}</warName>
                 </configuration>   
 		   </plugin>   
         </plugins>
-        <finalName>${artifactId}</finalName>
+        <finalName>${project.artifactId}</finalName>
     </build>
 	
 </project>