[
https://issues.apache.org/jira/browse/HTTPCORE-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721067#comment-14721067
]
Oleg Kalnichevski commented on HTTPCORE-406:
--------------------------------------------
Jenkins complaints about not being able to resolve a SNAPSHOT version of the
test artifact. I understand this has nothing to do with the test cases you have
contributed per se. This is likely to be about the way Jenkins has been setup.
I had a similar issue when trying to make HttpClient build depend on a SNAPHOT
version of HttpCore.
Feel free to ignore it.
{noformat}
Running org.apache.http.osgi.ConcurrentIT
17:48:16.842 [main] INFO o.o.p.e.s.DefaultExamSystem - Pax Exam System
(Version: 3.5.0) created.
17:48:16.880 [main] INFO o.o.p.e.j.i.ProbeRunner - creating PaxExam runner for
class org.apache.http.osgi.ConcurrentIT
17:48:16.906 [main] INFO o.o.p.e.j.i.ProbeRunner - running test class
org.apache.http.osgi.ConcurrentIT
17:48:17.467 [main] WARN o.o.p.u.m.i.AetherBasedResolver - Error resolving
artifactorg.apache.httpcomponents:httpcore:jar:tests:5.0-alpha1-SNAPSHOT:Could
not find artifact
org.apache.httpcomponents:httpcore:jar:tests:5.0-alpha1-SNAPSHOT
{noformat}
https://builds.apache.org/view/H-L/view/HttpComponents/job/httpcomponents-core-5.x/53/org.apache.httpcomponents$httpcore-osgi/console
Oleg
> Refactor some test code to be sharable with OSGi tests
> ------------------------------------------------------
>
> Key: HTTPCORE-406
> URL: https://issues.apache.org/jira/browse/HTTPCORE-406
> Project: HttpComponents HttpCore
> Issue Type: Task
> Reporter: Benson Margulies
> Fix For: 4.4.2, 5.0-alpha1
>
>
> It would be good to use the test server when testing the OSGi bundle.
> However, it's in src/test/java.
> There are three ways to reuse it:
> *
> [https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html]
> business
> * create another Maven subproject.
> *
> [http://www.mojohaus.org/build-helper-maven-plugin/add-test-source-mojo.html]
> and borrow the source directory.
> While I'd usually consider the third to be really ugly, it does make it easy
> to get the server into the 'test bundle' built by pax-exam.
> I intend to try to work out how to use the first alternative.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]