Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6079

commons.messaging.mail build fails on Jenkins

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Commons
    • None

    Description

      The build fails on jenkins, apparently due to the same root cause as SLING-6704:

      java.io.IOException: Error resolving artifact org.apache.sling:org.apache.sling.commons.messaging:jar:0.0.1-SNAPSHOT: Could not find artifact org.apache.sling:org.apache.sling.commons.messaging:jar:0.0.1-SNAPSHOT

      However, when I try the same approach:

      diff --git a/bundles/commons/org.apache.sling.commons.messaging.mail/src/test/java/org/apache/sling/commons/messaging/mail/MailTestSupport.java b/bundles/commons/org.apache.sling.commons.messaging.mail/src/test/java/org/apache/sling/commons/messaging/mail/MailTestSupport.java
      index a1edb6c..d045f80 100644
      --- a/bundles/commons/org.apache.sling.commons.messaging.mail/src/test/java/org/apache/sling/commons/messaging/mail/MailTestSupport.java
      +++ b/bundles/commons/org.apache.sling.commons.messaging.mail/src/test/java/org/apache/sling/commons/messaging/mail/MailTestSupport.java
      @@ -36,6 +36,7 @@ import static org.ops4j.pax.exam.CoreOptions.junitBundles;
       import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
       import static org.ops4j.pax.exam.CoreOptions.options;
       import static org.ops4j.pax.exam.CoreOptions.provision;
      +import static org.ops4j.pax.exam.CoreOptions.repository;
       import static org.ops4j.pax.exam.CoreOptions.wrappedBundle;
       
       public abstract class MailTestSupport {
      @@ -78,6 +79,8 @@ public abstract class MailTestSupport {
           protected Option[] baseConfiguration() {
               final String filename = System.getProperty("bundle.filename");
               return options(
      +            repository("https://repo.maven.apache.org/maven2/").id("central"),
      +            repository("https://repository.apache.org/snapshots/").id("apache-snapshots").allowSnapshots(),
                   junitBundles(),
                   provision(
                       wrappedBundle(mavenBundle().groupId("org.subethamail").artifactId("subethasmtp").versionAsInProject()),

      it fails to find a pax-exam bundle:

      java.io.IOException: Error resolving artifact org.ops4j.pax.exam:pax-exam-inject:jar:4.9.1: Could not find artifact org.ops4j.pax.exam:pax-exam-inject:jar:4.9.1

      Attachments

        Issue Links

          Activity

            People

              olli Oliver Lietz
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: