2016-05-03 38 views
-1

我的Maven Netbeans項目存在問題,我不太明白。我已經加了我所有的插件在pom.xml文件,但我仍然有同樣的消息,同時建立項目:在運行maven的乾淨目標時出現錯誤

Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project MBFSMS: Failed to clean project: Failed to delete F:\NetbeansProject\MBFSMS\target -> [Help 1] 
To see the full stack trace of the errors, re-run Maven with the -e switch. 
Re-run Maven using the -X switch to enable full debug logging. 
For more information about the errors and possible solutions, please read the following articles: 
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

見下面我POM文件:

 <build> 
     <plugins> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>exec-maven-plugin</artifactId> 
       <version>1.2.1</version> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-clean-plugin</artifactId> 
       <version>2.4.1</version> 
      </plugin>   
     </plugins> 
    </build> 
+1

請發佈完整的錯誤信息... – khmarbaise

+0

其他進程有時鎖定文件(病毒掃描程序非常commong)的windwos上的問題... – khmarbaise

回答

0

這可能是一些暫時性的問題,請重新運行clean再次以調試日誌爲目標,即mvn -X clean也確保其他程序不使用您的target目錄中可用的文件。

+0

執行命令mvn -X clean後仍然存在相同問題,但現在它是另一個插件:無法執行目標org.codehaus.mojo:項目MBFSMS上的exec-maven-plugin:1.2.1:exec(default-cli):命令執行失敗。進程退出時出現錯誤:1(退出值:1) - > [幫助1] –

+0

檢查是否有足夠的內存來執行Maven進程。 – Vishrant

+0

我有同樣的錯誤。我切換到IntelliJ,但現在我有以下錯誤:線程「主」「異常」javax.ws.rs.InternalServerErrorException:HTTP 500內部服務器錯誤。我的項目幾個月前在Netbeans上運行良好,並沒有對我的新IntelliJ項目進行任何更改。請任何想法嗎? –

相關問題