Archiva

see: https://archiva.apache.org/index.cgi

  • In order to make it as service in debian use ln -s /opt/archiva/bin/archiva /etc/init.d/archiva

Configuration

  1. Create Remote repositories (Repositories > Remote Repositories Management)
    1. id: central name: Central Repository url: https://repo.maven.apache.org/maven2
    2. id: central-maven2 name: central-maven2 url: http://central.maven.org/maven2
  2. Create Managed repositories (Repositories > Remote Repositories Management)
    1. id: external
      1. name: Archiva Managed External Repository
      2. dir: /opt/apache-archiva-2.2.1/repositories/repositories/external
      3. index dir: ./repositories/external/.indexer
      4. days older: 30
      5. retention counter: 2
      6. releases: V
      7. block redeployment: V
      8. scanned: V
  3. Create Repository Group
    1. id: all
      1. Order sub repositories (Drug & Drop)
        1. snapshots
        2. internal
        3. external
      2. save
  4. Proxy connectors
    1. external > central
    2. external > central-maven2
    3. external > neo4j

Configurations

~/.m2/settings.xml
settings.xml 
<settings>
   <servers>
    <server>
      <id>archiva.all</id>
      <username>ADMIN_USERNAME</username>
      <password>ADMIN_PASSWORD</password>
    </server>
    <server>
      <id>archiva.internal</id>
      <username>ADMIN_USERNAME</username>
      <password>ADMIN_PASSWORD</password>
    </server>
    <server>
      <id>archiva.snapshots</id>
      <username>ADMIN_USERNAME</username>
      <password>ADMIN_PASSWORD</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>archiva.all</id>
      <name>Maven Repository Manager running on repo.mycompany.com</name>
      <url>http://repo.mycompany.com/repository/all</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>
</settings>
kb/archiva.txt · Last modified: 2022/01/03 16:03 by 127.0.0.1
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0