maven commands


I was told to use below maven commands in my maven web project from command prompt.
mvn eclipse:eclipse -DdownloadSources=true                        
mvn clean install                        

What is meaning of these commands and why I have to use them, and what is the order if it is order specific.
Please advise

 Any links resources ideas highly appreciated. Thanks in advance
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Ken ButtersConnect With a Mentor Commented:
What are all different generally used goals in maven similar to eclipse:eclipse
It looks to me like you cut and pasted your question from here.

If you back up one level on the "breadcrumb" at the top of that page... the maven documentation lays out the answers to most of your questions.

Here is the link for that:

Here is the text on that page:
Standard eclipse goals

eclipse:configure-workspace is used to add the classpath variable M2_REPO to Eclipse which points to your local repository and optional to configure other workspace features.
eclipse:eclipse generates the Eclipse configuration files.
eclipse:clean is used to delete the files used by the Eclipse IDE.

What it mean by  multiproject root
You could have more than a single Java project built into a larger overall project, and maven can be used to build them all at once.

what is full name

Full name ... means fully qualified name....

The "abbreviated name:"  eclipse:eclipse

The "full name: " org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse

How to create scripts specific to project.
I don't have the expertise to answer that question.  Maven is a scripting language, so you can build it to whatever specifications you need for your project.

How would you answer the question... how do you write a java program... the answer is ... you learn the java language.

so... here is my best answer on... how do you write a Maven Script?  You learn the Maven Scripting Language.

Here is a link to as good a starting place as any.

If you have a specific maven question... on a specific project, and you are having trouble writing it... that would be a great time to open up a new question with the specifics of the issue you find yourself facing.
Ken ButtersCommented:
Maven is sort of a scripting language that allows you to easily build and maintain your projects.

The scripts you are running will have been created specifically for your project... so you will need to get with your project lead for a better understanding of what your maven scripts do.

Here are some resources to Maven in general that may be of interest.
gudii9Author Commented:

Full name:



Generates the following eclipse configuration files:
.project and .classpath files
.setting/org.eclipse.jdt.core.prefs with project specific compiler settings
various configuration files for WTP (Web Tools Project), if the parameter wtpversion is set to a valid version (WTP configuration is not generated by default)
If this goal is run on a multiproject root, dependencies between modules will be configured as direct project dependencies in Eclipse (unless useProjectReferences is set to false).

What are all different generally used goals in maven similar to eclipse:eclipse
What it mean by  multiproject root
Full name:

what is full name

How to create scripts specific to project.
All Courses

From novice to tech pro — start learning today.