Jul 16, 2024

Maven

Configure settings.xml

$ cat ~/.m2/settings.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>...</id>
<username>...</username>
<password>...</password>
</server>
<server>
<id>...</id>
<username>...</username>
<password>...</password>
</server>
</servers>
</settings>

Setup path

$ cat .profile | tail
...
export MAVEN_PATH=/home/user/BUILD_ENV/MAVEN/LATEST
export PATH=${PATH}:${MAVEN_PATH}/bin

No comments:

Post a Comment

Kubernetes

kubectl installation $ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl...