[英]Freemarker : OSGI Bundle Exception
我是OSGI的新手。 我正在嘗試向使用Spring 3的現有應用程序添加新庫FreeMarker。我們正在使用Equinox。 以下是我所做的更改,
在pom.xml中添加了Freemarker依賴性,
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>com.springsource.freemarker</artifactId>
<version>2.3.18</version>
</dependency>
我希望這個罐子是OSGI的投訴。
在“ Import-Package
部分中,我添加了com.springsource.freemarker;version="2.3.18"
我在Bundle-ClassPath
添加了lib/com.springsource.freemarker-2.3.18.jar
部署應用程序時,出現以下錯誤,
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: com.springsource.freemarker; version="2.3.18"
請讓我知道缺少的配置。
預先感謝SD
捆綁包com.springsource.freemarker不會導出具有相同名稱的軟件包。 您正在將Bundle-SymbolicName與要導入的程序包名稱混合。
請參閱http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.freemarker&version=2.3.18的“導出的軟件包”部分,以了解可以在另一個捆綁軟件中導入的內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.