maven environment configuration

<localRepository>E:/maven/m2</localRepository>

<mirror>
      <id>os china</id>
      <mirrorOf>central</mirrorOf>
      <name>OSChina</name>
      <url>http://maven.oschina.net/content/groups/public/</url>
</mirror>

/////////////////////////////////////////////////////////////////////////////

<?xml version="1.0" encoding="UTF-8"?>


<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<localRepository>E:/maven/m2</localRepository>
  <servers>


        <server>
                <id>nexus-wxb-lib</id>
                <username>admin</username>
                <password>jikei11</password>
        </server>


  </servers>


  <mirrors>


        <mirror>
                <id>nexus</id>
                <name>internal nexus repository</name>
                <url>http://112.124.11.167:9999/nexus/content/groups/public/</url>
                <mirrorOf>central</mirrorOf>
        </mirror>


  </mirrors>

<profile> 
    <id>jdk17</id> 
    <activation> 
        <activeByDefault>true</activeByDefault> 
        <jdk>1.7</jdk> 
    </activation> 
    <properties> 
        <maven.compiler.source>1.7</maven.compiler.source> 
        <maven.compiler.target>1.7</maven.compiler.target> 
        <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion> 
    </properties>  
</profile>

</settings>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326346254&siteId=291194637