我正在使用Maven 3.1.1和M2Eclipse与Windows 8.1 64位和Java 7 64位 M2Eclipse总是崩溃并出现以下错误:
Errors occurred during the build.
Error instantiating builder 'org.hibernate.eclipse.console.hibernateBuilder'.
Plug-in org.hibernate.eclipse.console was unable to load class org.hibernate.eclipse.builder.HibernateBuilder.
An error occurred while automatically activating bundle org.hibernate.eclipse.console (824).
Plug-in org.hibernate.eclipse.console was unable to load class org.hibernate.eclipse.builder.HibernateBuilder.
An error occurred while automatically activating bundle org.hibernate.eclipse.console (824).
Errors running builder 'CDI (Context and Dependency Injection) Builder' on project 'dagobert'.
org/hibernate/eclipse/nature/HibernateNature
Errors running builder 'Maven Project Builder' on project 'dagobert'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources- plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
如果我在强制更新版本和快照的情况下运行Maven-Update,Maven会因超时异常而崩溃。出现此错误,我的互联网连接崩溃了。我可以运行ping google.de,但没有程序有任何连接。我必须重启我的机器。
如果我运行mvn -U clean install,我会收到另一个错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:testCompile (default-testCompile) on project dagobert-engine: Compilation fa
ilure: Compilation failure:
[ERROR] C:\xxxxxxxxxxxxxxx\src\test\java\xxxxxxxxxx\test\util\Abs
tractTest.java:[18,40] error: package org.jboss.shrinkwrap.resolver.api does not
exist
[ERROR] C:\xxxxxxxxxxxxxxx\src\test\java\xxxxxxxxxx\test\util\Abs
tractTest.java:[19,46] error: package org.jboss.shrinkwrap.resolver.api.maven do
es not exist
[ERROR] C:\xxxxxxxxxxxxxxx\src\test\java\xxxxxxxxxx\test\util\Abs
tractTest.java:[18,40] error: package org.jboss.shrinkwrap.resolver.api does not
exist
[ERROR] C:\xxxxxxxxxxxxxxx\src\test\java\xxxxxxxxxx\test\util\Abs
tractTest.java:[19,46] error: package org.jboss.shrinkwrap.resolver.api.maven do
es not exist
[ERROR] C:\xxxxxxxxxxxxxxx\src\test\java\xxxxxxxxxx\test\util\Abs
tractTest.java:[49,30] error: cannot find symbol
[ERROR] symbol: class MavenDependencyResolver
[ERROR] location: class AbstractTest
[ERROR] C:\xxxxxxxxxxxxxxx\src\test\java\xxxxxxxxxx\test\util\Abs
tractTest.java:[49,6] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
mvn -v:
C:\xxxxxxxxxxxxxxxxxxxx>mvn -v
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:2
2+0200)
Maven home: C:\Software\maven
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Software\java\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"
答案 0 :(得分:2)
问题解决了。
删除了Avira Anti Virus和Windows Defender。两个应用程序都无缘无故地阻止了maven。我也无法将其添加到任何白名单中。
下次建议:不要使用Windows,使用Linux或Unix。