Apache Maven 3.0.3 (yum) installation (CentOS 6.4 x64)

Source: Internet
Author: User

Introduction
http://maven.apache.org/

MAVEN is an expert in the development, management and CI of tools.

Download
http://maven.apache.org/download.cgi

References
Http://maven.apache.org/download.cgi#Installation

Use of teaching and learning
Http://maven.apache.org/guides/getting-started/index.html
Http://maven.apache.org/guides/index.html

Installation (environment change is not required)

wget Http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo-O/etc/yum.repos.d/ Epel-apache-maven.repo

Yum-y Install Apache-maven

/usr/share/apache-maven/bin/mvn-version
Ln-s/USR/SHARE/APACHE-MAVEN/BIN/MVN/USR/BIN/MVN

Export m2_home=/usr/local/apache-maven-3.1.1
Export m2= $M 2_home/bin
# maven_opts not required
Export maven_opts= "-xms256m-xmx512m"
Export path= $M 2: $PATH
Export java_home=/usr/java/jdk1.7.0_45

tests

Display version

[Email protected] ~]# mvn-version
Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven Home:/usr/share/apache-maven
Java Version:1.6.0_24, Vendor:sun Microsystems Inc.
Java Home:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Default Locale:en_us, Platform Encoding:utf-8
OS name: "Linux", Version: "2.6.32-358.el6.x86_64", Arch: "AMD64", Family: "Unix"
[Email protected] ~]#

Download test (Process all questions press Enter to answer)

[Email protected] ~]# MVN archetype:generate \
-darchetypegroupid=org.apache.maven.archetypes \
-dgroupid=com.mycompany.app \
-dartifactid=my-app

Editing tests

[Email protected] ~]# CD My-app
[Email protected] my-app]# MVN compile
[Email protected] my-app]# MVN test
...

Tests Run:1, failures:0, errors:0, skipped:0

[INFO]------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]------------------------------------------------------------------------
[INFO] Total time:16.346s
[INFO] Finished At:mon Nov 13:44:31 CST 2013
[INFO] Final memory:7m/18m
[INFO]------------------------------------------------------------------------
[Email protected] my-app]#


Other use of teaching please see
Http://maven.apache.org/guides/getting-started/index.html
Http://maven.apache.org/guides/index.html

Finish

Research Apache Maven 3.1.1 Installation (CentOS 6.4 x64)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=80036

Research Apache Maven 3.0.3 (yum) installation (CentOS 6.4 x64)
Http://shaurong.blogspot.tw/2013/11/apache-maven-303-yum-centos-64-x64.html

Apache Maven 3.0.3 (yum) installation (CentOS 6.4 x64)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.