Maven nexus 연결 settings.xml

북마크 추가

nexus 환경 구성후

 

c:\user\계정\.m2 폴더에 settings.xml을 생성

 

---------------------------------------------

 

settings.xml

 

<settings>

  <mirrors>

    <mirror>

      <id>public</id>

      <mirrorOf>*</mirrorOf>

      <url>http://아이피주소/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>public</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>public</activeProfile>

  </activeProfiles>

</settings>

AD
관리자
2016-01-21 10:39
SHARE