问题描述
我正在网上寻找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>
并指定新的仓库名称和链接。它对我有用,尽管我不确定这是否是标准方法。