Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Test runtime with platform specific fragments

Hey Tonny,

I really appreciate your help with this, thanks for taking the time to respond.  However, I tried your suggestion but in my stand-alone example I still can't get the tests to run.  I've attached the project if you want to take a look.  Here is the example error that I get:

[INFO] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR]   You requested to install 'bundle example.fragment.win32.win32.x86_64 0.0.0' but it could not be found
[ERROR]

It seems that when the osgi.arch is x86, its activating the extra dependencies.  Not for sure why.


On Mon, Jan 6, 2014 at 6:32 PM, Tonny Madsen <tonny.madsen@xxxxxxxxx> wrote:
Greg,

<extraRequirements combine.children="append"> - as used in my first answer - works fine for me with local (in the reactor) modules. And it influence the reactor build order correctly ;-)

/Tonny

--
Tonny Madsen
My profiles: LinkedIn Twitter Blogger SlideShare



On Mon, Jan 6, 2014 at 10:35 AM, Greg Amerson <gregory.amerson@xxxxxxxxxxx> wrote:
So it appears that as of right now there is no workaround for my setup since I need to add a dependency on another bundle/module in the current reactor?


On Sat, Jan 4, 2014 at 2:50 AM, Tonny Madsen <tonny.madsen@xxxxxxxxx> wrote:
The problem with extraDependencies is that it is *NOT* considered in the reactor reordering! And if you want to have a dependency on another bundle/module from the reactor, then this can be a serious problem - see http://tonnymadsen.blogspot.dk/2013/04/tycho-test-trouble-expectations-and.html

/Tonny

--
Tonny Madsen
My profiles: LinkedIn Twitter Blogger SlideShare



On Fri, Jan 3, 2014 at 12:38 PM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
You should try to explicitly add the fragment as an extraDependency.
It seems to me that because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=394636 , transitive platform-specific dependencies almost always get ignored. If you deal with multiple environments, you'll probably need to spend a hundred lines in your pom.xml to set up profiles. See related scenario: https://bugs.eclipse.org/bugs/show_bug.cgi?id=419147 .

--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

_______________________________________________
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




--
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

_______________________________________________
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




--
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

Attachment: tycho-test-runtime.zip
Description: Zip archive


Back to the top