org.apache.http.impl.nio.client -- Cannot be resolved | Community
Skip to main content
sreenu539
New Participant
April 24, 2018
Solved

org.apache.http.impl.nio.client -- Cannot be resolved

  • April 24, 2018
  • 2 replies
  • 2733 views

I am building a new AEM application , aem 6.3 SP1, maven archetype 12.

When I build core bundle , bundle is in INSTALLED status and when I expand the bundle, it says

org.apache.http.impl.nio.client -- Cannot be resolved

Any ideas ??

I have following dependencies in my parent pom, core bundle pom

        <dependency>
           <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore-nio</artifactId>
            <version>4.4.4</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpasyncclient</artifactId>
            <version>4.1</version>
            <scope>provided</scope>
        </dependency>
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Hemant_arora

I could not find version 4.4.4 in provided dependencies.

Update the dependency to version 4.4.5. This should fix the issue.

<dependency>

<groupId>org.apache.httpcomponents</groupId>

<artifactId>httpcore-nio</artifactId>

<version>4.4.5</version>

<scope>provided</scope>

</dependency>

Always use dependency finder to fix such issue. http://localhost:4502/system/console/depfinder

2 replies

Hemant_arora
Hemant_aroraAccepted solution
New Participant
April 25, 2018

I could not find version 4.4.4 in provided dependencies.

Update the dependency to version 4.4.5. This should fix the issue.

<dependency>

<groupId>org.apache.httpcomponents</groupId>

<artifactId>httpcore-nio</artifactId>

<version>4.4.5</version>

<scope>provided</scope>

</dependency>

Always use dependency finder to fix such issue. http://localhost:4502/system/console/depfinder

Employee
April 25, 2018

make sure you have jdk8 installed and picked up by aem