Apache Maven is a Software Project Management tool. Based on the concept of a Project Object Model (POM
), Maven can manage a project’s build, reporting and documentation from a central piece of information.
On Crunchify, we do have more than ~20 different maven tutorials
including Setting up Maven Classpath on Windows and MacOS, maven-war-plugin, maven-shade-plugin, maven-assembly-plugin, etc.
In this tutorial we will go over highly and widely used some tips and tricks
which will fix most of the Maven and POM dependency related issues for your in Eclipse IDE.
Let’s get started:
Task-1: Perform “Project Clean” in Eclipse IDE
Step-1
Create new
maven based project oropen existing
maven project.- In my case, I’m opening my existing Simplest Spring MVC Hello World Project in Eclipse.
Step-2
- Click on
Project
Menu item in Eclipse - Choose
Clean...
option from list
Step-3
- Select a
project
which you want to clean or Select All - In my case it’s just CrunchifySpringMVCTutorial
Task-2: Perform Maven Update Project in Eclipse IDE
Step-4
- Right click on Project
- Click on
Maven
- Click on
Update Project...
Task-3: Perform Maven clean install in Eclipse IDE
Step-5
- Right click on project
- Click on
Run As
- Click on
Maven build...
Step-6
- Provide Goal:
mvn clean install
- Select checkbox for
Skip Tests
- Click
Apply
andRun
You should see BUILD SUCCESS
message after successful run.
By performing above steps most of the common
Maven build issues should be resolved in Eclipse. Let me know if you face any more issues and will try to debug.
The post ‘Maven(mvn) Clean Install’, ‘Update Project’ and ‘Project Clean’ Options in Eclipse IDE to fix any Dependency Issue appeared first on Crunchify.
Author: App Shah