Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Using Maven to download Spring     - RHEL5 / 6 Installation Notes (Linux)

- Awk include binding capacity larger than the specified size of all files directory (Linux)

- Function Getting the Linux shell (Programming)

- ApacheDS configuration of users and user groups to achieve SSO (Server)

- Ubuntu 14.10 installation SecureCRT 7.3 (Linux)

- How to download GOG games in Linux command line (Linux)

- Linux device driver development small example --LED lights (Programming)

- Teach you the Ubuntu Server enabled SSH multifactor authentication (Server)

- Nginx DHCP TFTP Kickstart set up automatic installation system (Server)

- CentOS yum source as the default setting methods in DVD (Linux)

- What factors affect the performance of Java calls (Programming)

- Build your own Git server under Linux (Server)

- systemd-nspawn Quick Guide (Linux)

- ActiveMQ memory settings and flow control (Linux)

- Compile and install Memcached can not find GCC (Programming)

- Ubuntu users to install the system indicator SysPeek 0.3 (Linux)

- Nginx logging client ip (Server)

- In-depth summary of the PHP core of object-oriented (Programming)

- Comparison of Nginx and Nginx + (Server)

- ElasticSearch - Basic Concepts (Server)

 
         
  Using Maven to download Spring
     
  Add Date : 2017-08-31      
         
       
         
  First recommended a Maven book "Maven combat," Xu Xiaobin with, it is a great learning Maven materials. Since the Spring Website, many users complained that the site can not be downloaded directly Spring, here to teach you to use Maven download Spring.

first step:

Maven is installed, go to this URL http://maven.apache.org/download.cgi download the latest version of Maven, the latest version is 3.2.3, whether apache-maven-3.2.3-bin.tar.gz or apache-maven-3.2.3-bin.zip can, any downloaded one after decompression, which was thrown into a suitable directory on your computer.

Step two:

Configuration environment variable, the new variable value corresponding to the variable name MAVEN_HOME D: \ Program Files (x86) \ maven3.2.3, join% MAVEN_HOME% \ bin to the path variable.

third step:

Test whether the installation was successful, open cmd, run mvn -version, which represents the output follows the successful installation.

Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T04: 58: 10 + 08: 00) Maven home: D: \ Program Files (x86) \ maven3.2.3 \ bin \ .. Java version: 1.7.0_05, vendor : Oracle CorporationJava home: D: \ Program Files (x86) \ Java \ jdk1.7.0_05 \ jreDefault locale: zh_CN, platform encoding: GBKOS name: "windows nt (unknown)", version: "6.2", arch: "x86 ", family:" windows "

the fourth step:

Modify the local warehouse location, Maven after a successful installation, the default location of the local repository will be placed under ~ / .m2 / repository directory ( "~" represents the user's directory, such as the windows are usually C: \ Documents and Settings \ [ your username] \ this is certainly not what we need, so we need to manually configure the local repository location, enter D: \ Program files (x86) \ maven3.2.3 \ conf directory, find settings.xml file, open, enable this configuration item < localRepository> D: / Program Files (x86) /maven3.2.3/repository < / localRepository>, which path is the path of my local Maven repository.

the fifth step:

Maven configuration

The User Settings path into settings.xml path to the file after you enable the local repository.

Step Six:

Create a Maven project in eclipse, browse Spring official website

spring official website to provide information, we direct the copy down some of the information can be pasted into the pom.xml file. Right, refresh a project, you can see below MavenDependencies including the Spring jar package. My pom.xml file for your reference:

< Project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http: / /maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd ">
< ModelVersion> 4.0.0 < / modelVersion>

< GroupId> MavenProject < / groupId>
< ArtifactId> first < / artifactId>
< Version> 0.0.1-SNAPSHOT < / version>
< Packaging> jar < / packaging>

< Name> first < / name>
< Url> http://maven.apache.org < / url>
< Properties>
< Project.build.sourceEncoding> UTF-8 < /project.build.sourceEncoding>
< / Properties>

< Dependencies>
< Dependency>
< GroupId> junit < / groupId>
< ArtifactId> junit < / artifactId>
< Version> 4.12 < / version>
< Scope> test < / scope>
< / Dependency>
< Dependency>
< GroupId> org.apache.logging.log4j < / groupId>
< ArtifactId> log4j-api < / artifactId>
< Version> 2.1 < / version>
< Scope> test < / scope>
< / Dependency>
< Dependency>
< GroupId> org.springframework < / groupId>
< ArtifactId> spring-context < / artifactId>
< Version> 4.1.3.RELEASE < / version>
< / Dependency>
< / Dependencies>
< / Project>
 

Step Seven:
Maven provides a common central repository URL http://www.mvnrepository.com/, no matter what you want to jar package, as long as you can search in the search box, such as search hibernate, click the hyperlink to find Maven, directly copy the file information to the pom.xml in maven can be downloaded. E.g

< Dependency> < groupId> org.hibernate < / groupId> < artifactId> hibernate-core < / artifactId> < version> 4.3.7.Final < / version> < / dependency> < dependency> < groupId> org.hibernate < / groupId> < artifactId> hibernate-entitymanager < / artifactId> < version> 4.3.7.Final < / version> < / dependency> < dependency> < groupId> org.hibernate < / groupId> < artifactId> hibernate-annotations < / artifactId > < version> 3.5.6-Final < / version> < / dependency>
     
         
       
         
  More:      
 
- Solaris 10 nagios monitoring system (Linux)
- Kitematic how seamless and DockerFILE (Server)
- xCAT deployment (Linux)
- Solaris 10 installation configuration mrtg monitoring system (Linux)
- Single Instance ASM under CRS-4124, CRS-4000 error handling (Database)
- Linux and Unix systems really do network more secure (Linux)
- Depth understanding of the use of Spring Redis (Programming)
- MySQL import large amounts of data (Database)
- Linux serial port driver test (Linux)
- Linux Security trust with users (Linux)
- The difference Docker save and export commands (Linux)
- Linux compiler of GCC (Linux)
- Log4Net (Linux)
- C language programming entry - macro definitions and enum (Programming)
- Installation Elementary OS Freya to do some settings (Linux)
- Android float ball and boot from the start (Programming)
- Linux Network Security Tips Share (Linux)
- How do you prevent other users from accessing your home directory in Linux (Linux)
- The REVERSE function of DB2 (Database)
- MyCAT log analysis (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.