maven - 来自 mvnrepository.com 的一个 maven 依赖项已解决,而另一个则没有
问题描述
TLDR;
一种依赖解决了,而另一种则没有。有人可以分享如何调试它吗?或分享一些关于可能发生的事情的见解?
细节:
我创建了一个新的 Maven 项目来从文件中创建models
和api
输入打字稿。OpenApiV3.yaml
在我的项目pom
文件中,我添加了一个插件。
<profile>
<id>typescript-angular</id>
<build>
<plugins>
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.25</version>
swagger-codegen-maven-plugin
不解决。我在构建中收到错误,无法找到它。
<profiles>
<profile>
<id>typescript</id>
<build>
<plugins>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>5.1.0</version>
虽然openapi-generator-maven-plugin
解决。并且确实生成了对象。
org.openapitools openapi-generator-maven-plugin 5.1.0
io.swagger.codegen.v3 swagger-codegen-maven-plugin 3.0.25
我们在组织中确实有一个本地nexus
部署,但显然这种行为pluginRepositories
在项目pom
文件中是相同的。没有进行任何更改以使其适用于其他依赖项。
<pluginRepositories>
<pluginRepository>
<id>maven-repository</id>
<name>Maven Repository</name>
<url>https://mvnrepository.com/artifact/</url>
</pluginRepository>
<pluginRepository>
<id>maven-central</id>
<name>Maven Central</name>
<url>https://repo1.maven.org/maven2/</url>
</pluginRepository>
</pluginRepositories>
有人可以分享如何调试它吗?或分享一些关于可能发生的事情的见解?
解决方案
推荐阅读
- excel - 将数据拆分为具有条件的多个工作表
- java - 如果应用程序已打开其他活动,则通知在后台不起作用
- python - 如何使用 DBSCAN 指定集群中的最大点数?
- c - 有人可以帮我理解这个 C 程序的执行吗?(初学者)
- sql - 如何使用 SQL 使用 WHERE/AND 条件创建新表?
- video - 对上传到我的应用程序的视频进行转码有哪些好的设置?
- javascript - 如何将字体真棒图标插入这样的输入按钮?
- scala - 如何在 Apache Flink 中实现窗口函数?
- https - Web 服务中的路由规则
- sql-server - Varchar vs nvarchar - 导致我们认为不同的不同值