2013-10-11 74 views
0

我嘗試使用IntelliJ中的Maven部署Cloudbees應用程序,但IntelliJ突出顯示了插件聲明。錯誤是:Plugin '''com.cloudbees:bees-maven-plugin:1.3.2''' not found.IntelliJ無法解析Cloudbees maven插件依賴關係

Maven目標正在工作。這裏是我的聚甲醛插件聲明:

<pluginRepositories> 
    <pluginRepository> 
     <id>cloudbees-public-release</id> 
     <url>http://repository-cloudbees.forge.cloudbees.com/public-release</url> 
     <releases> 
      <enabled>true</enabled> 
     </releases> 
     <snapshots> 
      <enabled>false</enabled> 
     </snapshots> 
    </pluginRepository> 
</pluginRepositories> 

<build> 
    <plugins> 
     <plugin> 
      <groupId>com.cloudbees</groupId> 
      <artifactId>bees-maven-plugin</artifactId> 
      <version>1.3.2</version> 
     </plugin> 
    </plugins> 
</build> 

感謝

+0

你可以檢查你是否在本地的'm2.repository'中找到該文件..? – user2339071

+0

我不能。我在代理之後,我目前的設置正在爲依賴關係下載工作,但也許我需要額外的插件庫配置? –

回答

1

起初沒有工作,但mvn clean install後在cmd中正常啓動和IntelliJ IDEA的發現。 也嘗試運行mvn bees:run

+0

謝謝,運行mvn蜜蜂:在命令行中運行的伎倆。似乎IntelliJ本身並沒有下載插件依賴項,或者忘記使用項目特定的maven settings.xml文件來做這件事(我重寫了它) –

+0

我有同樣的問題,但所有東西都在同一個pom.xml中。好的,它有幫助。 – Admit