当前位置: 首页 > 知识库问答 >
问题:

在Eclipse中,pom.xml文件上方有一个红色的X

越健
2023-03-14

我的项目pom.xml上面有一个红色的X,当我进入“problems”选项卡时,Eclipse会显示一条错误消息。

Problems选项卡提供以下消息:

如何移除pom.xml上的红色X?Java版本是1.8

错误消息的截图

<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>

共有1个答案

林波鸿
2023-03-14

如果尽管有错误,您仍然可以执行该项目,那么您可以使用“在eclipse首选项中将goal selenium标记为忽略”。

 类似资料:
  • 我在Project Explorer中的Intellij Idea文件名都有一个红色的小圆圈,上面写着“J”。那代表什么?

  • (在回答之前请至少阅读以下内容:这是临时措施!不,我们不想设置本地存储库管理器并手动运行脚本) 我们有一个带有一些依赖项的遗留项目,我们有一个包括源代码和javadoc的本地副本,并被证明在生产中运行良好,但在Central中没有相同质量的项目。我们想用我们已经有的那些罐子。

  • 导入maven项目时不显示pom.xml文件 过程就像 1.月蚀开放 但pom.xml未显示未显示 截图如下

  • 在Eclipse中有没有一种颜色代码匹配括号的方法?我正在寻找一种方法,使匹配的括号是一个不同的颜色时,嵌套,类似于如何Excel管理。

  • 问题内容: (在回答之前,请至少阅读以下内容:这是一个临时措施!不,我们不想设置本地存储库管理器并手动运行脚本) 我们有一个带有一些依赖项的遗留项目,我们具有包含源代码和javadoc的本地副本,并且已被证明可以在生产环境中很好地工作,但是在Central中无法以相同的质量使用。我们想使用我们已经拥有的罐子。 我发现我可以手动运行一个适当的复杂mvn install:install-file命令来

  • 我只是创建了一个new-project,即使对于新项目,它也会给出如下注释的错误: 生命周期配置不包括的插件执行:org.apache.maven.plugins:maven-compiler-plugin:3.1:compile(执行:default-compile,phase:compile) 生命周期配置不包括的插件执行:org.apache.maven.plugins:maven-reso