Robert Munteanu created SLING-3906:
--------------------------------------

             Summary: JUnit Remote Tests Runners: dependency on 
org.apache.sling.testing.tools.sling needs to be optional
                 Key: SLING-3906
                 URL: https://issues.apache.org/jira/browse/SLING-3906
             Project: Sling
          Issue Type: Bug
          Components: Testing
    Affects Versions: JUnit Remote Tests Runners 1.0.8
            Reporter: Robert Munteanu
            Assignee: Robert Munteanu
             Fix For: JUnit Remote Tests Runners 1.0.10


The {{org.apache.sling.junit.remote}} is no longer resolved for some JUnit 
tests on Jenkins:

{code}25.08.2014 13:57:37.610 *INFO* [OsgiInstallerImpl] 
org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start 
bundle org.apache.sling.junit.remote [110]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unresolved constraint in bundle 
org.apache.sling.junit.remote [110]: Unable to resolve 110.0: missing 
requirement [110.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.sling.testing.tools.sling)(version>=1.0.0)(!(version>=2.0.0)))
        at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
        at 
org.apache.sling.installer.core.impl.tasks.BundleStartTask.execute(BundleStartTask.java:93)
        at 
org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:735)
        at 
org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:249){code}

The fix to apply here is to make the import optional, just like the import for 
{{org.apache.sling.testing.tools.http}} .



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to