Robert Munteanu created SLING-6079:
--------------------------------------
Summary: commons.messaging.mail build fails on Jenkins
Key: SLING-6079
URL: https://issues.apache.org/jira/browse/SLING-6079
Project: Sling
Issue Type: Bug
Components: Commons
Reporter: Robert Munteanu
Assignee: Oliver Lietz
The build fails on jenkins, apparently due to the same root cause as SLING-6704:
{noformat}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{noformat}
However, when I try the same approach:
{noformat}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()),{noformat}
it fails to find a pax-exam bundle:
{noformat}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{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)