Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-364

Aries itests projects need to use version 1.2 of the Servicemix depends-maven-plugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2
    • Application, JMX, JPA, Transaction, Web
    • None

    Description

      All Aries itests projects need to generate a dependencies.properties file, so that Pax Exam based tests can properly retrieve versions of artifacts to be used at runtime. Some Aries projects use maven-paxexam-plugin to generate the dependencies.properties file, but most of them use Servicemix depends-maven-plugin. Unfortunately, the version of depends-maven-plugin used in most of Aries projects (1.1) is buggy. The generated dependencies.properties file sometimes contains resolved snashot versions (i.e. 0.2-incubating-20100717.020505-16) instead of the base versions (i.e. 0.2-incubating-SNAPSHOT). This causes Pax Exam tests to fail from time to time with an exception similar to this one:

      java.lang.RuntimeException: URL
      [mvn:org.apache.aries/org.apache.aries.util/0.2-incubating-20100717.020505-16]
      could not be resolved.
      at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)
      at java.net.URL.openStream(URL.java:1010)
      at org.ops4j.pax.runner.platform.internal.StreamUtils.streamCopy(StreamUtils.java:112)
      at org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:631)
      at org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:407)
      at org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:186)
      at org.ops4j.pax.runner.Run.startPlatform(Run.java:671)
      at org.ops4j.pax.runner.Run.start(Run.java:220)
      at org.ops4j.pax.runner.Run.start(Run.java:176)
      ...

      This issue has already been fixed in SMX depends-maven-plugin. For details see this SMX revision:
      http://svn.apache.org/viewvc?view=revision&revision=770436
      and the fix is availble in version 1.2 of the plugin.

      Patch coming soon.

      Attachments

        1. aries-364.patch
          3 kB
          Bartosz Kowalewski

        Activity

          People

            gawor@mcs.anl.gov Jarek Gawor
            bartosz Bartosz Kowalewski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: