Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problems using eclipse-repository package type

Thanks for the help.

I am now having more problems:

Assuggested below, I have created several plugins from jars.

They have been built as eclipse-plugin packages and installed into my local maven repository.

I am able to add them as dependencies into the Required Plugins section of the Manifect.MF file.

However, they do not appear to be being picked up by the code within the plugin that depends on them.

For example, I am getting the error: The import com.db.bandwagon cannot be resolved

Here is my manifest.mf file:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 1.7.0 (Oracle Corporation)
Built-By: morlleo
Build-Jdk: 1.7.0
Export-Package: com.db.osmosis.client;uses:="com.db.osmosis.client.tra
 nsport,com.db.osmosis.client.transport.bandwagon";version="1.0.2.SNAP
 SHOT",com.db.osmosis.client.transport;uses:="com.db.osmosis.client,co
 m.db.osmosis.client.transport.bandwagon";version="1.0.2.SNAPSHOT",com
 .db.osmosis.client.transport.bandwagon;uses:="com.db.osmosis.client.t
 ransport,com.db.osmosis.client";version="1.0.2.SNAPSHOT",com.db.osmos
 is.util;uses:="com.db.osmosis.client";version="1.0.2.SNAPSHOT"
Bundle-ClassPath: .,bandwagon-reactor-0.5.4-RC1.jar,log4j-1.2.15.jar,b
 andwagon-collections-0.5.4-RC1.jar,bandwagon-log-0.5.4-RC1.jar,bandwa
 gon-core-0.5.4-RC1.jar,bandwagon-marshal-0.5.4-RC1.jar,osmosis.bandwa
 gon-1.0.2-SNAPSHOT.jar,bandwagon-sessions-0.5.4-RC1.jar
Tool: Bnd-0.0.357
Bundle-Name: Osmosis Client
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-Vendor: Deutsche Bank
Bundle-Version: 1.0.2.qualifier
Bnd-LastModified: 1318412789067
Bundle-ManifestVersion: 2
Bundle-SymbolicName: com.db.osmosis.client
Embed-Dependency: *;scope=compile|runtime
Originally-Created-By: Apache Maven Bundle Plugin
Require-Bundle: com.db.bandwagon.collections;bundle-version="0.5.4",
 com.db.bandwagon.core;bundle-version="0.5.4",
 com.db.bandwagon.log;bundle-version="0.5.4",
 com.db.bandwagon.marshal;bundle-version="0.5.4",
 com.db.bandwagon.mixer;bundle-version="0.5.4",
 com.db.bandwagon.mixernet;bundle-version="0.5.4",
 com.db.bandwagon.reactor;bundle-version="0.5.4",
 com.db.bandwagon.sessions;bundle-version="0.5.4",
 org.apache.log4j;bundle-version="1.2.13"

Just wondering why they cannot be found as they are specified within the manifest.

Another strange thing is that within the Unused Dependencies dialog, all of the plugins that have been added are appearing as unused.

Is this because eclipse cannot look in the maven repositories for its dependencies?

I assumed that as I had added the Tycho Configurator to my Eclipse install that this would be dealt with.

Again, this may be a simple/stupid question, but again any help would be greatly appreciated. I have been going around in circles for days with these issues.

Thanks,

Leon.
-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: 11 October 2011 16:46
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Problems using eclipse-repository package type

Although there are other ways to depend on artifacts available from
maven repositories [1], "converted" projects should still work with tycho.

Make sure that actual jar files are part of their respected converted
projects, i.e. not referenced from local repository, the projects use
packaging=eclipse-plugin and are included in the maven build as <module>
projects.

[1]
https://docs.sonatype.org/display/TYCHO/Dependency+on+pom-first+artifacts

--
Regards,
Igor

On 11-10-11 11:36 AM, Leon Morley wrote:
> Sorry,
>
> They are converted to plug-ins by using the "New Plugin From Existing JAR Archive" project.
>
> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
> Sent: 11 October 2011 16:15
> To: tycho-user@xxxxxxxxxxx
> Subject: Re: [tycho-user] Problems using eclipse-repository package type
>
> When you say "converted to plugins", what do you mean by this exactly?
> How are these converted plugins made available to the build?
>
> --
> Regards,
> Igor
>
> On 11-10-11 10:59 AM, Leon Morley wrote:
>> Hi
>>
>> That works for me now, so thanks for the reply.
>>
>> I have one further question and was wondering if there was a pattern I should be following to implement it.
>>
>> I have several jar files at the moment which are within a Maven repository. These are required in the feature plugin which I have created, so they have been converted to plugins and added to the plugins section of the feature.
>>
>> So, for example:
>>
>> bandwagon-collections-0.5.4-RC1.jar
>>
>> is now held within the feature as a plugin as:
>>
>> bandwagon-collections 0.0.0
>>
>> I am now trying to build the feature, however I am receiving the following error:
>>
>> [INFO] {org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1, osgi.ws=win32, osgi.arch=x86, osgi.os=win32, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}
>> [INFO] [Software being installed: com.db.osmosis.dev.feature.feature.group 1.0.2.qualifier, Missing requirement: com.db.osmosis.dev.feature.feature.group 1.0.2.qualifier requires 'com.db.bandwagon.core 0.0.0' but it could not be found]
>> [ERROR] Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable. ->   [Help 1]
>>
>> I am really not sure what I should do next here. Should I be adding dependencies to the pom and also add the
>> <pomDependencies>consider</pomDependencies>   option?
>>
>> I think the real issue is that it is looking for the plugin which does not exist in my local maven repository at all.
>>
>> I am sorry if this seems to be a simple question, but I am still very new to tycho, and any help would be greatly appreciated.
>>
>> Regards,
>>
>> Leon.
>> -----Original Message-----
>> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
>> Sent: 11 October 2011 14:02
>> To: tycho-user@xxxxxxxxxxx
>> Subject: Re: [tycho-user] Problems using eclipse-repository package type
>>
>> Feature version in category.xml looks suspicious. Where does
>> "1.0.0.201108051307" come from? If your project version has
>> 1.0.2-SNAPSHOT in pom.xml and I assume 1.0.2.qualifier in feature.xml,
>> you should use 1.0.2.qualifier in category.xml as well.
>>
>> --
>> Regards,
>> Igor
>>
>> On 11-10-11 8:12 AM, Leon Morley wrote:
>>> Thanks for the quick response Igor:
>>>
>>> Yes, I have added the feature to the category.xml.
>>>
>>> The xml is below:
>>>
>>>      <?xml version="1.0" encoding="UTF-8" ?>
>>> <site>
>>>     <feature url="features/com.db.osmosis.dev.feature_1.0.0.201108051307.jar" id="com.db.osmosis.dev.feature" version="1.0.0.201108051307">
>>>      <category name="com.db.osmosis.dev.repository" />
>>>      </feature>
>>>      <category-def name="com.db.osmosis.dev.repository" label="com.db.osmosis.dev.repository" />
>>>      </site>
>>>
>>> When I run the build however I get the following output:
>>>
>>> [INFO] Cannot complete the request.  Generating details.
>>> [INFO] {org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1, osgi.ws=win32, osgi.arch=x86, osgi.os=win32, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}
>>> [INFO] [Software being installed: com.db.osmosis.dev.repository raw:1.0.2.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.2-SNAPSHOT, Missing requirement: com.db.osmosis.dev.repository raw:1.0.2.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.2-SNAPSHOT requires 'com.db.osmosis.dev.feature.feature.group [1.0.0.201108051307]' but it could not be found]
>>> [ERROR] Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable. ->    [Help 1]
>>> org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable.
>>> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
>>>
>>> There is a version in the maven repository 1.0.2-SNAPSHOT
>>>
>>> However, it does not appear to be trying to reference it.
>>>
>>> So from your email are you saying that I should not be referencing anything within the target platform within the category.xml file, and should be doing it in some other way?
>>>
>>> Regards,
>>>
>>> Leon.
>>>
>>>
>>> -----Original Message-----
>>> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
>>> Sent: 11 October 2011 12:43
>>> To: tycho-user@xxxxxxxxxxx
>>> Subject: Re: [tycho-user] Problems using eclipse-repository package type
>>>
>>>
>>>
>>> On 11-10-11 6:45 AM, Leon Morley wrote:
>>>> Hi
>>>>
>>>> I have been trying to build an eclipse-repository project with no real
>>>> luck at the moment. I am not sure I am doing things completely
>>>> correctly, but hope that somebody is able to help.
>>>>
>>>> I have build a couple of plug-in projects successfully using tycho.
>>>>
>>>> I have also built an eclipse-feature package using tycho.
>>>>
>>>> My problem now is that I want to dynamically create an
>>>> eclipse-repository based on the output from the builds above.
>>>>
>>>> I have created a category.xml file which only references a feature which
>>>> is part of my existing target platform and not the feature generated as
>>>> part of the builds above.
>>>>
>>>> Is it possible to dynamically create the category.xml file so that I can
>>>> just create one on the fly to create an update site on the fly?
>>>>
>>>
>>> Did you try adding all desired features to category.xml? Tycho is
>>> expected to resolve dependencies from build reactor first, then from
>>> local maven repository and only then from remote locations. So bundles
>>> and feature you built locally are expected to be resolved without any
>>> special configuration if you add them to category.xml.
>>>
>>> --
>>> Regards,
>>> Igor
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>
>>> ---
>>> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
>>> Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>> ---
>> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
>> Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
> ---
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

---
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.


Back to the top