Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Using Maven to download Spring     - Python Django model within the class meta Detailed (Programming)

- ORA-12154: TNS: could not resolve the connect identifier specified solve (Database)

- Linux system font color change (Linux)

- Configuring a Linux operating system security management services Explain (Linux)

- Web server security policy (Linux)

- Java study notes: String (Programming)

- Linux daemon (Linux)

- About Nginx 7 (Server)

- Use scripts easily install the latest Linux kernel in Ubuntu (Linux)

- grep search from files and display the file name (Linux)

- Django template inheritance child (Programming)

- Use Spring cache and ehcache (Programming)

- ASP.NET 5 tutorial series (Server)

- OpenSSH version smooth upgrade method (Linux)

- RedHat Linux source code package installation process (Linux)

- ASM learning overview (Database)

- Java reflection Introduction (Programming)

- Android custom title bar (Programming)

- iOS Sensor Development - add to APP phone password, fingerprint security authentication (Programming)

- Java Generics (Programming)

 
         
  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:      
 
- Java study notes: String (Programming)
- Handle large data problems Bit-map method (Programming)
- How do I delete a NEEDS RECOVERY rollback state of undo tablespace (Database)
- MySQL5.7.10 installation documentation (Database)
- Django1.5 Custom User Model (Programming)
- bash login and welcome message: / etc / issue, / etc / motd (Linux)
- CentOS 7 install Hadoop-cdh-2.5 on Mesos (Server)
- 10046 trace only open for a particular SQL statement (Database)
- To install Scribus 1.4.4 under ubuntu (Linux)
- Use MySQL optimization of security to prevent misuse of aliases (Database)
- Object-C in the preparation of multi-parameter function parameter is omitted (Programming)
- Linux, Chrome browser font settings beautification (Linux)
- Python interview must look at 15 questions (Programming)
- High-performance JavaScript reflows and repaints (Programming)
- Android 4.2 compilation notes (Programming)
- Android working with Volley Comments (Programming)
- Netcat Example (Linux)
- Build Eclipse + Maven + Scala-IDEA the Scala Web development environment (Server)
- CentOS6.x and Windows XP and Windows Server 2003 Open IPv6 related matters (Linux)
- MongoDB in bulk timestamp change the date format (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.