Ошибка сборки сборки: не удалось выполнить цель org.apache.maven.plugins: maven-archetype-plugin: 2.2: интеграционный тест (тест по умолчанию для интеграции) - PullRequest
8 голосов
/ 25 марта 2012

я пытаюсь построить строп, потому что он мне нужен для проекта в университете. Может кто-нибудь сказать мне, как я могу решить эту ошибку?

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

[INFO] Total time: 54.112s
[INFO] Finished at: Sun Mar 25 18:51:41 CEST 2012
[INFO] Final Memory: 68M/165M

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:integration-test (default-integration-test) on project sling-servlet-archetype: Execution default-integration-test of goal org.apache.maven.plugins:maven-archetype-plugin:2.2:integration-test failed: ${maven.home} is not specified as a directory: '/home/odin/Desktop/workspace/sling-builder/EMBEDDED'. -> [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/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :sling-servlet-archetype

    enter code here

Ответы [ 2 ]

7 голосов
/ 16 мая 2012

У меня была такая же проблема с моим собственным проектом - похоже, проблема m2eclipse, так как она исчезает, когда я использую внешний maven вместо встроенного, который по умолчанию использует m2eclipse.

4 голосов
/ 05 февраля 2014

это встроенный в m2e mvn, устанавливающий фиктивный maven.home-dir

https://bugs.eclipse.org/bugs/show_bug.cgi?id=341120

Единственный известный обходной путь (как упомянуто выше) заключается в использовании внешнего mvn

...