【问题标题】:BIRT maven configuration not workingBIRT Maven 配置不起作用
【发布时间】:2018-09-03 13:33:54
【问题描述】:

BIRT maven 配置未按预期工作。

在 pom.xml 文件中添加了以下依赖项

<dependency>
    <groupId>org.eclipse.birt.runtime</groupId>
    <artifactId>org.eclipse.birt.runtime</artifactId>
    <version>4.4.2</version>
    <exclusions>
        <exclusion>
            <groupId>org.eclipse.birt.runtime</groupId>
            <artifactId>org.eclipse.osgi.services</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.eclipse.birt.runtime</groupId>
            <artifactId>com.ibm.icu</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.eclipse.birt.runtime</groupId>
    <artifactId>org.eclipse.osgi.services</artifactId>
    <version>3.4.0.v20140312-2051</version>
</dependency>
<dependency>
    <groupId>org.eclipse.birt.runtime</groupId>
    <artifactId>com.ibm.icu</artifactId>
    <version>52.1.1.v201501240615</version>
</dependency>

jar 已下载,项目的 Maven 更新已完成。仍然,java代码给出编译时错误?

import org.eclipse.birt.report.engine.api.*;

编译时错误:The import org.eclipse cannot be resolved

我们如何解决这些依赖关系并使其发挥作用?

【问题讨论】:

    标签: maven maven-2 birt


    【解决方案1】:

    您只是在导入运行时库,而不是引擎 api。因此,您的编译器会抱怨缺少类。

    您需要以下库才能导入: https://mvnrepository.com/artifact/org.eclipse.birt/report-engine/3.7.0

    【讨论】:

      【解决方案2】:

      最后,我可以通过对依赖项进行一些更改来使用

      在 lib 文件夹中添加这两个 jars。

      “长笛-1.3.jar”& "org.eclipse.orbit.mongodb-2.10.1.v20130422-1135.jar"

      依赖更新:

      //Start of birt
          compile(group: 'org.eclipse.birt.runtime', name: 'org.eclipse.birt.runtime', version: '4.4.2') {
              exclude(group: 'org.milyn', module: 'flute')
              exclude(group: 'org.eclipse.birt.runtime', module: 'org.eclipse.orbit.mongodb')
          }
          //End of birt
      

      【讨论】:

        猜你喜欢
        • 2013-07-04
        • 2015-12-28
        • 1970-01-01
        • 2018-07-20
        • 2013-05-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多