Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 7

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>
1 Accepted Solution

Avatar

Correct answer by
Level 9

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

1473058_pastedImage_1.png

View solution in original post

2 Replies

Avatar

Employee

make sure you have jdk8 installed and picked up by aem

Avatar

Correct answer by
Level 9

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

1473058_pastedImage_1.png