Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';由于google autoservice processor(“无法获取公共无参数构造函数”)的原因,我无法编译javafx和selenium项目_Java_Selenium_Maven_Javafx_Jlink - Fatal编程技术网

Can';由于google autoservice processor(“无法获取公共无参数构造函数”)的原因,我无法编译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

我正试图用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: 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
)

我错过了什么?先谢谢你