Maven-如何找到负责我当前项目正在使用的 jar 文件的组 ID?
Maven- how to find the group id responsible for the jar file my current project is using?
我在查找我的 Maven 项目正在使用的 jar 文件的组 ID 时遇到问题。基本上我想在 pom.xml 中添加该组 ID、工件 ID 的新版本,以便从 nexus 下载新版本的 jar。
i already referred this
我的罐子现在看起来像
/Users/harish/.m2/spring/com/local/api/platform/hike/AccountsSpecification/xxxx-creditaccounts-specification/1.5/xxxx-creditaccounts-specification-1.5.jar
而且我没有看到我的任何 pom.xml 文件以 xxxx-creditaccounts-specification 作为工件 ID。
请帮我找出哪个组 ID 和工件 ID 负责我的 jar 文件。
这种依赖性可能是传递性的。您可以使用 Maven Dependency Plugin 来查找原点。例如,您可以在根目录中 运行 并检查输出:
mvn dependency:tree
找到依赖项可能会有所帮助,但如果它是可传递的,更新此依赖项将不会很简单。
我在查找我的 Maven 项目正在使用的 jar 文件的组 ID 时遇到问题。基本上我想在 pom.xml 中添加该组 ID、工件 ID 的新版本,以便从 nexus 下载新版本的 jar。
i already referred this
我的罐子现在看起来像 /Users/harish/.m2/spring/com/local/api/platform/hike/AccountsSpecification/xxxx-creditaccounts-specification/1.5/xxxx-creditaccounts-specification-1.5.jar
而且我没有看到我的任何 pom.xml 文件以 xxxx-creditaccounts-specification 作为工件 ID。
请帮我找出哪个组 ID 和工件 ID 负责我的 jar 文件。
这种依赖性可能是传递性的。您可以使用 Maven Dependency Plugin 来查找原点。例如,您可以在根目录中 运行 并检查输出:
mvn dependency:tree
找到依赖项可能会有所帮助,但如果它是可传递的,更新此依赖项将不会很简单。