2014-12-13 61 views
0

我正在嘗試使用m2e eclipe插件構建Mule 2.2.8 jar。 我能夠成功構建幾個罐子。 但後來我得到這個異常。任何人都可以幫助我。使用Maven構建時出錯

錯誤說明是如下:

未能執行目標org.apache.felix:項目騾模塊 - 彈簧 - 配置束(缺省束):行家束-插件:1.4.3 :計算項目MavenProject的類路徑時出錯:org.mule.modules:mule-module-spring-config:2.2.8 @ C:\ Users \ Rohit Chopra \ Documents \ Mule_2.2.8 \ modules \ spring-config \ pom.xml:在打開zip文件

pom.xml中片斷其中行家束插件是當前誤差是這樣的:

<plugin> 
       <groupId>org.apache.felix</groupId> 
       <artifactId>maven-bundle-plugin</artifactId> 
       <version>1.4.3</version> 
       <extensions>true</extensions> 
       <configuration> 
        <obrRepository>NONE</obrRepository> 
        <instructions> 
         <!-- Each module can override these defaults in their osgi.properties file --> 
         <_include>-osgi.properties</_include> 
         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> 
         <Bundle-DocURL>${pom.url}</Bundle-DocURL> 
         <!-- Non-OSGi manifest entries --> 
         <!-- This would work if this issue gets closed: http://jira.codehaus.org/browse/MNG-1832 --> 
         <!--Build-Date>${mvn.timestamp.yyyy-MM-dd-HH:mm:ss}</Build-Date--> 
         <!-- include repository revision from buildnumber plugin --> 
         <Build-Revision>${buildNumber}</Build-Revision> 
         <Build-Date>${timestamp}</Build-Date> 
        </instructions> 
       </configuration> 
      </plugin> 

你可以請建議一些修復,以消除這個錯誤?

回答

2

我的第一個猜測是你有一個損壞的zip。轉到<root>\Documents and Settings\<username>\.m2並找到org/apache/felix/maven-bundle-plugin並將其刪除。不要擔心,maven會再次下載。

我還建議使用Java 1.5(IIRC,它需要2.2.8版本),並將源代碼放在路徑中沒有空格的地方。

+0

嗨維克多..我已經做到了,它的工作! – 2014-12-16 12:57:49

+0

優秀!那麼你能接受答案嗎?謝謝 – 2014-12-16 13:07:50

+0

嗨維克多,我使用jboss保險絲時面臨類似的問題。我刪除了'org/apache/felix/maven-bundle-plugin',但是當我在我的項目中運行'mvn install'時,我再次遇到同樣的錯誤。我在這裏打開了一個新問題:http://stackoverflow.com/questions/41439660/failed-to-execute-goal-org-apache-felixmaven-bundle-plugin2-3-7。任何解決方案 – 2017-01-03 11:30:55