Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Bundle .... cannot be resolved. Why?
Bundle .... cannot be resolved. Why? [message #1239561] Tue, 04 February 2014 13:27 Go to next message
Damian Nardelli is currently offline Damian NardelliFriend
Messages: 6
Registered: December 2012
Junior Member
Hello,

I'm modifying a deprecated eclipse PDE project. Basically, I need to add a reference to my bundle, so I added it in the plugin's MANIFEST.MF "Require-Bundle", and then I added it in feature.xml. I'm following that process because there are another bundle references working OK in that way.

After that, I click on "Resolve and Materialize", and I see my bundle being downloaded from my Maven Repository, but it is not being copied to .buckminster/tp/plugins and it is not added in .buckminster/tp/artifacts.xml, and my Eclipse keeps saying "Bundle ... cannot be resolved".

What may I be doing wrongly? It's driving me nuts.
I'm using:
Eclipse for RCP and RAP Developers
Version: Juno Service Release 1
Build id: 20121004-1855

More details about my issue:
----------------------------

My bundle's MANIFEST.MF:

Manifest-Version: 1.0
Bnd-LastModified: 1391459538277
Build-Jdk: 1.7.0_25
Built-By: damiann
Bundle-Activator: org.damiox.sce.common.SceCommonActivator
Bundle-ManifestVersion: 2
Bundle-Name: SceCommon
Bundle-SymbolicName: org.damiox.SceCommon
Bundle-Version: 1.1.2
Created-By: Apache Maven Bundle Plugin
Export-Package: org.damiox.sce.common;uses:="org.osgi.framew
ork";version="1.1.2"
Import-Package: org.osgi.framework;version="[1.6,2)",com.eviware.soapui;
resolution:=optional
Tool: Bnd-2.1.0.20130426-122213

I also tried:
- Removing the "Import-Package" tag.
- Removing the "Bundle-Activator" tag.
- The Bundle-Version matches with the version I'm trying to link to located in .buckminster/tp/maven2
- Tried with this MANIFEST.MF also, without success:

Manifest-Version: 1.0
Bnd-LastModified: 1391518700624
Build-Jdk: 1.7.0_25
Built-By: damiann
Bundle-ManifestVersion: 2
Bundle-Name: SceCommon
Bundle-SymbolicName: org.damiox.SceCommon
Bundle-Version: 1.1.4
Created-By: Apache Maven Bundle Plugin
Export-Package: org.damiox.sce.common;version="1.1.4"
Tool: Bnd-2.1.0.20130426-122213




My feature.xml (Highlighting: "Plug-in reference 'org.damiox.SceCommon' cannot be resolved"):

<plugin
id="org.damiox.SceCommon"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

My rmap file:

<locator pattern="^org\.damiox" searchPathRef="mvnrepo-private-releases"/>

<searchPath name="mvnrepo-private-releases">
<provider xsi:type="mp:MavenProvider" readerType="maven2" componentTypes="osgi.bundle,jar" mutable="false" source="true">
<uri format="here_there_is_my_maven_archiva_url" />
<mp:mappings>
<mp:entry name="org.damiox.SceUtil" groupId="org.damiox" artifactId="SceUtil" />
<mp:entry name="org.damiox.SceCommon" groupId="org.damiox" artifactId="SceCommon" />
</mp:mappings>
</provider>
</searchPath>

- In my .buckminster/maven2, I can find my bundle (I checked the previous MANIFEST.MF file from there).
- In my .buckminster/tp/plugins, I cannot find my bundle jar.
- In my .buckminster/tp/artifacts.xml, My bundle jar is not listed in the <artifacts> xml node.
- I keep on clicking on "Resolve and Materialize", and I see my bundle jar is being downloaded again, but it is not being linked to my workspace.

Isn't there a log file or something in buckminster to see what it is actually doing? I'm quite lost.

Thanks in advance,
Damian
Re: Bundle .... cannot be resolved. Why? [message #1239613 is a reply to message #1239561] Tue, 04 February 2014 15:41 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
You should not have source="true" in the maven provider. Source in this context refers to SCM source, i.e. things that
should end up in your workspace rather than in the TP. This is likely the culprit. Also, try using
componentTypes="osgi.bundle" only, skip 'jar'.

- thomas

On 2014-02-04 14:27, Damian Nardelli wrote:
> Hello,
>
> I'm modifying a deprecated eclipse PDE project. Basically, I need to add a reference to my bundle, so I added it in the
> plugin's MANIFEST.MF "Require-Bundle", and then I added it in feature.xml. I'm following that process because there are
> another bundle references working OK in that way.
>
> After that, I click on "Resolve and Materialize", and I see my bundle being downloaded from my Maven Repository, but it
> is not being copied to .buckminster/tp/plugins and it is not added in .buckminster/tp/artifacts.xml, and my Eclipse
> keeps saying "Bundle ... cannot be resolved".
>
> What may I be doing wrongly? It's driving me nuts. I'm using:
> Eclipse for RCP and RAP Developers
> Version: Juno Service Release 1
> Build id: 20121004-1855
>
> More details about my issue:
> ----------------------------
>
> My bundle's MANIFEST.MF:
>
> Manifest-Version: 1.0
> Bnd-LastModified: 1391459538277
> Build-Jdk: 1.7.0_25
> Built-By: damiann
> Bundle-Activator: org.damiox.sce.common.SceCommonActivator
> Bundle-ManifestVersion: 2
> Bundle-Name: SceCommon
> Bundle-SymbolicName: org.damiox.SceCommon
> Bundle-Version: 1.1.2
> Created-By: Apache Maven Bundle Plugin
> Export-Package: org.damiox.sce.common;uses:="org.osgi.framew
> ork";version="1.1.2"
> Import-Package: org.osgi.framework;version="[1.6,2)",com.eviware.soapui;
> resolution:=optional
> Tool: Bnd-2.1.0.20130426-122213
>
> I also tried: - Removing the "Import-Package" tag.
> - Removing the "Bundle-Activator" tag. - The Bundle-Version matches with the version I'm trying to link to located in
> .buckminster/tp/maven2
> - Tried with this MANIFEST.MF also, without success:
>
> Manifest-Version: 1.0
> Bnd-LastModified: 1391518700624
> Build-Jdk: 1.7.0_25
> Built-By: damiann
> Bundle-ManifestVersion: 2
> Bundle-Name: SceCommon
> Bundle-SymbolicName: org.damiox.SceCommon
> Bundle-Version: 1.1.4
> Created-By: Apache Maven Bundle Plugin
> Export-Package: org.damiox.sce.common;version="1.1.4"
> Tool: Bnd-2.1.0.20130426-122213
>
>
>
>
> My feature.xml (Highlighting: "Plug-in reference 'org.damiox.SceCommon' cannot be resolved"):
>
> <plugin
> id="org.damiox.SceCommon"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
> My rmap file:
>
> <locator pattern="^org\.damiox" searchPathRef="mvnrepo-private-releases"/>
> <searchPath name="mvnrepo-private-releases">
> <provider xsi:type="mp:MavenProvider" readerType="maven2" componentTypes="osgi.bundle,jar" mutable="false"
> source="true">
> <uri format="here_there_is_my_maven_archiva_url" />
> <mp:mappings>
> <mp:entry name="org.damiox.SceUtil" groupId="org.damiox" artifactId="SceUtil" />
> <mp:entry name="org.damiox.SceCommon" groupId="org.damiox" artifactId="SceCommon" />
> </mp:mappings>
> </provider>
> </searchPath>
>
> - In my .buckminster/maven2, I can find my bundle (I checked the previous MANIFEST.MF file from there).
> - In my .buckminster/tp/plugins, I cannot find my bundle jar.
> - In my .buckminster/tp/artifacts.xml, My bundle jar is not listed in the <artifacts> xml node.
> - I keep on clicking on "Resolve and Materialize", and I see my bundle jar is being downloaded again, but it is not
> being linked to my workspace.
>
> Isn't there a log file or something in buckminster to see what it is actually doing? I'm quite lost.
> Thanks in advance,
> Damian
>
Re: Bundle .... cannot be resolved. Why? [message #1239623 is a reply to message #1239613] Tue, 04 February 2014 16:10 Go to previous message
Damian Nardelli is currently offline Damian NardelliFriend
Messages: 6
Registered: December 2012
Junior Member
Thomas,

That was the fix. The bundle is being resolved now! Thanks!!

I'm wondering now why when I invoke the action "buckminster.clean" or "bundle.jars" on my project, it shows the following error:
org.eclipse.core.runtime.CoreException: Basedir C:\Proyectos\Java\SCE\Designer\.buckminster\maven2\org\damiox\SceCommon\1.1.8\SceCommon-1.1.8.jar is not a directory
Basedir C:\Proyectos\Java\SCE\Designer\.buckminster\maven2\org\damiox\SceCommon\1.1.8\SceCommon-1.1.8.jar is not a directory

If I invoke the action "bundle.jar", it doesn't show an error.

In my .buckminster\tp\plugins, I only have my jar files (including my bundle that was fixed thanks to your suggestion). I don't have folders for my jars.
I'm using Eclipse Juno with Buckminster 1.5.0.

Sorry but there are a couple of things I don't fully understand:
- Should I add my bundle reference in my feature.xml file?
- Should my bundle dependencies be unpacked in .buckminster\tp\plugins?
- Why may I be getting that "BaseDir" error? I looked it up and I found people asking about that, but I haven't find a solution yet.

Thanks in advance,
Damian Nardelli
Previous Topic:Buckminster reporting skipped tests as failures?
Next Topic:site.p2 invokes other actions?
Goto Forum:
  


Current Time: Fri Mar 29 00:11:19 GMT 2024

Powered by FUDForum. Page generated in 0.03461 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top