1

我正在使用Eclipse 3.5在Eclipse RCP應用程序上工作。突然忽略Eclipse RCP依賴關係

我的問題是,當我添加了兩個插件之間的依賴關係時,另一個插件的類似乎被忽略並顯示編譯錯誤。下面是設置:

  • 核心插件
  • 一個插件M1依賴於核心
  • 一個插件M2也取決於核心

當我添加從M2到M1的相關性,來自M2中「核心」的每個類都顯示爲編譯錯誤。

當我刪除這個依賴關係,然後一切恢復正常:M2中使用的核心類現在編譯正確。

以前有人看過這個嗎? :-)

感謝您的幫助!

按照要求:

核心清單:
ManifestVersion:1.0
捆綁-ManifestVersion:2
捆綁-名稱:mysoftware核心
捆綁-SymbolicName:com.mycompany.mysoftware .core; singleton:= true
Bundle-Version:2.7.2.qualifier
Require-Bundle:org.eclipse.core.runtime,
個 org.eclipse.ui,
org.eclipse.gef,
org.eclipse.ui.views.log,
org.eclipse.equinox.p2.artifact.repository,
org.eclipse.equinox。 p2.core,
org.eclipse.equinox.p2.director,
org.eclipse.equinox.p2.engine,
org.eclipse.equinox.p2.metadata,
org.eclipse.equinox.p2。 metadata.repository,
org.eclipse.equinox.p2.repository,
org.eclipse.equinox.p2.updatesite,
org.eclipse.equinox.p2.extensionlocation,
org.eclipse.ecf,
org.eclipse.ecf.filetransfer,
org.eclipse.ecf.identity,
org.eclipse.ecf.provider。文件傳輸,
org.eclipse.ecf.provider.filetransfer.httpclient,
org.apache.commons.codec,
org.apache.commons.httpclient,
org.eclipse.equinox.frameworkadmin.equinox,
org.eclipse.equinox.simpleconfigurator.manipulator,
org.eclipse.equinox.p2.touchpoint.natives,
org.eclipse.equinox.frameworkadmin,
org.eclipse.equinox.p2.touchpoint。蝕,
org.eclipse.equinox.p2.garbagecollector
捆綁-RequiredExecutionEnvironment:J2SE-1.5
捆綁-類路徑:,
庫/ JAXB-API-2.1.jar,
庫/ JAXB-impl- 2.1.8.jar,
庫/活化-1.1.jar,
庫/持久-API-1.0.jar,
庫/ STAX-API-1.0-2.jar,
庫/ jcalendar-1.3。 2.jar,
libs/log4j-1.2.13.jar,
libs/miglayout-3.7.jar,
個 庫/的Xalan-2.6.0.jar,
庫/ xercesImpl-2.4.0.jar,
庫/ glazedlists-1.7.0_java15.jar,
庫/ jcommon-1.0.16.jar,
庫/ jfreechart的-1.0.13-experimental.jar,
庫/ jfreechart的-1.0.13-SWT.JAR,
庫/ jfreechart的-1.0.13.jar,
庫/ swtgraphics2d.jar,
庫/ org.sf.feeling.swt.win32.extension_1.0.5.v20081205.jar,
libs/junit-4.5.jar,
libs/dsn.jar,
個 庫/ imap.jar,
庫/ mailapi.jar和
庫/ smtp.jar,
庫/ jnotify-0.93.jar,
庫/ Groovy的全1.7.6.jar,
庫/喬達時間 - 2.0.jar,
庫/公地IO-2.0.1.jar
捆綁激活因子:com.mycompany.mysoftware.rcp.main.Activator
出口型包裝:ca.odell。 glazedlists,
ca.odell.glazedlists.event,
ca.odell.glazedlists.gui,
ca.odell.glazedlists.impl,
ca.odell.glazedlists.impl.adt,
ca.odell.glazedlists.impl.adt.barcode2,
ca.odell.glazedlists.impl.adt.gnutrove,
ca.odell.glazedlists.impl.beans,
ca.odell.glazedlists.impl.ctp,
ca.odell.glazedlists.impl.filter,
ca.odell.glazedlists.impl.gui,
CA .odell.glazedlists.impl.io,
ca.odell.glazedlists.impl.java15,
ca.odell.glazedlists.impl.matchers,
ca.odell.glazedlists.impl.nio,
ca.odell.glazedlists.impl.pmap,
ca.odell.glazedlists.impl.rbp,
ca.odell.glazedlists.impl.sort,
ca.odell.glazedlists.impl.swing,
ca.odell.glazedlists.impl.swt,
ca.odell.glazedlists.io,
ca.odell.glazedlists.jfreechart,
ca.odell.glazedlists。 matchers,
ca.odell.glazedlists.migrationkit,
ca.odell。glazedlists.migrationkit.swing,
ca.odell.glazedlists.migrationkit.swt,
ca.odell.glazedlists.nachocalendar,
ca.odell.glazedlists.swing,
ca.odell.glazedlists.swt,
ca.odell.glazedlists.util.concurrent,
com.mycompany.mysoftware.config.common,
com.mycompany.mysoftware.config.extensions,
com.mycompany.mysoftware.config.generators.common,
com.mycompany.mysoftware.core,
com.mycompany.mysoftware。 core.configs,
com.mycompany.mysoftware.core.extensions,
com.mycompany.mysoftware.core.jobs,
com.mycompany.mysoftware.core.logging,
com.mycompany.mysoftware.core。喜好,
com.mycompany.mysoftware.exception,
com.mycompany.mysoftware.model,
com.mycompany.mysoftware.model.common,
com.mycompany.mysoftware.model.extensions,
融爲一體。 mycompany.mysoftware.model.interfaces,
com.mycompany.mysoftwar e.model.utils,
com.mycompany.mysoftware.properties,
com.mycompany.mysoftware.rcp.actions.common,
com.mycompany.mysoftware.rcp.common,
com.mycompany.mysoftware。 rcp.common.ui,
com.mycompany.mysoftware.rcp.common.ui.actionicons,
com.mycompany.mysoftware.rcp.common.ui.components,
com.mycompany.mysoftware.rcp.dialogs。常見的,
com.mycompany.mysoftware.rcp.dialogs.components,
com.mycompany.mysoftware.rcp.dialogs.components.validators,
個 com.mycompany.mysoftware.rcp.dialogs.editors,
com.mycompany.mysoftware.rcp.dialogs.misc,
com.mycompany.mysoftware.rcp.editors.appmap,
com.mycompany.mysoftware。 rcp.extensions,
com.mycompany.mysoftware.rcp.gef.actions,
com.mycompany.mysoftware.rcp.gef.common,
com.mycompany.mysoftware.rcp.gef.editpolicies,
融爲一體。 mycompany.mysoftware.rcp.gef.extensions,
com.mycompany.mysoftware.rcp.gef.figures.common,
com.mycompa ny.mysoftware.rcp.gef.parts,
com.mycompany.mysoftware.rcp.gef.parts.common,
com.mycompany.mysoftware.rcp.main,
com.mycompany.mysoftware.rcp.views,
com.mycompany.mysoftware.rcp.views.common,
com.mycompany.mysoftware.rcp.views.logs,
com.mycompany.mysoftware.security.providers.extensions,
com.mycompany.mysoftware。 services.providers.extensions,
com.mycompany.mysoftware.tools,
com.mycompany.mysoftware.tools。比較,
com.mycompany.mysoftware.tools.groovy,
com.mycompany.mysoftware.utils.misc,
com.mycompany.mysoftware.utils.misc.convert,
com.mycompany.mysoftware.utils。 misc.xml,
javax.activation中,
javax.mail,
javax.xml.bind中,
javax.xml.bind.annotation,
javax.xml.bind.annotation.adapters,
的javax。 xml.bind.attachment,
javax.xml.bind.helpers ,
javax.xml.bind.util,
net.miginfocom.swt,
org.apache.log4j,
org.apache.log4j.spi,
org.apache.xml.serializ
Bundle-位置:插件
捆供應商:myCompany的

模塊1清單
ManifestVersion:1.0
捆綁-ManifestVersion:2
捆綁-名稱:mysoftware myCompany的模塊1插件
捆綁-SymbolicName:com.mycompany.mysoftware.mycompanyModule1;單:=真
捆綁-版本:2.7.2.qualifier
Eclipse的RegisterBuddy:COM。 mycompany.mysoftware.deps.mycompany
捆綁激活因子:com.mycompany.mysoftware.mycompanyModule1.Activator
要求束:org.eclipse.ui,
org.eclipse.core.runtime,
com.mycompany .mysoftware.core,
com.mycompany.mysoftware.weblogic,
com.mycompany.mysoftware.shares,
com.mycompany.mysoftware.deps.mycompany,
com.mycompany.mysoftware.jboss,
com.mycompany.mysoftware.jee ,
com.mycompany.mysoftware.deps.jboss
捆綁-ActivationPolicy:懶
捆綁-RequiredExecutionEnvironment:JavaSE的-1.6
捆綁-類路徑:,
庫/公地集合-3.2.jar,
libs/groovy-all-1.7.6.jar,
個 庫/速度-1.7.jar,
庫/公地琅-2.4.jar,
庫/軸-1.4.jar,
庫/公地發現-0.2.jar
捆供應商:myCompany的
出口型套餐:com.mycompany.mysoftware.mycompanyModule1.cmdb,
com.mycompany.mysoftware.mycompanyModule1.jboss,
com.mycompany.mysoftware.mycompanyModule1.jboss.deployment,
com.mycompany.mysoftware。 mycompanyModule1.jmx.engine,
com.mycompany.mysoftware.mycompanyModule1。命名,
com.mycompany.mysoftware.mycompanyModule1.network,
org.apache.commons.collections

單詞數清單
ManifestVersion:1.0
捆綁-ManifestVersion:2
捆綁-名稱:mysoftware myCompany的單詞數
捆綁-SymbolicName:com.mycompany.mysoftware.mycompanyModule2;單:= TRUE
捆綁-版本:2.7.2.qualifier
捆綁活化劑:com.mycompany.mysoftware.mycompanyModule2.Activator
捆供應商:myCompany的& Cie的
要求-軟件包:org.eclipse.ui,
org.eclipse.core.runtime,
COM .mycompany.mysoftware.core,
org.eclipse.gef,
com.mycompany.mysoftware.deps.jboss
捆綁-RequiredExecutionEnvironment:JavaSE的-1.6
捆綁-ActivationPolicy:懶
精通ORT-包裝:com.mycompany.mysoftware.mycompanyModule2
捆綁-CLASSPATH中,
庫/ JUnit的-4.5.jar

添加的依賴只是增加了上線的單詞數的 「要求束」 一節中清單,帶有Module1的符號名稱。

+0

您是否在使用目標平臺?插件是否包含在內? –

+0

我還沒有重新包裝我的項目,所有事情都發生在Eclipse中。 –

+1

請您爲每個插件發佈清單(沒有依賴項)? – katsharp

回答

0

你有沒有嘗試重新輸出從m1到m2的核心依賴關係? 你可以這樣做,我打開m1的清單編輯器,然後在依賴性選項卡中選擇核心並單擊屬性按鈕。然後可以選擇重新導出插件的代碼。例如,如果您有m2 <- m1 <- core,那麼通過'm1重新導出核心依賴關係'應使它們在m2中可見。

希望這會有所幫助