Can';由于google autoservice processor(“无法获取公共无参数构造函数”)的原因,我无法编译javafx和selenium项目
我正试图用maven编译我的Instagram机器人。它使用javafx作为接口,使用selenium作为自动化工具,我已经被这个错误困扰了很长时间 当我尝试执行Can';由于google autoservice processor(“无法获取公共无参数构造函数”)的原因,我无法编译javafx和selenium项目,java,selenium,maven,javafx,jlink,Java,Selenium,Maven,Javafx,Jlink,我正试图用maven编译我的Instagram机器人。它使用javafx作为接口,使用selenium作为自动化工具,我已经被这个错误困扰了很长时间 当我尝试执行mvn clean javafx:jlink时,它显示了以下错误: Failed to execute goal org.openjfx:javafx-maven-plugin:0.0.3:jlink (default-cli) on project igbot: Error: Unable to execute mojo: Comp
mvn clean javafx:jlink时,它显示了以下错误:
Failed to execute goal org.openjfx:javafx-maven-plugin:0.0.3:jlink (default-cli) on project igbot: Error: Unable to execute mojo: Compilation failure
[ERROR] Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: com.google.auto.service.processor.AutoServiceProcessor Unable to get public no-arg constructor
关于这个问题,我唯一发现的是:
我在pom中添加了答案所建议的内容,但似乎不起作用
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>9</source>
<target>9</target>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<compilerArgument>-proc:none</compilerArgument>
<includes>
<include>com/google/auto/service/processor/AutoServiceProcessor.java</include>
</includes>
</configuration>
</execution>
<execution>
<id>compile-project</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
org.apache.maven.plugins
)
我错过了什么?先谢谢你