org.apache.http.impl.nio.client -- Cannot be resolved | Community
Skip to main content
sreenu539
Level 7
Apr 24, 2018 11:55 PM UTC
Solved

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

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.
Hemant_arora
Hemant_aroraAccepted solution
Level 8
Apr 25, 2018 5:28 AM UTC

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
Level 8
Apr 25, 2018 5:28 AM UTC

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

Translate
Employee
Apr 25, 2018 4:40 AM UTC

make sure you have jdk8 installed and picked up by aem

Translate