Failed to execute goal org.apache.maven.plugins:maven-resources-plugin
生活随笔
收集整理的這篇文章主要介紹了
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
maven打jar包錯誤
引起錯誤的原因是在 SpringbootStudyApplication 類中,加入了下面注釋中的代碼(監聽項目啟動,然后打開瀏覽器),單純刪掉注釋代碼是無法解決問題的,可能的原因是由于加入這部分代碼而import的一些包有沖突吧!具體沒搞清楚,重新建項目,不做這個工作就可以打包了!
package com.ex.springbootstudy;import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.context.event.EventListener;import java.io.IOException;@SpringBootApplication public class SpringbootStudyApplication {public static void main(String[] args) {SpringApplication.run(SpringbootStudyApplication.class, args);}// @Value("${server.port}") // private String appport; //站點端口號 // // /*當端口啟動后,直接跳轉界面*/ // @EventListener({ApplicationReadyEvent.class}) // void applicationReadyEvent() { // System.out.println("應用已經準備就緒 ... 啟動瀏覽器"); // String url = "http://localhost:" + appport; // Runtime runtime = Runtime.getRuntime(); // try { // runtime.exec("rundll32 url.dll,FileProtocolHandler " + url); // } catch (IOException e) { // e.printStackTrace(); // } // } }總結
以上是生活随笔為你收集整理的Failed to execute goal org.apache.maven.plugins:maven-resources-plugin的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 事理图谱概念辨析及其与风险标签分类结合的
- 下一篇: Promise源码解析