我想在RCP客戶端中使用cglib。 RCP客戶端使用maven和tycho plugin構建。我們正在使用清單第一策略。如何將cglib添加到RCP客戶端的OSGI清單中?
這是我的MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: INFO+ RCP Common UI Plug-in
Bundle-SymbolicName: a.company.prj.rcp.common.ui
Bundle-Version: 8.0.14.qualifier
Bundle-Vendor: Schweizerische Bundesbahnen SBB
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-Activator: a.company.prj.rcp.common.ui.CommonUIPlugin
Bundle-ActivationPolicy: lazy
Export-Package:
a.company.prj.rcp.common.ui,
...
a.company.prj.rcp.common.ui.wizards.page
Import-Package:
org.apache.log4j;version="1.2.17"
Require-Bundle:
org.eclipse.ui;bundle-version="3.7.0",
org.eclipse.ui.forms;bundle-version="3.5.101",
com.ibm.ws.jpa.thinclient;bundle-version="8.0.6",
...
a.company.prj.rcp.core;bundle-version="8.0.14",
...
要添加CGLIB我改變了進口包裝部分:
Import-Package:
net.sf.cglib;version="3.2.0",
org.apache.log4j;version="1.2.17"
現在Eclipse的抱怨有:
No available bundle exports package 'net.sf.cglib'
艾因想法如何將cglib包含在這個環境中?
那麼你需要一個在你的環境中提供這個包的cglib Bundle。在Eclipse中,您通常使用自定義目標平臺(.target文件,請參閱本教程](http://www.vogella.com/tutorials/EclipseTargetPlatform/article.html),您也可以在您的第谷建立。 – stempler