2016-01-07 36 views
0

您是否曾有人在AEM/CQ5中成功使用过BIRT引擎?在AEM/CQ5上使用BIRT引擎

我正在迁移当前使用BIRT引擎生成PDF文件的应用程序。我尝试将BIRT引擎依赖项添加到我的POM中。

<dependency> 
    <groupId>org.eclipse.birt.runtime</groupId> 
    <artifactId>org.eclipse.birt.runtime</artifactId> 
    <version>4.3.1</version> 
</dependency> 

它编译好,并且能够以捆绑jar文件,但是当我部署到Apache菲利克斯它无法解析的诞生引擎库。

Imported Packages com.company.revamp.test,version=[1.0,2) from  com.company.revamp.test-bundle (371) 
javax.servlet from cqse-httpservice (25) 
javax.servlet.http from cqse-httpservice (25) 
org.apache.sling.api,version=[2.1,3) from org.apache.sling.api (123) 
org.apache.sling.api.request,version=[2.1,3) from org.apache.sling.api (123) 
org.apache.sling.api.servlets,version=[2.1,3) from org.apache.sling.api (123) 
org.apache.sling.jcr.api,version=[2.1,3) from org.apache.sling.jcr.api (74) 
org.eclipse.birt.core.exception -- Cannot be resolved 
org.eclipse.birt.core.framework -- Cannot be resolved 
org.eclipse.birt.report.engine.api -- Cannot be resolved 
org.slf4j,version=[1.5,2) from slf4j.api (6) 

任何输入,非常感谢。

谢谢!

+0

您需要为所有依赖项找到osgi捆绑包并将它们安装在AEM上。 – awd

回答

0
http://www.eclipse.org/birt/documentation/integrating/reapi.php

提到了一些所需要的所述BIRT引擎库束。它说“将ReportEngine/lib目录中的jar添加到你的classpath/buildpath”。

假设这些罐子都是合适的OSGi捆绑包,OSGi环境中的等价物就是在您的AEM实例中安装并启动这些捆绑包。在AEM中,可以通过将它们复制到内容存储库文件夹如/apps/yourapp/install来完成。