Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

maven commands

Posted on 2014-02-21
3
Medium Priority
?
495 Views
Last Modified: 2014-02-27
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
Comment
Question by:gudii9
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Ken Butters
ID: 39877487
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
 
LVL 7

Author Comment

by:gudii9
ID: 39881484
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
 
LVL 19

Accepted Solution

by:
Ken Butters earned 2000 total points
ID: 39881610
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question