我正在检查这里的“项目设置”说明(https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-setup.html?lang=en#build),并得到以下失败...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for aem-guides-wknd 0.0.1-SNAPSHOT:
[INFO]
[INFO] aem-guides-wknd .................................... SUCCESS [ 0.990 s]
[INFO] WKND Sites Project - Core .......................... FAILURE [01:32 min]
[INFO] WKND Sites Project - UI Frontend ................... SKIPPED
[INFO] WKND Sites Project - Repository Structure Package .. SKIPPED
[INFO] WKND Sites Project - UI apps ....................... SKIPPED
[INFO] WKND Sites Project - UI content .................... SKIPPED
[INFO] WKND Sites Project - All ........................... SKIPPED
[INFO] WKND Sites Project - Integration Tests Bundles ..... SKIPPED
[INFO] WKND Sites Project - Integration Tests Launcher .... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:37 min
[INFO] Finished at: 2021-01-30T12:49:20-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal biz.aQute.bnd:bnd-maven-plugin:4.2.0:bnd-process (bnd-process) on project aem-guides-wknd.core: bnd error: null: ConcurrentModificationException -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :aem-guides-wknd.core...when我尝试执行步骤4中的命令,即执行以下命令:
$ mvn archetype:generate -B \
-DarchetypeGroupId=com.adobe.granite.archetypes \
-DarchetypeArtifactId=aem-project-archetype \
-DarchetypeVersion=22 \
-DgroupId=com.adobe.aem.guides \
-Dversion=0.0.1-SNAPSHOT \
-DappsFolderName=wknd \
-DartifactId=aem-guides-wknd \
-Dpackage=com.adobe.aem.guides.wknd \
-DartifactName="WKND Sites Project" \
-DcomponentGroupName=WKND \
-DconfFolderName=wknd \
-DcontentFolderName=wknd \
-DcssId=wknd \
-DisSingleCountryWebsite=n \
-Dlanguage_country=en_us \
-DoptionAemVersion=6.5.0 \
-DoptionDispatcherConfig=none \
-DoptionIncludeErrorHandler=n \
-DoptionIncludeExamples=y \
-DoptionIncludeFrontendModule=y \
-DpackageGroup=wknd \
-DsiteName="WKND Site"我导航到http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException,它被引用了,它说MojoExecutionException“不是由Maven内核本身生成的,而是由一个插件生成的”,但我不知道是什么插件导致了这个问题。另外,我得到的错误是"ConcurrentModificationException“而不是"MojoExecutionException”。你知道我可能遗漏了什么吗?
发布于 2021-02-07 02:31:56
你应该更新bnd-maven-plugin,v5.1.0中提供了修复。更新到latest one,它应该可以工作。
发布于 2021-06-05 14:29:26
我看到archtype的命令是:
mvn -B archetype:generate \
-D **archetypeGroupId=com.adobe.aem** \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=26 \
-D appTitle="WKND Sites Project" \
-D appId="wknd" \
-D groupId="com.adobe.aem.guides.wknd" \
-D artifactId="aem-guides-wknd" \
...至少组id部分应该是
archetypeGroupId=com.adobe.aem
您可能希望检查您的命令并再次运行它。
https://stackoverflow.com/questions/65971737
复制相似问题