• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

maven commands

Hi,

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


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
0
gudii9
Asked:
gudii9
  • 2
1 Solution
 
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.

http://maven.apache.org/what-is-maven.html
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html
0
 
gudii9Author Commented:
eclipse:eclipse

Full name:

org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse

Description:

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:

org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse
what is full name

How to create scripts specific to project.
0
 
Ken ButtersCommented:
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.
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html

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:
http://maven.apache.org/plugins/maven-eclipse-plugin/

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.
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now