Solved

maven commands

Posted on 2014-02-21
3
385 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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now