Developing Applications Using Continuous Integration

По материалам от корпорации зла.

http://docs.oracle.com/middleware/1221/core/MAVEN/toc.htm

Начал делать в контейнере Docker.

$ docker pull oraclelinux:latest
$ docker run -it --name myRepo oraclelinux

# yum update -y

# useradd developer


Устанавливаю JDK8

http://javadev.org/install/jdk/8/linux/centos/6/x64/


Устанавливаю MAVAN (3.X)

http://javadev.org/install/assembly-tools/linux/centos/6/x64/


Archiva Maven Repository Manager

http://javadev.org/install/assembly-tools/linux/centos/6/x64/archiva/


Типа Save.

Что получилось, можно забрать командой:

$ docker pull marley/repo:latest

(1.425 GB)

$ docker run -it -p 8081:8081 --name repo marley/repo:latest

Стартую Archiva (нужно подождать пару минут, пока она стартанет)

$ archiva start


В linux можно коннектиться к

http://localhost:8081/


В Windows

$ docker-machine ip
192.168.99.100

http://192.168.99.100:8081/


Configuring Mirror Repositories

http://docs.oracle.com/middleware/1221/core/MAVEN/populating_archiva.htm#MAVEN8840

Proxy Connectors: Удалил все


Repositories:

ADD

Id: mirror
Name: Mirror
Directory: ./repositories/mirror

Select:
    Releases
    Block Re-deployment
    Scaned

SAVE


Proxy Connectors:

ADD

Managed Repository: mirror
Remote Repository: central

SAVE


USERS –> Manage –> Guest –> Edit –> Edit Roles –> Repository Observer –> + mirror

UPDATE


Creating Development, Production, Quality Assurance, and Test Repositories

Repositories:

(dev, prod, qa, or test)

ADD

Id: dev
Name: Oracle Dev
Directory: ./repositories/dev

Release: true
Scanned: true

SAVE


ADD

Id: prod
Name: Oracle Prod
Directory: ./repositories/prod

Release: true
Scanned: true

SAVE


</br>

USERS –> Manage –> Guest –> Edit –> Edit Roles –> Repository Observer –> + mirror

UPDATE

</br>

Rpository Groups:

Add

id: dev-group
+ snapshots, mirror, dev, prod

SAVE


Add

id: prod-group
+ snapshots, mirror, dev, prod

SAVE


Creating a Deployment Capable User

USERS –> Manage –> add –> Username: manager –> SAVE

USERS –> Manage –> manager –> Edit –> Edit Roles –> Repository Manager –> + Snapshot, + Internal Repositories


На этом по сути закончил пока. У меня archiva не работает, зато nexus справляется.