Discussion:
HttpClient with HttpCore 5.0-alpha4 features?
Stefan Sobernig
2017-09-28 09:15:28 UTC
Permalink
Hi everybody,

What is the recommended way to get HttpClient on top of HttpCore
5.0-alpha4 in my maven setup?

- HttpClient 5.0-alpha3 is not (yet) in central? right?

- HttpClient 5.0-alpha2 works with up to HttpCore 5.0-alpha3, but alpha4
make it break for obvious reasons.

I would like to test my HttpClient application with the HttpCore-alpha4
HTTP/2 goodies.

thx,
Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Oleg Kalnichevski
2017-09-28 10:18:01 UTC
Permalink
Post by Stefan Sobernig
Hi everybody,
What is the recommended way to get HttpClient on top of HttpCore
5.0-alpha4 in my maven setup?
- HttpClient 5.0-alpha3 is not (yet) in central? right?
No, it is not
Post by Stefan Sobernig
- HttpClient 5.0-alpha2 works with up to HttpCore 5.0-alpha3, but alpha4
make it break for obvious reasons.
I would like to test my HttpClient application with the HttpCore-
alpha4
HTTP/2 goodies.
You will have to use HttpClient 5.0-alpha3-SNAPSHOT for now.
Alternatively you might want to use HttpCore 5.0-alpha4 directly if you
can live without cookies / state management, authentication and
automatic redirects.

Cheers

Oleg
Post by Stefan Sobernig
thx,
Stefan
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Stefan Sobernig
2017-09-29 09:15:48 UTC
Permalink
Hi,
Post by Oleg Kalnichevski
Post by Stefan Sobernig
What is the recommended way to get HttpClient on top of HttpCore
5.0-alpha4 in my maven setup?
- HttpClient 5.0-alpha3 is not (yet) in central? right?
No, it is not
Ok.
Post by Oleg Kalnichevski
Post by Stefan Sobernig
- HttpClient 5.0-alpha2 works with up to HttpCore 5.0-alpha3, but alpha4
make it break for obvious reasons.
I would like to test my HttpClient application with the HttpCore-
alpha4
HTTP/2 goodies.
You will have to use HttpClient 5.0-alpha3-SNAPSHOT for now.
Ok.
Post by Oleg Kalnichevski
Alternatively you might want to use HttpCore 5.0-alpha4 directly if you
can live without cookies / state management, authentication and
automatic redirects.
You mean, declare explicit dependency on 5.0-alpha4 like so?

    <dependency>
      <groupId>org.apache.httpcomponents.core5</groupId>
      <artifactId>httpcore5</artifactId>
      <version>5.0-alpha4</version>
    </dependency>
    <dependency>
      <groupId>org.apache.httpcomponents.core5</groupId>
      <artifactId>httpcore5-h2</artifactId>
      <version>5.0-alpha4</version>
    </dependency>
    <dependency>
      <groupId>org.apache.httpcomponents.client5</groupId>
      <artifactId>httpclient5</artifactId>
      <version>5.0-alpha2</version>
    </dependency>

If yes, this only works for 5.0-alpha3, as far as I can tell. With
Post by Oleg Kalnichevski
An exception occured while executing the Java class.
org/apache/hc/core5/reactor/IOReactorException
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
With alpha3, build/run are fine, but with alpha3, I cannot get h2
(https:// + FORCE_HTTP_2) to run, only h2 (http:// + FORCE_HTTP_2).

Thx, Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Oleg Kalnichevski
2017-09-29 09:56:23 UTC
Permalink
Post by Stefan Sobernig
Hi,
Post by Oleg Kalnichevski
Post by Stefan Sobernig
What is the recommended way to get HttpClient on top of HttpCore
5.0-alpha4 in my maven setup?
- HttpClient 5.0-alpha3 is not (yet) in central? right?
No, it is not
Ok.
Post by Oleg Kalnichevski
Post by Stefan Sobernig
- HttpClient 5.0-alpha2 works with up to HttpCore 5.0-alpha3, but alpha4
make it break for obvious reasons.
I would like to test my HttpClient application with the HttpCore-
alpha4
HTTP/2 goodies.
You will have to use HttpClient 5.0-alpha3-SNAPSHOT for now.
Ok.
Post by Oleg Kalnichevski
Alternatively you might want to use HttpCore 5.0-alpha4 directly if you
can live without cookies / state management, authentication and
automatic redirects.
You mean, declare explicit dependency on 5.0-alpha4 like so?
    <dependency>
      <groupId>org.apache.httpcomponents.core5</groupId>
      <artifactId>httpcore5</artifactId>
      <version>5.0-alpha4</version>
    </dependency>
    <dependency>
      <groupId>org.apache.httpcomponents.core5</groupId>
      <artifactId>httpcore5-h2</artifactId>
      <version>5.0-alpha4</version>
    </dependency>
    <dependency>
      <groupId>org.apache.httpcomponents.client5</groupId>
      <artifactId>httpclient5</artifactId>
      <version>5.0-alpha2</version>
    </dependency>
If yes, this only works for 5.0-alpha3, as far as I can tell. With
Post by Oleg Kalnichevski
An exception occured while executing the Java class.
org/apache/hc/core5/reactor/IOReactorException
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut
or.java:213)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut
or.java:154)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut
or.java:146)
With alpha3, build/run are fine, but with alpha3, I cannot get h2
(https:// + FORCE_HTTP_2) to run, only h2 (http:// + FORCE_HTTP_2).
You need to use 5.0-alpha3-SNAPSHOT until the official 5.0-alpha3
release. That will automatically pull HttpCore 5.0-alpha4.

<dependency>
   <groupId>org.apache.httpcomponents.client5</groupId>
   <artifactId>httpclient5</artifactId>
   <version>5.0-alpha3-SNAPSHOT</version>
</dependency>

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Loading...