All Downloads are FREE. Search and download functionalities are using the official Maven repository.

default-config.nexus.xml Maven / Gradle / Ivy

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

    Sonatype Nexus (TM) Open Source Version
    Copyright (c) 2007-2013 Sonatype, Inc.
    All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.

    This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
    which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.

    Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
    of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
    Eclipse Foundation. All other trademarks are the property of their respective owners.

-->
<nexusConfiguration>
  <version>1.0.8</version>

  <smtpConfiguration>
    <host>localhost</host>
    <port>${email-server-port}</port>
    <sslEnabled>false</sslEnabled>
    <tlsEnabled>false</tlsEnabled>
    <username>smtp-username</username>
    <password>smtp-password</password>
    <debugMode>false</debugMode>
    <systemEmailAddress>[email protected]</systemEmailAddress>
  </smtpConfiguration>

  <security>
    <enabled>false</enabled>
    <anonymousAccessEnabled>true</anonymousAccessEnabled>
    <anonymousUsername>anonymous</anonymousUsername>
    <anonymousPassword>anonymous</anonymousPassword>
    <realms>
      <realm>XmlAuthenticatingRealm</realm>
      <realm>XmlAuthorizingRealm</realm>
    </realms>
  </security>
  <globalConnectionSettings />
  <restApi>
    <baseUrl>http://localhost:${nexus-application-port}/nexus</baseUrl>
  </restApi>
  <httpProxy>
    <port>${nexus-proxy-port}</port>
    <proxyPolicy>strict</proxyPolicy>
  </httpProxy>
  <routing>
    <groups />
  </routing>
  <repositories>
    <!--
      <repository> <id>central</id> <name>Maven Central</name> <localStatus>inService</localStatus> <proxyMode>allow</proxyMode> <allowWrite>false</allowWrite> <browseable>true</browseable> <indexable>true</indexable>
      <notFoundCacheTTL>1440</notFoundCacheTTL> <artifactMaxAge>-1</artifactMaxAge> <metadataMaxAge>1440</metadataMaxAge> <maintainProxiedRepositoryMetadata>false</maintainProxiedRepositoryMetadata> <repositoryPolicy>release</repositoryPolicy>
      <remoteStorage>  <url>http://repo1.maven.org/maven2/</url> </remoteStorage> </repository>
    -->


    <repository>
      <id>fake-central</id>
      <name>fake-central</name>
      <allowWrite>false</allowWrite>
      <localStorage>
        <url>${maven-repository}</url>
      </localStorage>
    </repository>

    <repository>
      <id>nexus-test-harness-repo</id>
      <name>nexus-test-harness-repo</name>
      <allowWrite>true</allowWrite>
    </repository>
    <repository>
      <id>nexus-test-harness-repo2</id>
      <name>nexus-test-harness-repo2</name>
      <allowWrite>true</allowWrite>
    </repository>
    <repository>
      <id>nexus-test-harness-release-repo</id>
      <name>nexus-test-harness-release-repo</name>
      <allowWrite>true</allowWrite>
    </repository>
    <repository>
      <id>nexus-test-harness-snapshot-repo</id>
      <name>nexus-test-harness-snapshot-repo</name>
      <allowWrite>true</allowWrite>
      <repositoryPolicy>snapshot</repositoryPolicy>
    </repository>
    <repository>
      <id>release-proxy-repo-1</id>
      <name>Jetty Test Server</name>
      <proxyMode>allow</proxyMode>
      <remoteStorage>
        <url>${proxy-repo-base-url}release-proxy-repo-1</url>
      </remoteStorage>
    </repository>
  </repositories>
  <repositoryShadows>
    <repositoryShadow>
      <id>nexus-test-harness-shadow</id>
      <name>nexus-test-harness-shadow</name>
      <shadowOf>nexus-test-harness-repo</shadowOf>
      <type>m2-m1-shadow</type>
    </repositoryShadow>
  </repositoryShadows>
  <repositoryGrouping>
    <repositoryGroups>
      <repositoryGroup>
        <groupId>public</groupId>
        <type>maven2</type>
        <name>Public Repositories</name>
        <repositories>
          <repository>fake-central</repository>
          <repository>nexus-test-harness-repo</repository>
          <repository>nexus-test-harness-repo2</repository>
          <repository>release-proxy-repo-1</repository>
          <repository>nexus-test-harness-release-repo</repository>
          <!-- <repository>central</repository> -->
        </repositories>
      </repositoryGroup>

      <repositoryGroup>
        <groupId>nexus-test</groupId>
        <type>maven2</type>
        <name>nexus-test</name>
        <repositories>
          <repository>nexus-test-harness-repo</repository>
          <repository>nexus-test-harness-repo2</repository>
          <repository>release-proxy-repo-1</repository>
        </repositories>
      </repositoryGroup>
      <repositoryGroup>
        <groupId>nexus-test-harness-snapshot-group</groupId>
        <type>maven2</type>
        <name>nexus-test-harness-snapshot-group</name>
        <repositories>
          <repository>nexus-test-harness-snapshot-repo</repository>
        </repositories>
      </repositoryGroup>
      <repositoryGroup>
        <groupId>nexus-test-harness-release-group</groupId>
        <type>maven2</type>
        <name>nexus-test-harness-release-group</name>
        <repositories>
          <repository>nexus-test-harness-release-repo</repository>
        </repositories>
      </repositoryGroup>
    </repositoryGroups>
  </repositoryGrouping>

  <repositoryTargets>
    <repositoryTarget>
      <id>testTarget</id>
      <name>testTarget</name>
      <contentClass>maven2</contentClass>
      <patterns>
        <pattern>.*test.*</pattern>
      </patterns>
    </repositoryTarget>

    <repositoryTarget>
      <id>allRepos</id>
      <name>All M2 Repositories</name>
      <contentClass>maven2</contentClass>
      <patterns>
        <pattern>.*</pattern>
      </patterns>
    </repositoryTarget>

    <repositoryTarget>
      <id>1</id>
      <name>All (Maven2)</name>
      <contentClass>maven2</contentClass>
      <patterns>
        <pattern>.*</pattern>
      </patterns>
    </repositoryTarget>
    <repositoryTarget>
      <id>2</id>
      <name>All (Maven1)</name>
      <contentClass>maven1</contentClass>
      <patterns>
        <pattern>.*</pattern>
      </patterns>
    </repositoryTarget>


  </repositoryTargets>

</nexusConfiguration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy