使用Maven构建时出错

时间:2014-12-13 08:26:18

标签: maven build mule

我正在尝试使用m2e eclipe插件构建Mule 2.2.8罐子。 我能够成功建造几个罐子。 但后来我得到了这个例外。任何人都可以帮我这个。?

错误描述如下:

无法执行目标org.apache.felix:maven-bundle-plugin:1.4.3:bundle(default-bundle)项目mule-module-spring-config:错误计算项目MavenProject的类路径:org.mule。模块:mule-module-spring-config:2.2.8 @ C:\ Users \ Rohit Chopra \ Documents \ Mule_2.2.8 \ modules \ spring-config \ pom.xml:打开zip文件时出错

maven bundle plugin所在的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>

你能否提出一些解决此错误的建议?

1 个答案:

答案 0 :(得分:2)

我的第一个猜测是你有一个损坏的拉链。转到<root>\Documents and Settings\<username>\.m2并找到org / apache / felix / maven-bundle-plugin并将其删除。不要担心maven会再次下载。

我还建议使用Java 1.5(需要2.2.8的IIRC)并将源放在路径中没有空格的地方。