【问题标题】:3rdparty repository issues with maven pom.xmlmaven pom.xml 的 3rdparty 存储库问题
【发布时间】:2020-12-27 22:54:43
【问题描述】:

我在网上寻找 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 中会出现错误。谁能帮我解决这个问题?

【问题讨论】:

    标签: spring-boot migration maven-2 pom.xml birt


    【解决方案1】:

    添加存储库标签并解决。

    <repositories>
        <repository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>Central Repository</name>
          <url>https://repo.maven.apache.org/maven2</url>
        </repository>
      </repositories>
    

    再添加一个&lt;repository&gt;&lt;/repository&gt; 并提供新的仓库名称和链接。虽然我不确定这是否是标准方法,但它对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-03
      • 1970-01-01
      • 2021-11-21
      • 1970-01-01
      相关资源
      最近更新 更多