This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| api.url=http://private-anon-e6bd18f294-apifaketory.apiary-mock.com/api/user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <version>${maven-resources-plugin.version}</version> | |
| <executions> | |
| <execution> | |
| <id>copy-resources</id> | |
| <phase>prepare-package</phase> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.logging.converters; | |
| import ch.qos.logback.classic.pattern.ThrowableProxyConverter; | |
| import ch.qos.logback.classic.spi.IThrowableProxy; | |
| import ch.qos.logback.classic.spi.StackTraceElementProxy; | |
| public class ExceptionMessageConverter extends ThrowableProxyConverter { | |
| @Override | |
| protected String throwableProxyToString(IThrowableProxy tp) { | |
| StackTraceElementProxy[] stackTrace = tp.getStackTraceElementProxyArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variables: | |
| NEXUS_URL: XXX | |
| NEXUS_USER: XXX | |
| NEXUS_PWD: XXX | |
| SNAPSHOT_DEPLOYMENT_REPOSITORY: ${NEXUS_URL}/repository/maven-snapshots/ | |
| RELEASE_DEPLOYMENT_REPOSITORY: ${NEXUS_URL}/repository/maven-releases/ | |
| MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode --errors --fail-at-end --show-version" | |
| MAVEN_CLI_POST_OPTS: "-Dnexus.url=${NEXUS_URL} -Dmaven.repo.local=.m2" | |
| deploy: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ brew cask install multipass | |
| # Create a new VM | |
| $ multipass launch --name microk8s-vm --mem 4G --disk 40G | |
| $ multipass list | |
| Name State IPv4 Image | |
| microk8s-vm Running 192.168.64.19 Ubuntu 18.04 LTS | |
| # Install microk8s inside multipass | |
| $ multipass shell microk8s-vm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mvn fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase | |
| validate ----------------------------------------------------------------- | |
| + maven-enforcer-plugin | default | enforce | |
| process-sources ---------------------------------------------------------- | |
| + maven-dependency-plugin | default | copy-dependencies | |
| process-resources -------------------------------------------------------- | |
| + maven-resources-plugin | default-resources | resources | |
| compile ------------------------------------------------------------------ | |
| + maven-compiler-plugin | default-compile | compile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker image save postgres -o postgres.tar | |
| $ scp -i $(minikube ssh-key) postgres.tar docker@$(minikube ip):~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p ~/.minikube/files/etc | |
| cp /etc/localtime ~/.minikube/files/etc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mvn dependency:tree | |
| [INFO] Scanning for projects... | |
| [INFO] | |
| [INFO] --------------< com.github.mperezi:spring-boot-template >--------------- | |
| [INFO] Building demo 1.0.0 | |
| [INFO] --------------------------------[ jar ]--------------------------------- | |
| [INFO] | |
| [INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ spring-boot-template --- | |
| [INFO] com.github.mperezi:spring-boot-template:jar:1.0.0 | |
| [INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.1.6.RELEASE:compile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mvn spring-boot:help | |
| $ mvn spring-boot:help -Ddetail=true # goals with parameters |