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

  • Home
  • SEARCH
  • 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 8470315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:28:57+00:00 2026-06-10T16:28:57+00:00

I cannot understand why in Eclipse after these two steps Run as -> Maven

  • 0

I cannot understand why in Eclipse after these two steps

  1. Run as -> Maven clean
  2. Project -> clean...

I can still run my program using green icon with white arrow?

I thought there are no .class files after cleaning. I was expecting exception like ClassNotFound, but nothing like this happened.

Do you know how to properly clean project in Eclipse?

  • 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-10T16:28:59+00:00Added an answer on June 10, 2026 at 4:28 pm

    I just checked this phenomenon out with one of my Maven projects in Eclipse and this is what I observed. By the way, don’t trust what you see in the Package View, use your file system explorer.

    Run as -> Maven clean : deletes the target folder
    Project -> clean… : creates target folder with empty subfolders “classes” and “test-classes“. In Eclipse's Package Explorer view, I see an empty target folder.

    At this point I would say the proper way to clean a Maven project in Eclipse is simply to do Run as -> Maven clean.

    Now to address why your program runs after cleaning. As soon as I ran a program in the project, Eclipse compiled and populated the “target/classes” and “target/test-classes” folders with *.class files and resources. In Eclipse's Package Explorer view, I still see an empty target folder.

    The trick to figuring this out was to look at the project directory and sub directories with the system file explorer and not just with Eclipse's Package View or Project View.

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

Sidebar

Related Questions

I just cannot understand the two options under the Run button of the menu
I cannot understand why a call to read after an lseek returns 0 number
My C++ compiler cannot understand the restrict directive. How do I suppress these errors?
Eclipse crashed and won't restart. Can someone help me understand what the problem is?
I cannot quite understand what we need maven for and what dependency is. Could
I am trying to understand the concept of eclipse e4 for RCP. After reading
I cannot understand why advice @After is applied instead of @AfterThrowing in this situation:
I created a project with maven2 on eclipse. After I added the hibernate-annotations dependency,
Reference: link text i cannot understand the following line , can anybody provide me
I cannot understand what is the difference between: #define WIDTH 10 and int width

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.