jbrasileiro / software-architecture

Apache License 2.0
1 stars 1 forks source link
continuous-delivery development

software-architecture

JAVA_HOME MAVEN_HOME

HOST:

mvn versions:set -DnewVersion=0.0.2 -DprocessAllModules mvn clean install -U -q

SET VERSION=J7.0.0.2 SET NEXT_VERSION=J7.0.0.3-SNAPSHOT mvn release:clean release:prepare -Dresume=false -DreleaseVersion=%VERSION% -DdevelopmentVersion=%NEXT_VERSION% mvn versions:set -DnewVersion=%VERSION% -DprocessAllModules mvn clean install mvn versions:commit -DprocessAllModules git commit mvn release:perform mvn release:rollback

Linux (VM)

Linux -- Docker -- https://linuxize.com/post/how-to-install-apache-maven-on-debian-9/

-- Docker compose sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose -- add docker grouphttps -- https://stackoverflow.com/questions/29101043/cant-connect-to-docker-from-docker-compose

1. Create the docker group.

$ sudo groupadd docker

2. Add your user to the docker group.

$

3. Log out and log back in so that your group membership is re-evaluated.

4. Verify that you can run docker commands without sudo.

$ docker run hello-world

--JDK

--Maven wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /tmp mv apache-maven-3.6.3 /opt/maven/3.6.3 ln -s /opt/apache-maven-3.6.0 /opt/maven/default

sudo cat > /etc/profile.d/maven.sh sudo nano /etc/profile.d/maven.sh

/etc/profile.d/maven.sh: export M2_HOME=/opt/maven export MAVEN_HOME=/opt/maven export PATH=${M2_HOME}/bin:${PATH}

sudo chmod +x /etc/profile.d/maven.sh source /etc/profile.d/maven.sh

--SSH -- chmod 400 ~/.ssh/id_rsa