Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem with dependency resolution when running tests with Tycho surefire
  • From: "Tom Bryan (tombry)" <tombry@xxxxxxxxx>
  • Date: Wed, 23 Oct 2019 01:51:00 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NSKQCjqU+jcHUoQUKmVFqGsMvc4PZg8Mo7Kz80fC/Xk=; b=aIXkB3tvhP0JPbnb1zPsl1Qd05oxedQpYER4UUje1wOcrrdj2wXjmdNtF7sGtnsCCumyVK24eaIqDaUH0hA7R9uo7UOK8sJJU9OSycSuXxy0S/HiJH1z/cSjb2tzxUfnyw4ehkSsNMOhabYApr1lh1WIUnX5Rwh9+Elc+ojNTsRqnAbl5ea6mp9ZS4z54t2ptJCD47q61cWc++oI5XKt8ze3KgKpez6BNPeIBuLgDDNTMVUey9VkRIgKgRIOhsgOrxywiAZMdtGYPaikzUjQhhQN3BerLCAq+m6zI+aY231zaZbkFeKkkVnfx/Av0UDQIeuBCyEPUdSMYHz1JegYpQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=Nwa2YfzapXd3ULbJ/eU3zJFSZTKaCk5SOJwiPiGVVcUVvLeHUmTQp9a7DW1P5Dry8v67mGTWROqG1hF4LRMhHFfHZNkCX92ZtQ/FTKk98ZzZe7Mw33yis9/xEBXvRDI8rm1ArQTr8l2BwrAuBWmBdpjJCBvYsXGe5jAhgmlLGs2BajRC6nxT97kv4LjZTRBwN1TXeX1e44V44pbpSEocWigvnhw8JP3jVETFRggVKGxDPFpWqwf8SL3uYWsC4w06UqKcU2I/0wsIN5q8SLKs1C6jrxTfayBmSsdcTAbdT5QJhZNZ7sWCJ1ckRGtjKtugrN/r1mjiV2Y1/0Jh56Baig==
  • Delivered-to: tycho-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:3VOq9BcpRWwgxgFYt2rEDvYilGMj4e+mNxMJ6pchl7NFe7ii+JKnJkHE+PFxlwKYD57D5adCjOzb++D7VGoM7IzJkUhKcYcEFnpnwd4TgxRmBceEDUPhK/u/cys/Ft5TfFRk5Hq8d0NSHZW2ag==
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AQHViGY6Iqp+r6uDU0a4guLTBk9pCqdnNMeA
  • Thread-topic: [tycho-user] Problem with dependency resolution when running tests with Tycho surefire
  • User-agent: Microsoft-MacOutlook/10.10.f.191014

Took a quick look, and it looks like the maintainer forgot to bump the Bundle-Version for the net.sourceforge.plantuml.eclipse.imagecontrol plug-in up to 1.1.24.qualifier.  Therefore, the build is only going to create version 1.2.23.


If you change that Bundle-Version to 1.1.24.qualifier and rebuild, I suspect that it'll work.

Oddly, they bumped up the Bundle-Version for net.sourceforge.plantuml.jdt, but the Require-Bundle still only requires version 1.1.19 of the imagecontrol plug-in.  I suspect that that's also a mistake, but that's probably why the regular build does not get an error.  

At least one test plug-in asks for version 1.2.24.qualifier of the imagecontrol plug-in,, and the build is only going to create version 1.2.23.  That's why you're getting the error.


On 10/21/19, 7:21 PM, "tycho-user-bounces@xxxxxxxxxxx on behalf of Hallvard Trætteberg" <tycho-user-bounces@xxxxxxxxxxx on behalf of hal@xxxxxxx> wrote:

    I'm using Tycho to build plantuml (plugins, features and repository), and suddenly have started getting dependency resolution errors when running UI tests. I discovered it when upgrading to Tycho 1.5, and I'm pretty sure it worked with 1.3. However, when rolling back, I get the same errors. The build is pomless, with the Tycho version indicated in the .mvn/extensions.xml file. The target refers to Luna, i.e. a pretty old target, but it did work pretty recently. I tried upgrading to maven 3.6.2 (from 3.3), but needed to downgrade to 3.6.0. Here's the output of mvn --version:
    Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
    Maven home: /usr/local/Cellar/maven@3.5/3.5.4/libexec
    Java version: 1.8.0_222, vendor: Eclipse OpenJ9, runtime: /Users/hal/.sdkman/candidates/java/8.0.222.j9-adpt/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
    The build consists of several ordinary plugins and test plugins. Compiling works, it's when running the (UI) tests with tycho-surefire, which is supposed to launch Eclipse, I get the dependency resolution error:
    [ERROR] Cannot resolve project dependencies:
    [ERROR]   Software being installed: net.sourceforge.plantuml.eclipse.tests 1.1.24.qualifier
    [ERROR]   Missing requirement: net.sourceforge.plantuml.eclipse.tests 1.1.24.qualifier requires 'osgi.bundle; net.sourceforge.plantuml.eclipse.imagecontrol 1.1.24.qualifier' but it could not be found
    The strange thing is that the missing dependency is to one of the plugins (net.sourceforge.plantuml.eclipse.imagecontrol) in the same build that resolved correctly during compilation. The build output for that plugin seems ok. There are no other dependency errors, I'm not sure how or if it would be reported if net.sourceforge.plantuml.eclipse.imagecontrol missed some dependencies. That imagecontrol plugin mainly depends on swt and jface, but as mentioned there are no messages about missing (transitive) dependencies. BTW, I have a dependency in the pom to the eclipse-feature org.eclipse.e4.rcp, but there is no reference to it in the build output.
    I've read the release notes for 1.4 and 1.5, and didn't see anything that should break the existing setup. I'm clueless to what to do, any suggestions?
    Hallvard Trætteberg (hal@xxxxxxxxxxx)
    Associate Professor, ISSE group, Dept. of Computer Science at the 
    Norwegian University of Science and Technology
    tycho-user mailing list
    To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top