如何解决Maven pom.xml的3rdparty存储库问题
我正在网上寻找BIRT依赖性。我的代码引用的包是
import org.eclipse.birt.chart.model.Chart;
import org.eclipse.birt.chart.model.attribute.Anchor;
它正在使用chartengineapi,下面是POM的maven依赖项。
<!-- https://mvnrepository.com/artifact/org.eclipse.birt/chartengineapi -->
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>chartengineapi</artifactId>
<version>2.3.2</version>
</dependency>
由于它是其他存储库(https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/)的一部分,因此Pom.xml中出现错误。谁能帮我解决这个问题?
解决方法
添加了存储库标记并已解决。
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
再添加一个<repository></repository>
并指定新的仓库名称和链接。它对我有用,尽管我不确定这是否是标准方法。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。