2, Maven profiles and configuration

1. Download Maven apche-maven-3,5,2

2、

 

 

 Three, maven Profile

1, Ant-based build tool, Ant Maven has some features, additional add other functions

2, run schematics

   2,1 local repository: a computer file in a folder, its own definition of what folder

   2,2 central warehouse: Internet address

          2,2,1 slow download speeds - national Mirror Configuration

 

 

  2,3 JDK version and to ensure consistent development environment, if you do not configure 1,4 1,5

 

   <!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ${user.home}/.m2/repository
  <localRepository>/path/to/local/repo</localRepository>
  -->
<localRepository>C:\aweb\soft\repository</localRepository>

<!-- mirrors
   | This is a list of mirrors to be used in downloading artifacts from remote repositories.
   |
   | It works like this: a POM may declare a repository to use in resolving certain artifacts.
   | However, this repository may have problems with heavy traffic at times, so people have mirrored
   | it to several places.
   |
   | That repository definition will have a unique id, so we can create a mirror reference for that
   | repository, to be used as an alternate download site. The mirror site will be the preferred
   | server for that repository.
   |-->
  <mirrors>
  <mirror>  
 <id>alimaven</id>  
 <mirrorOf>central</mirrorOf>  
 <name>aliyun maven</name>  
 <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
  </mirror>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/zwyzwy/p/12004563.html