gpt4 book ai didi

maven - 无法执行目标 org.apache.felix :maven-scr-plugin:1. 17.0:scr

转载 作者:行者123 更新时间:2023-12-05 01:17:43 25 4
gpt4 key购买 nike

开始使用 AEM 项目。现在我正在尝试在本地启动项目并在构建过程中遇到下一个错误(stacktrace cut):

[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.17.0:scr (generate-scr-scrdescriptor) on project canadian-tire-site-core: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.17.0:scr failed: org.apache.felix.scrplugin.annotations.AnnotationProcessor is not an ImageIO SPI class -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-scr-plugin:1.17.0:scr (generate-scr-scrdescriptor) on project canadian-tire-site-core: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.17.0:scr failed: org.apache.felix.scrplugin.annotations.AnnotationProcessor is not an ImageIO SPI class
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) .....
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.17.0:scr failed: org.apache.felix.scrplugin.annotations.AnnotationProcessor is not an ImageIO SPI class
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:145) ....
Caused by: java.lang.IllegalArgumentException: org.apache.felix.scrplugin.annotations.AnnotationProcessor is not an ImageIO SPI class
at javax.imageio.spi.ServiceRegistry.checkClassAllowed (ServiceRegistry.java:745) ....

部分配置文件:

            <!-- Apache Felix SCR Plugin -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<version>1.17.0</version>
<executions>
<execution>
<id>generate-scr-scrdescriptor</id>
<goals>
<goal>scr</goal>
</goals>
<configuration>
<properties>
<service.vendor>CTC</service.vendor>
</properties>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.11</version>
</dependency>
</dependencies>
</plugin>

我还检查了 Java 和 mvn 版本,看起来一切正常:

echo $JAVA_HOME
C:\Program Files\Java\jdk-9.0.4

mvn -v
Apache Maven 3.5.2
Maven home: C:\apache-maven-3.5.2-bin
Java version: 9.0.4, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk-9.0.4

如果有人可以建议我应该朝哪个方向看,那就太好了。

最佳答案

AEM 6.3 执行 not support JDK 9.

看看这个jira bug如果您想继续使用 JAVA 1.9 和 AEM 进行试验,可以找到解决问题的方法。

关于maven - 无法执行目标 org.apache.felix :maven-scr-plugin:1. 17.0:scr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48953513/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com