1. 程式人生 > >mac下使用idea匯入springboot專案maven報錯Non-managed pom.xml file found

mac下使用idea匯入springboot專案maven報錯Non-managed pom.xml file found

1. 配置JDK:File - Project Structure - SDKs,點選“+”即可;2. 配置遠端除錯,對於azkaban的遠端除錯,在azkaban-solo-start.sh裡面的Java啟動裡面,新增以下引數"-Xdebug -Xrunjdwp:transport=dt_socket,address=55890,suspend=n,server=y", 在IntelliJ中使用Run - Edit Config - Remote中新增一個遠端除錯裡面只需要配置Host,port以及classpath三項即可3. test程式碼構建過程有異常;其實是不需要理會的:gradlew build -x test不執行測試的構建4.匯入maven專案通過intelliJ匯入了一個scala專案,但是發現編譯的時候報錯,引用的包都是沒找到,並有如下的通知:Non-managed pom.xml file foundD:\Workspace\Operation_Five\stats\pom.xmlAdd as Maven Project or Disable notification在event_log中可以進行看到上述的異常,點選Add as Maven Project,開始下載pom中定義的jar包。可能是在匯入的時候發生的異常。發現問題,要多觀察,發現問題的端倪,之前提到過看日誌,今天又提供了另外一個思路:就是看看控制檯以及其他地方輸出的資訊。6. 不依賴於MavenIntelliJ其實並不一定要依賴於maven;只要在project structure中的library中新增jar引用即可,和eclipse裡面的add refference是一樣的。7. module只有一個可能是因為匯入的異常,導致了我在project structure中除了頂級的bigData-stats工程之外還有main和test兩個模組;這導致了import maven一系列下載包失敗;將兩個模組刪掉後,問題解決。 8. 報錯:can not supported format: cannot run program "svn"這是因為在配置settings的version control中的svn,勾選上了“use command line client",如果你的機器上面並不能在命令列直接使用”svn“就不要勾選。9. IntelliJ使用Git:1. File -> Settings -> Version Control -> Git,Path to Git executable:中選擇git的路徑2. VCS-> Integrated Project;選擇git;3. VCS -> Import into Version Control,將當前專案建立repository4. VCS -> Check Out from version control可以從已有的倉庫中獲取程式碼10. 其實,我覺得使用IntelliJ 的社群版也不錯;少了一些spring等java外掛的支援;但是如果我是使用Scala開發,其實社群版和企業版沒有什麼差別。11. 使用intelliJ,編譯發現報錯,OutOfMemory,一個摸不到頭腦的異常;關閉卡巴斯基,問題解決--!12. intelliJ idea裡面對於字串有個拼寫錯誤檢查,很不美;於是想要關閉掉:settings->Editor->Inspections,在右側找到Spelling/Typo,去掉勾號即可。13. 自動編譯
Settings->build-》compile裡面有個Make compile Automatic最好不要設定為自動編譯,因為這個選項將會導致整個工程編譯(而不像eclipse那種只是單個檔案編譯),比較影響效能。所以在部署之前最後手動點選編譯按鈕進行一次編譯,儘管Maven也會進行編譯,但是IntelliJ裡面的編譯錯誤處將會在Problem面板中顯示出來,並可以通過單擊定位;maven編譯錯誤會在控制檯,不是很友好。

相關推薦

mac使用idea匯入springboot專案mavenNon-managed pom.xml file found

1. 配置JDK:File - Project Structure - SDKs,點選“+”即可;2. 配置遠端除錯,對於azkaban的遠端除錯,在azkaban-solo-start.sh裡面的Java啟動裡面,新增以下引數"-Xdebug -Xrunjdwp:transport=dt_socket,ad

idea執行springboot專案,打成jar包執行java.lang.IllegalArgumentException: name

idea執行springboot專案沒報錯,打成jar包執行java.lang.IllegalArgumentException: name 解決方法: org.springframework.beans.factory.BeanDefinitionStoreExce

eclipse新建springboot專案org.apache.maven.archiver.MavenArchiver.getManifest

專案截圖:eclipse提示:org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProj

mac系統idea開發工具git -push :no matching host key type found. Their offer: ssh-dss

bsp 開發 版本 git cheng 算法 com push href 原因: 根本原因之所以報錯是因為OpenSSH7.0以後的版本不再支持ssh-dss(DSA)算法,官方的說法是這個算法太弱了。MACOS升到10.12附帶的openssh版本是7.4,如下:?~ss

轉:springboot專案啟動Failed to configure a DataSource: 'url' attribute is not specified and no embedde

*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute

SpringBoot 專案啟動 Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.

 SpringBoot 專案啟動報錯: 第一次啟動報錯: Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.<init>(Lfreemarker/template/Vers

Springboot專案啟動,提示Cannot determine embedded database driver class for database type NONE

我在springboot專案裡面引入了資料庫的配置: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId&g

解決新建springboot專案啟動問題

Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled. 參考了網上很多方

轉:springboot專案啟動Failed to configure a DataSource: 'url' attribute is not specified and no embedde

*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url'

springboot專案啟動Failed to configure a DataSource: 'url' attribute is not specified and no embedded..

*************************** APPLICATION FAILED TO START *************************** Description:

eclipse新建maven的web專案時,pom.xml的war解決方法/pom.xml將jar直接修改為war解決方法

步驟一 在pom.xml中的(若有)裡面新增外掛,沒有就直接複製一下程式碼。 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</group

mac 使用 selenium包的時候 Message: 'chromedriver' executable needs to be in PATH.

from selenium import webdriver browser = webdriver.Chrome() browser.get("https://www.baidu.com/") print(browser.page_source) browser.close()

springboot 專案啟動 url' attribute is not specified and no embedded datasource could be configured

報錯資訊: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. [2m2018

springboot專案請求Invalid character found in method name. HTTP method names must be tokens

2018-01-26 09:57:23.845 INFO 12872 — [nio-8080-exec-7] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request heade

mac使用pycharm執行python程式:OSError:[Error 13] Permission denied:

發現自己工程目錄下的external Libraries下面這些庫都是鎖的狀態,所以懷疑是許可權的問題,嘗試解決如下:通過chown -R ‘username’ 'pathname'命令修改資料夾所屬使用者:修改完再檢視pycharm下的External Libraries目

Springboot中mybatis:Invalid bound statement (not found)

小場面不要驚慌,分5種情況,檢查你的配置和程式碼,看有沒有中招; xml檔案的select標籤的id對應dao檔案的方法名,兩者必須完全一致 xml檔案中的 namespace=“xxx.xxx.xxx.Mapper” 中的路徑是否與介面檔案路徑一致 xml檔案中的p

mavenNon-resolvable parent POM

[ERROR]   The project org.xbib.elasticsearch:elasticsearch-river-jdbc:2.0.4-SNAPSHOT (E:\ecerp-saas\Sources\ecerp\ecerp-util\elasticsearch-river-jdbc\pom

Maven:Non-resolvable parent POM for XXX

這個錯誤的原因是因為子pom檔案的parent relativePath (相對路徑)寫錯 <parent> <groupId>XXX</groupId>

程式啟動時log4j No Log4j 2 configuration file found

ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically p

Idea 新建springboot專案 spring-boot-starter-parent 包maven依賴

今天使用Idea匯入spring-boot 專案時 maven 報錯 <parent> <groupId>org.springframework.boot</gr