Home » Archived » Buckminster » Bundle .... cannot be resolved. Why?
Bundle .... cannot be resolved. Why? [message #1239561] |
Tue, 04 February 2014 13:27  |
Damian Nardelli 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   |
|
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
>
|
|
| |
Goto Forum:
Current Time: Sat Dec 02 19:37:47 GMT 2023
Powered by FUDForum. Page generated in 0.01638 seconds
|