Hi,

Sorry but, what is the plugin repository for getting access to the SNAPSHOT
via Maven, guess it's not available from mvnrepository.com?

Thank you. Regards /Tom

On Fri, Jan 10, 2020 at 4:08 PM Francois Papon <francois.pa...@openobject.fr>
wrote:

> Hi,
>
> Can you try with the 3.1.0-SNAPSHOT and the -U maven option?
>
> regards,
>
> François
> fpa...@apache.org
>
> Le 10/01/2020 à 16:02, Tom Coudyzer a écrit :
> > Hi,
> >
> > Still no luck. Changed it to camel-core-engine and cleared the Maven
> cache
> > after that.
> >
> > This is the code I'm testing (route + JUnit test)
> >
> > Test
> > =====
> >
> > import java.util.HashMap;
> >
> > import org.apache.camel.builder.RouteBuilder;
> > import org.apache.camel.test.junit4.CamelTestSupport;
> > import org.junit.Test;
> >
> > import com.google.gson.JsonObject;
> >
> > import camel.samples.routes;
> > import camel.samples.utils.GsonUtils;
> >
> > public class APIRouteTest extends CamelTestSupport {
> >
> > @Override
> >    protected RouteBuilder createRouteBuilder() throws Exception {
> >        return new APIRoute();
> >    }
> >
> >
> > @Test
> > public void testResponseHasId() {
> >
> >      HashMap<String, Object> headers = new HashMap<>();
> >      headers.put("apiURL","http://127.0.0.1:18002/api/rest/metadata";);
> >
> >      String apiResponse =
> template.requestBodyAndHeaders("direct:apiCall",
> > "", headers, String.class);
> >
> >      JsonObject jsonObject = GsonUtils.fromJson( apiResponse,
> > JsonObject.class);
> >
> >      assertTrue("Id key exists.", jsonObject.has("id"));
> >
> > }
> >
> >
> > Route
> > ======
> >
> > import org.apache.camel.Exchange;
> > import org.apache.camel.builder.RouteBuilder;
> >
> >
> > public class APIRoute extends RouteBuilder {
> >
> > @Override
> > public void configure() throws Exception {
> >
> > from("direct:apiCall")
> > .log("URL -> ${header.apiURL}")
> > .to("log:?level=INFO&showBody=true")
> > .setHeader(Exchange.HTTP_METHOD, constant("GET"))
> > .setHeader(Exchange.CONTENT_TYPE, constant("application/json"))
> > .toD("${header.apiURL}")
> > .to("log:?level=INFO&showBody=true");
> >
> > }
> >
> > On Fri, Jan 10, 2020 at 3:54 PM Andrea Cosentino <anco...@gmail.com>
> wrote:
> >
> >> Change camel-core to camel-core-engine.
> >>
> >> Il giorno ven 10 gen 2020 alle ore 15:48 Tom Coudyzer <
> tcdm...@gmail.com>
> >> ha scritto:
> >>
> >>> Hi,
> >>>
> >>> This is the POM
> >>>
> >>> <project xmlns="http://maven.apache.org/POM/4.0.0";
> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
> >>> <modelVersion>4.0.0</modelVersion>
> >>> <groupId>com.xyz</groupId>
> >>> <artifactId>camel.samples</artifactId>
> >>> <version>0.0.1-SNAPSHOT</version>
> >>> <packaging>pom</packaging>
> >>>
> >>> <properties>
> >>> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >>> <maven.compiler.source>11</maven.compiler.source>
> >>> <maven.compiler.target>11</maven.compiler.target>
> >>> <camel-version>3.0.0</camel-version>
> >>> <slf4j-version>1.7.29</slf4j-version>
> >>> <activemq-version>5.15.10</activemq-version>
> >>> <jackson-version>2.10.0</jackson-version>
> >>> <spring-version>5.1.6.RELEASE</spring-version>
> >>> <spring-boot-version>2.1.4.RELEASE</spring-boot-version>
> >>> <junit-version>4.12</junit-version>
> >>> <version.undertow>1.4.0.Final</version.undertow>
> >>> <version.swagger>1.5.10</version.swagger>
> >>> <version.framework>0.1.1</version.framework>
> >>> </properties>
> >>>
> >>> <dependencies>
> >>>
> >>> <!-- Camel -->
> >>> <dependency>
> >>> <groupId>org.apache.camel</groupId>
> >>> <artifactId>camel-core</artifactId>
> >>> <version>${camel-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.apache.camel</groupId>
> >>> <artifactId>camel-jms</artifactId>
> >>> <version>${camel-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.apache.camel</groupId>
> >>> <artifactId>camel-http</artifactId>
> >>> <version>${camel-version}</version>
> >>> </dependency>
> >>>
> >>> <!-- ActiveMQ -->
> >>> <dependency>
> >>> <groupId>org.apache.activemq</groupId>
> >>> <artifactId>activemq-all</artifactId>
> >>> <version>${activemq-version}</version>
> >>> </dependency>
> >>>
> >>> <dependency>
> >>> <groupId>com.fasterxml.jackson.core</groupId>
> >>> <artifactId>jackson-databind</artifactId>
> >>> <version>${jackson-version}</version>
> >>> </dependency>
> >>>
> >>> <!-- Spring -->
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-context</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-test</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-core</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-beans</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-web</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-aop</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-jdbc</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-orm</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-jms</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-context-support</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-tx</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.springframework</groupId>
> >>> <artifactId>spring-expression</artifactId>
> >>> <version>${spring-version}</version>
> >>> </dependency>
> >>>
> >>> <!-- Testing -->
> >>> <dependency>
> >>> <groupId>junit</groupId>
> >>> <artifactId>junit</artifactId>
> >>> <version>${junit-version}</version>
> >>> </dependency>
> >>>
> >>> <dependency>
> >>> <groupId>org.apache.camel</groupId>
> >>> <artifactId>camel-test</artifactId>
> >>> <version>${camel-version}</version>
> >>> <scope>test</scope>
> >>> </dependency>
> >>> <dependency>
> >>> <groupId>org.apache.camel</groupId>
> >>> <artifactId>camel-test-spring</artifactId>
> >>> <version>${camel-version}</version>
> >>> <scope>test</scope>
> >>> </dependency>
> >>>
> >>> <!-- Other -->
> >>> <dependency>
> >>> <groupId>org.slf4j</groupId>
> >>> <artifactId>slf4j-log4j12</artifactId>
> >>> <version>${slf4j-version}</version>
> >>> </dependency>
> >>>
> >>> <dependency>
> >>> <groupId>com.google.code.gson</groupId>
> >>> <artifactId>gson</artifactId>
> >>> <version>2.8.6</version>
> >>> </dependency>
> >>>
> >>> <!-- Undertow -->
> >>> <dependency>
> >>> <groupId>io.undertow</groupId>
> >>> <artifactId>undertow-core</artifactId>
> >>> <version>${version.undertow}</version>
> >>> </dependency>
> >>>
> >>>         <dependency>
> >>>                 <groupId>io.undertow</groupId>
> >>>                 <artifactId>undertow-core</artifactId>
> >>>                 <version>${version.undertow}</version>
> >>>                 <type>test-jar</type>
> >>>                 <scope>test</scope>
> >>>             </dependency>
> >>>
> >>> <dependency>
> >>> <groupId>io.undertow</groupId>
> >>> <artifactId>undertow-servlet</artifactId>
> >>> <version>1.4.13.Final</version>
> >>> </dependency>
> >>>
> >>> <dependency>
> >>>   <groupId>org.apache.httpcomponents</groupId>
> >>>   <artifactId>httpclient</artifactId>
> >>>   <version>4.3.6</version>
> >>> </dependency>
> >>>
> >>> <!-- Swagger -->
> >>> <dependency>
> >>> <groupId>io.swagger</groupId>
> >>> <artifactId>swagger-annotations</artifactId>
> >>> <version>${version.swagger}</version>
> >>> </dependency>
> >>>
> >>> <dependency>
> >>> <groupId>com.networknt</groupId>
> >>> <artifactId>server</artifactId>
> >>> <version>${version.framework}</version>
> >>> </dependency>
> >>>
> >>> <!-- Javax -->
> >>> <dependency>
> >>> <groupId>com.sun.activation</groupId>
> >>> <artifactId>javax.activation</artifactId>
> >>> <version>1.2.0</version>
> >>> </dependency>
> >>>
> >>> </dependencies>
> >>>
> >>> <name>Camel Samples</name>
> >>> <description>Camel Samples - POC</description>
> >>> <modules>
> >>> <module>camel.samples.poc</module>
> >>> </modules>
> >>> </project>
> >>>
> >>> On Fri, Jan 10, 2020 at 3:36 PM Andrea Cosentino
> >>> <ancosen1...@yahoo.com.invalid> wrote:
> >>>
> >>>> What is your POM?
> >>>> --Andrea Cosentino ----------------------------------Apache Camel PMC
> >>>> ChairApache Karaf CommitterApache Servicemix PMC MemberEmail:
> >>>> ancosen1985@yahoo.comTwitter: @oscerd2Github: oscerd
> >>>>
> >>>>     On Friday, January 10, 2020, 3:34:04 PM GMT+1, Tom Coudyzer <
> >>>> tcdm...@gmail.com> wrote:
> >>>>
> >>>>  Thanks Omar for the reply. Cleared the cache unfortunately still no
> >>> luck,
> >>>> so there must still be something hanging around...
> >>>>
> >>>> Regards,
> >>>> /Tom
> >>>>
> >>>> On Fri, Jan 10, 2020 at 3:13 PM Omar Al-Safi <o...@oalsafi.com>
> wrote:
> >>>>
> >>>>> Hi,
> >>>>>
> >>>>> Java 8 should work at the moment. However, at some point in upcoming
> >>>>> versions of 3.x, I think Java 8 support will be dropped.
> >>>>> Referring to your error, looks like your depencides cache are not
> >>> updated
> >>>>> to camel 3.0, this method only exists in 2.14,x but not in 3.0. You
> >> can
> >>>> try
> >>>>> to remove the maven cache folder and rebuild again?
> >>>>>
> >>>>> Regards,
> >>>>> Omar
> >>>>>
> >>>>> On Fri, Jan 10, 2020 at 3:01 PM Tom Coudyzer <tcdm...@gmail.com>
> >>> wrote:
> >>>>>> Hi,
> >>>>>>
> >>>>>> Thanks for the reply. Switched to Java 11 (and as told earlier)
> >>> checked
> >>>>> the
> >>>>>> migration guide, but still not working...
> >>>>>>
> >>>>>> Any other ideas?
> >>>>>>
> >>>>>> Thanks a lot!!
> >>>>>>
> >>>>>> Regards,
> >>>>>> /Tom
> >>>>>>
> >>>>>> On Fri, Jan 10, 2020 at 2:52 PM Jeremy Ross <
> >> jeremy.g.r...@gmail.com
> >>>>>> wrote:
> >>>>>>
> >>>>>>> Camel 3 requires Java 11, or will soon.
> >>>>>>>
> >>>>>>> Also, make sure you've made necessary changes outlined here
> >>>>>>>
> >>> https://camel.apache.org/manual/latest/camel-3-migration-guide.html.
> >>>>>>> On Fri, Jan 10, 2020 at 7:49 AM Tom Coudyzer <tcdm...@gmail.com>
> >>>>> wrote:
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>> Probably a stupid question but seems can't find a solution. I
> >>>>> upgraded
> >>>>>> to
> >>>>>>>> Camel 3.0
> >>>>>>>>
> >>>>>>>> When I run now my test classes (using CamelTestSupport) I get
> >> the
> >>>>>>>> stacktrace below
> >>>>>>>> (Note atm still using Java 8)
> >>>>>>>>
> >>>>>>>> Any idea what the reason could be? Couldn't find either
> >> anything
> >>> in
> >>>>> the
> >>>>>>>> migration guide in this area.
> >>>>>>>>
> >>>>>>>> Many thanks already and sorry again if this is a stupid
> >> question!
> >>>>>>>> Regards,
> >>>>>>>> /Tom
> >>>>>>>>
> >>>>>>>> Stacktrace
> >>>>>>>>
> >>>>>>>> java.lang.NoSuchMethodError:
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.CamelContext.getManagementMBeanAssembler()Lorg/apache/camel/spi/ManagementMBeanAssembler;
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.management.DefaultManagementAgent.doStart(DefaultManagementAgent.java:394)
> >>>>>>>> at
> >> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:70)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.impl.engine.DefaultManagementStrategy.doStartManagementStrategy(DefaultManagementStrategy.java:200)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.management.JmxManagementStrategy.doStart(JmxManagementStrategy.java:97)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:2900)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2522)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2445)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2462)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2443)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2352)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.test.junit4.CamelTestSupport.startCamelContext(CamelTestSupport.java:820)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:460)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:336)
> >>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
> >>>>>>>> at
> >>>>>>>>
> >>
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> >>>>>>>> at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> >>>>>>>> at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> >>>>>>>> at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> >>>>>>>> at
> >> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> >>>>>>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >>>>>>>> at
> >>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> >>>>>>>> at
> >>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> >>>>>>>> at
> >>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> >>>>>>>> at
> >>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> >>>>>>>> at
> >> org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
> >>>>>>>> at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> >>>>>>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
>

Reply via email to