Setup a nexus cache for palladio builds.
Create nexus service.
Clone this repo to: <develop>/Palladio-Build-Nexus
This configuration expects to folders to exist and owned by user id 200 on the host machine:
sudo mkdir -p /mnt/repository/nexus-data
sudo mkdir -p /mnt/backup/nexus
sudo chown 200 /mnt/repository/nexus-data
sudo chown 200 /mnt/backup/nexus
Create and start the nexus user service.
cd ~/.config/containers/systemd
sudo ln -s <develop>/Palladio-Build-Nexus/linux/podman/nexus.container
systemctl --user daemon-reload
systemctl --user start nexus
podman machine init nexus
podman machine start nexus
podman machine ssh nexus
sudo yum -y install git
Configure git to access github from nexus machine.
Then clone this repo to: <develop>/Palladio-Build-Nexus
podman machine ssh nexus
mkdir -p <develop>
cd <develop>
git clone [email protected]:rsfzi/Palladio-Build-Nexus.git
Prepare folders
sudo mkdir -p /mnt/repository/nexus-data
sudo mkdir -p /mnt/backup/nexus
sudo chown 200 /mnt/repository/nexus-data
sudo chown 200 /mnt/backup/nexus
Create and start the nexus service.
cd /etc/containers/systemd
sudo ln -s <develop>/Palladio-Build-Nexus/linux/podman/nexus.container
sudo systemctl daemon-reload
sudo systemctl start nexus
Create port forward to nexus service:
- get IP address of nexus machine
wsl hostname -I
- open powershell as administrator
netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=8081 connectaddress=<ip address> connectport=8081
Setup initial nexus DB.
sudo systemctl stop nexus
cd /mnt/repository/nexus-data/db
sudo cp <develop>/Palladio-Build-Nexus/nexus/nexus.mv.db .
sudo systemctl start nexus
podman machine ssh nexus
sudo systemctl stop nexus
cd /mnt/repository/nexus-data/db
sudo cp <develop>/Palladio-Build-Nexus/nexus/nexus.mv.db .
sudo systemctl start nexus
- Open the local nexus instance.
- Login with: admin / nexus.
- Go to Settings/System/Tasks.
- Run task: backup_repair_blob_store
Use the maven/settings.xml as user settings file.
Create link to user settings file:
mkdir -p .m2
cd .m2
ln -s <develop>/Palladio-Build-Nexus/maven/settings.xml
Copy user settings file:
mkdir .m2
cd .m2
copy /B <develop>/Palladio-Build-Nexus/maven/settings.xml .