maven 环境配置

<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">


  <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>


</settings>

你可能感兴趣的:(maven)