【发布时间】:2021-02-20 20:07:02
【问题描述】:
我的项目 pom.xml 上有一个红色的 X,当我进入“问题”选项卡时,Eclipse 显示错误消息。
问题选项卡提供以下消息:
生命周期配置未涵盖插件执行:com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.18:selenium(执行:默认,阶段:测试编译)
如何删除 pom.xml 上的红色 X? Java版本是1.8
Screenshot of the error message
<profiles>
<profile>
<id>selenium-tests</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin</artifactId>
<version>${driver-binary-downloader-maven-plugin.version}</version>
<configuration>
<rootStandaloneServerDirectory>${project.basedir}/ServerExes/selenium_standalone_binaries</rootStandaloneServerDirectory>
<downloadedZipFileDirectory>${project.basedir}/ServerExes/selenium_standalone_zips</downloadedZipFileDirectory>
<customRepositoryMap>${project.basedir}/TestData/RepositoryMap.xml</customRepositoryMap>
<overwriteFilesThatExist>${overwrite.binaries}</overwriteFilesThatExist>
<onlyGetDriversForHostOperatingSystem>true</onlyGetDriversForHostOperatingSystem>
<fileDownloadRetryAttempts>${retry.attempts}</fileDownloadRetryAttempts>
<fileDownloadReadTimeout>${read.timeout}</fileDownloadReadTimeout>
<operatingSystems>
<windows>true</windows>
<linux>true</linux>
<mac>true</mac>
</operatingSystems>
</configuration>
<executions>
<execution>
<goals>
<goal>selenium</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<suiteXmlFiles>
<!-- TestNG suite XML files -->
<!-- <file>testNg_UI_Verification.xml</file> -->
<!-- <file></file> -->
<file>${testNGFileName}</file>
</suiteXmlFiles>
<properties>
<property>
<name>suitethreadpoolsize</name>
<value>2</value>
</property>
</properties>
<systemPropertyVariables>
<proxyEnabled>${proxyEnabled}</proxyEnabled>
<proxyHost>${proxyHost}</proxyHost>
<proxyPort>${proxyPort}</proxyPort>
<phantomjs.binary.path>${phantomjs.binary.path}</phantomjs.binary.path>
<webdriver.chrome.driver>${webdriver.chrome.driver}</webdriver.chrome.driver>
<webdriver.ie.driver>${webdriver.ie.driver}</webdriver.ie.driver>
<webdriver.opera.driver>${webdriver.opera.driver}</webdriver.opera.driver>
<webdriver.gecko.driver>${webdriver.gecko.driver}</webdriver.gecko.driver>
<webdriver.edge.driver>${webdriver.edge.driver}</webdriver.edge.driver>
</systemPropertyVariables>
<additionalClasspathElements>
<additionalClasspathElement>${project.basedir}/db_queries/ojdbc14.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
【问题讨论】:
-
建议的解决方案都不起作用。尝试了 m2e-wtp 安装,没有帮助。尝试添加
3.1.1 又一次,它没有帮助。其余解决方案与 spring-boot 相关,此处不适用。
标签: java maven selenium-webdriver pom.xml