現在、いくつかのサブプロジェクトを含むビルドスクリプトに取り組んでいます。問題は、eclipseを使用したビルドが常に失敗することです。この文の下で、Eclipseのログアウトを読むことができます。
[INFO] Reactor Summary:
[INFO]
[INFO] CQ5 deployment Plugin ............................. SUCCESS [2.031s]
[INFO] Set up enviroment ................................. SUCCESS [0.000s]
[INFO] Hotfix packages for Communiqué .................... SUCCESS [0.406s]
[INFO] Archiva servlet ................................... SUCCESS [0.375s]
[INFO] Ldap Client ....................................... SUCCESS [0.422s]
[INFO] Hibernate ......................................... SUCCESS [7.719s]
[INFO] Main .............................................. SUCCESS [0.015s]
[INFO] Base .............................................. SUCCESS [0.000s]
[INFO] Core .............................................. FAILURE [1.578s]
[INFO] UI ................................................ SKIPPED
[INFO] Commons ........................................... SKIPPED
[INFO] Core .............................................. SKIPPED
[INFO] UI ................................................ SKIPPED
[INFO] Internet .......................................... SKIPPED
[INFO] Core .............................................. SKIPPED
[INFO] UI ................................................ SKIPPED
[INFO] Infothek .......................................... SKIPPED
[INFO] Core .............................................. SKIPPED
[INFO] UI ................................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.390s
[INFO] Finished at: Thu Jun 14 16:37:31 CEST 2012
[INFO] Final Memory: 17M/59M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.2:scr (generate-scr-scrdescriptor) on project core: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.7.2:scr failed: An API incompatibility was encountered while executing org.apache.felix:maven-scr-plugin:1.7.2:scr: java.lang.UnsupportedClassVersionError: Bad version number in .class file
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.felix:maven-scr-plugin:1.7.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/org/apache/felix/maven-scr-plugin/1.7.2/maven-scr-plugin-1.7.2.jar
[ERROR] urls[1] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
[ERROR] urls[2] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
[ERROR] urls[3] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[4] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
[ERROR] urls[5] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.1.2/org.apache.felix.scr.generator-1.1.2.jar
[ERROR] urls[6] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar
[ERROR] urls[7] = file:/c:/Dokumente%20und%20Einstellungen/reporter/.m2/repository/asm/asm-all/3.1/asm-all-3.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>de.xxx.cq5.ldap:Ldap:1.0.0, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
dosプロンプトでビルドスクリプトを実行すると、正常に実行されます。
Eclipse 3.7.1(Indigeo)を使用しています。すべてのサブプロジェクトが同じJavaバージョンに接続されていることを確認しました。ワークスペースを掃除して実行mvn clean
しても役に立ちません。私は本当に立ち往生しているので、誰かが私を助けてくれることを願っていますか?
よろしく