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

org.apache.maven.archiva.configuration.default-archiva.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <version>2</version>
  <managedRepositories>
    <managedRepository>
      <id>internal</id>
      <name>Archiva Managed Internal Repository</name>
      <location>${appserver.base}/data/repositories/internal</location>
      <layout>default</layout>
      <releases>true</releases>
      <snapshots>false</snapshots>
      <scanned>true</scanned>
      <refreshCronExpression>0 0 * * * ?</refreshCronExpression>
      <daysOlder>30</daysOlder>
    </managedRepository>
    <managedRepository>
      <id>snapshots</id>
      <name>Archiva Managed Snapshot Repository</name>
      <location>${appserver.base}/data/repositories/snapshots</location>
      <layout>default</layout>
      <releases>false</releases>
      <snapshots>true</snapshots>
      <scanned>true</scanned>
      <refreshCronExpression>0 0\,30 * * * ?</refreshCronExpression>
      <daysOlder>30</daysOlder>
    </managedRepository>
  </managedRepositories>
  <remoteRepositories>
    <remoteRepository>
      <id>central</id>
      <name>Central Repository</name>
      <url>http://repo1.maven.org/maven2</url>
      <layout>default</layout>
    </remoteRepository>
    <remoteRepository>
      <id>maven2-repository.dev.java.net</id>
      <name>Java.net Repository for Maven 2</name>
      <url>http://download.java.net/maven/2/</url>
      <layout>default</layout>
    </remoteRepository>
  </remoteRepositories>

  <proxyConnectors>
    <proxyConnector>
      <sourceRepoId>internal</sourceRepoId>
      <targetRepoId>central</targetRepoId>
      <proxyId/>
      <policies>
        <snapshots>disabled</snapshots>
        <releases>once</releases>
        <checksum>fix</checksum>
        <cache-failures>cached</cache-failures>
      </policies>
      <whiteListPatterns>
        <whiteListPattern>**/*</whiteListPattern>
      </whiteListPatterns>
    </proxyConnector>
    <proxyConnector>
      <sourceRepoId>internal</sourceRepoId>
      <targetRepoId>maven2-repository.dev.java.net</targetRepoId>
      <proxyId/>
      <policies>
        <snapshots>disabled</snapshots>
        <releases>once</releases>
        <checksum>fix</checksum>
        <cache-failures>cached</cache-failures>
      </policies>
      <whiteListPatterns>
        <whiteListPattern>javax/**</whiteListPattern>
      </whiteListPatterns>
    </proxyConnector>
  </proxyConnectors>

  <legacyArtifactPaths>
    <legacyArtifactPath>
        <path>jaxen/jars/jaxen-1.0-FCS-full.jar</path>
        <artifact>jaxen:jaxen:1.0-FCS:full:jar</artifact>
    </legacyArtifactPath>
  </legacyArtifactPaths>

  <repositoryScanning>
    <fileTypes>
      <fileType>
        <id>artifacts</id>
        <patterns>
          <pattern>**/*.pom</pattern>
          <pattern>**/*.jar</pattern>
          <pattern>**/*.ear</pattern>
          <pattern>**/*.war</pattern>
          <pattern>**/*.car</pattern>
          <pattern>**/*.sar</pattern>
          <pattern>**/*.mar</pattern>
          <pattern>**/*.rar</pattern>
          <pattern>**/*.dtd</pattern>
          <pattern>**/*.tld</pattern>
          <pattern>**/*.tar.gz</pattern>
          <pattern>**/*.tar.bz2</pattern>
          <pattern>**/*.zip</pattern>
        </patterns>
      </fileType>
      <fileType>
        <id>indexable-content</id>
        <patterns>
          <pattern>**/*.txt</pattern>
          <pattern>**/*.TXT</pattern>
          <pattern>**/*.block</pattern>
          <pattern>**/*.config</pattern>
          <pattern>**/*.pom</pattern>
          <pattern>**/*.xml</pattern>
          <pattern>**/*.xsd</pattern>
          <pattern>**/*.dtd</pattern>
          <pattern>**/*.tld</pattern>
        </patterns>
      </fileType>
      <fileType>
        <id>auto-remove</id>
        <patterns>
          <pattern>**/*.bak</pattern>
          <pattern>**/*~</pattern>
          <pattern>**/*-</pattern>
        </patterns>
      </fileType>
      <fileType>
        <id>ignored</id>
        <patterns>
          <pattern>**/.htaccess</pattern>
          <pattern>**/KEYS</pattern>
          <pattern>**/*.rb</pattern>
          <pattern>**/*.sh</pattern>
          <pattern>**/.svn/**</pattern>
          <pattern>**/.DAV/**</pattern>
        </patterns>
      </fileType>
    </fileTypes>
    <knownContentConsumers>
      <knownContentConsumer>update-db-artifact</knownContentConsumer>
      <knownContentConsumer>create-missing-checksums</knownContentConsumer>
      <knownContentConsumer>update-db-repository-metadata</knownContentConsumer>
      <knownContentConsumer>validate-checksum</knownContentConsumer>
      <knownContentConsumer>validate-signature</knownContentConsumer>
      <knownContentConsumer>index-content</knownContentConsumer>
      <knownContentConsumer>auto-remove</knownContentConsumer>
      <knownContentConsumer>auto-rename</knownContentConsumer>
      <knownContentConsumer>metadata-updater</knownContentConsumer>
      <!--knownContentConsumer>repository-purge</knownContentConsumer-->
    </knownContentConsumers>
    <invalidContentConsumers>
      <invalidContentConsumer>update-db-bad-content</invalidContentConsumer>
    </invalidContentConsumers>
  </repositoryScanning>

  <databaseScanning>
    <cronExpression>0 0 * * * ?</cronExpression>
    <unprocessedConsumers>
      <unprocessedConsumer>index-artifact</unprocessedConsumer>
      <unprocessedConsumer>update-db-project</unprocessedConsumer>
      <unprocessedConsumer>validate-repository-metadata</unprocessedConsumer>
      <unprocessedConsumer>index-archive-toc</unprocessedConsumer>
      <unprocessedConsumer>update-db-bytecode-stats</unprocessedConsumer>
      <unprocessedConsumer>index-public-methods</unprocessedConsumer>
    </unprocessedConsumers>
    <cleanupConsumers>
      <cleanupConsumer>not-present-remove-db-artifact</cleanupConsumer>
      <cleanupConsumer>not-present-remove-db-project</cleanupConsumer>
      <cleanupConsumer>not-present-remove-indexed</cleanupConsumer>
    </cleanupConsumers>
  </databaseScanning>

  <webapp>
    <ui>
      <showFindArtifacts>true</showFindArtifacts>
      <appletFindEnabled>true</appletFindEnabled>
    </ui>
  </webapp>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy