Hi Steve,

is it a Karaf Pax-Exam test, or a "pure" OSGi test.
Cause both differ in resolving artifacts. The repository option you used
only works for "pure" OSGi tests.
If you have a Karaf-Container test, you'll need to alter the
org.ops4j.pax.url.mvn.cfg file within your test:

editConfigurationFileExtend("org.ops4j.pax.url.mvn.cfg",
"org.ops4j.pax.url.mvn.repositories", "
http://repository.jboss.org/nexus/content/groups/public/";)

regards, Achim



2015-05-28 21:11 GMT+02:00 sebersole <[email protected]>:

> I am having trouble with this via Pax Exam.
>
> I have an artifact that is currently not available in Maven Central.  So I
> specify the appropriate repository in Pax Exam @Configuration method,
> using:
>
>     return options(
>             repositories(
>                     repository(
> "http://repository.jboss.org/nexus/content/groups/public/"; )...
>             )
>     );
>
> However, I keep getting errors that the artifact cannot be resolved:
>
> shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not
> find artifact org.jboss.logging:jboss-logging:jar:3.3.0.Final in central
> (http://repo1.maven.org/maven2/)
>
> Is this just a bad error message?  Or is Karaf really only looking in Maven
> Central even though I (thought I) told it to look in JBoss Nexus as well?
>
> As you can see, the artifact is there...
>
>
> https://repository.jboss.org/nexus/content/groups/public/org/jboss/logging/jboss-logging/3.3.0.Final/
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Add-additional-local-maven-repository-how-tp4028299p4040638.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to