Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9166733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:13:11+00:00 2026-06-17T15:13:11+00:00

IntelliJ cannot find the classes in a Maven module, even if I add the

  • 0

IntelliJ cannot find the classes in a Maven module, even if I add the jar dependency into pom.xml.

I created a Maven module: test-intellij . And then I created a class TestApp and made it implements ApplicationContextAware as below:

public class TestApp implements  ApplicationContextAware{
}

IntelliJ told me: “can not find class ApplicationContextAware”.
So I pressed “alt + enter”, then from the popup tips I chose “Add maven dependency”.

After this operation, the dependency below was added into pom.xml successfully:

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>3.1.3.RELEASE</version>
    </dependency>

But when I try to import the ApplicationContextAware class , IntelliJ still cannot find the ApplicationContextAware class to import.

Could anybody help me to solve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:13:12+00:00Added an answer on June 17, 2026 at 3:13 pm

    Try to Reimport the Maven project using the corresponding button in IntelliJ IDEA Maven Projects tool window. Wait until the dependency is downloaded and indexing is complete. File | Invalidate Caches may also help.

    Also check that you are using the latest IDEA version (12.0.2 at the moment). You should be able to browse inside the downloaded dependency jar in the Project View, External Libraries node.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue with IntelliJ, that I cannot seem to find a solution
Anyone knows if it's possible to check APK size from IntelliJ? I cannot find
In IntelliJ I get this weird error when I try to compile. Cannot find
I have an EJB and a WEB module in my IntelliJ, created 5 entities
Related question How to configure IntelliJ IDEA and/or Maven to automatically add directories with
I upgraded to IntelliJ IDEA 11 CE and I cannot execute any tests or
I am using IntelliJ IDEA 11.1.2 Ultimate with Gradle 1.0 multi module project. One
The icon that IntelliJ (v11.1) usually shows next to Java classes is a blue
When I try to run test with FlexUnit4 and IntelliJ, I get this error:
I notice that I cannot type Ctrl-Alt-B (Go To Implementation) in IntelliJ when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.