gpt4 book ai didi

java - 如何从源代码中获取maven依赖信息?

转载 作者:行者123 更新时间:2023-12-01 19:26:47 25 4
gpt4 key购买 nike

我是 Java 和 Maven 新手。

我正在关注有关 Java 中的 Cucumber 的教程,但它没有提及 Maven 依赖项,例如与 Cucumber 相关的模块的 groupId 或artifactId。

https://cucumber.netlify.app/docs/guides/browser-automation/

我的问题是,从代码库的信息中,如何获取要插入到pom.xm中的信息?

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;

最佳答案

我认为您的具体问题可以通过查看 Cucumber 安装指南得到解答。

您的一般问题(“如何查找给定导入的 Maven 依赖项?”)并不是真正可以解决的。当然,您可以获取合格的类名并在 https://search.maven.org/ 中查找它们。 ,但这最多只能缩小搜索范围,并且可能不会告诉您应该使用 Artifact 的确切版本。

关于java - 如何从源代码中获取maven依赖信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61317994/

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