I fixed the original issue by manually downloading the missing dependencies but now the tests in activemq-karaf-itest (ActiveMQAMQPBrokerFeatureTest and ActiveMQBrokerNdCamelFeatureTest) are failing and I am getting the following error:
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve activemq/5.16.0.SNAPSHOT: missing requirement [activemq/5.16.0.SNAPSHOT] osgi.identity; osgi.identity=activemq-client; type=karaf.feature; version="[5.16.0.SNAPSHOT,5.16.0.SNAPSHOT]" [caused by: Unable to resolve activemq-client/5.16.0.SNAPSHOT: missing requirement [activemq-client/5.16.0.SNAPSHOT] osgi.identity; osgi.identity=spring; type=karaf.feature; version="[4.0.0,5.0.0)"] ... java.lang.RuntimeException: Container never came up ... java.lang.RuntimeException: Cannot get the remote bundle context The full stacktrace is available at - https://pastr.io/view/ZJytQSGbS32 P.S. The latest build on Jenkins might be failing because of the same issue. On Fri, Feb 7, 2020 at 5:30 PM chughpiyush <[email protected]> wrote: > Hey all! > > I am stuck due to failing tests in the ActiveMQ master branch code. Since > it > seems to be an integration test issue, I didn't create a JIRA ticket for > the > same. I'll try to share all the information I can for someone to help me: > > - Why am I doing code changes? > - How am I impacted? > - Where exactly am I stuck? > - My suspected reason for failing test > - How to potentially reproduce it? > > TL;DR - *ActiveMQBrokerNdCamelFeatureTest* failing as unable to download > artefacts from *http://repo1.maven.org/maven2/* > > 1. Why am I doing code changes? > > I want to contribute to ActiveMQ project on Github and I am doing some > version updates in parent pom of ActiveMQ. I did my changes and just before > pushing, I am running smoke tests to be sure I haven't broken anything. I > am > using *-Dactivemq.tests=smoke* to run tests. It was here when I started to > notice failing tests. > > IDE - IntelliJ > Java version - 8 > > 2. - How am I impacted? > > I think this is an existing issue but still, I am not sure if I should push > my proposed changes until these tests are fixed. > The Jenkins job on https://builds.apache.org/ might not have failed as it > cached all dependencies already. > > 3. Where exactly am I stuck? > > 2 tests are failing for me in *activemq-karaf-itest* module - > *ActiveMQBrokerNdCamelFeatureTest* and *ActiveMQAMQPBrokerFeatureTest*. > Initially they were failing due to: > > > > I fixed it by updating *pax-exam-version* to *4.13.1*. Now I am running > *testProduceConsume* test from *ActiveMQAMQPBrokerFeatureTest* in IntelliJ. > This is the log of the error I get: > > > > 4. My suspected reason for failing test > > If you notice, it is trying to get an artifact from > *http://repo1.maven.org/maven2/*, but we know that *http* is no more > supported. I think some library is still using *http* for maven artifact > download and that is why it is failing. I am not able to figure out which > library is the culprit. I got this exception for many different artifacts, > so in my try to fix it I manually ran *mvn dependency:get* to download > those > failing dependencies, and it partially worked since the missing artifacts > kept on changing. > > 5. How to potentially reproduce it? > > - Get latest master branch code. > - Update *pax-exam-version* to *4.13.1* > - Delete some or all of the following dependencies from your local maven > cache: > > > > Run *ActiveMQAMQPBrokerFeatureTest* test in your IDE. I think you should > get > a similar stacktrace. > Any help to fix this will be appreciated. > --- > > Thanks & Regards, > Piyush Chugh > > > > > -- > Sent from: > http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-f2368404.html >
