java - Attempting to import a package exported by another plugin. Import doesn't resolve. -


i'm trying make plugin eclipse, had migrate code being duplicated between similar project , own new project. in new project set package needed exported via manifest file. adding exported package dependency works , option import shows in little "quick fix" box.

when add import declaration error occurs , says import cannot resolved. i'm little perplexed because local project , exported package can added dependency without issues , tooltip popup tells me import package cannot resolve dependency?

here full error message the import de.fu_berlin.inf.archnemesis.core cannot resolved

here manifest plugin exporting package:

manifest-version: 1.0 bundle-manifestversion: 2 bundle-name: archnemesis-core-rule bundle-symbolicname: archnemesis-core-rule bundle-version: 1.0.0.qualifier require-bundle: de.fu_berlin.inf.archnemesis;bundle-version="1.0.0" export-package: de.fu_berlin.inf.archnemesis.core.chralx;uses:="org.eclipse.emf.ecore,de.fu_berlin.inf.archnemesis.archnemesis" bundle-requiredexecutionenvironment: javase-1.7 

here manifest plugin importing:

manifest-version: 1.0 bundle-manifestversion: 2 bundle-name: archnemesis-pmd-rule bundle-symbolicname: archnemesis-pmd-rule bundle-version: 1.0.0.qualifier fragment-host: net.sourceforge.pmd.eclipse.plugin;bundle-version="4.0.7.v20150522-1709" bundle-requiredexecutionenvironment: javase-1.7 require-bundle: de.fu_berlin.inf.archnemesis;bundle-version="1.0.0",  org.junit import-package: de.fu_berlin.inf.archnemesis.core.chralx,  net.sourceforge.pmd,  net.sourceforge.pmd.eclipse.core 

the package i'm trying work de.fu_berlin.inf.archnemesis.core.chralx package.

you must list every package want plugin export. have listed de.fu_berlin.inf.archnemesis.core.chralx not de.fu_berlin.inf.archnemesis.core 1 try use.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -