Solved

maven commands

Posted on 2014-02-21
3
418 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

726 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