sts 툴에서 spring boot 개발시 jar 로 배포하기
sts 에서 jar 형태로 배포하기 위해서는 프로젝트 선택 후, 우클릭 하여 run as > maven build 를 선택합니다.
workspace 를 선택하면 기본 디렉토리를 선택하는 새창이 뜨며, 배포할 프로젝트를 선택한 다음, ok 를 선택합니다. 그 다음, goals 에 package 라고 기재 후 run 버튼을 누르면 배포가 됩니다.
배포 경로에 가면 해당 폴더에 jar 파일이 존재합니다.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ springbootdemo ---
[INFO] Building jar: /Users/shimjaewoon/Projects/sts-bundle/workspace/springbootdemo/target/springbootdemo-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.2.RELEASE:repackage (default) @ springbootdemo ---
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/1.5.2.RELEASE/spring-boot-loader-tools-1.5.2.RELEASE.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/1.5.2.RELEASE/spring-boot-loader-tools-1.5.2.RELEASE.pom (4 KB at 13.0 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/1.5.2.RELEASE/spring-boot-loader-tools-1.5.2.RELEASE.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/1.5.2.RELEASE/spring-boot-loader-tools-1.5.2.RELEASE.jar (147 KB at 313.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.649 s
[INFO] Finished at: 2017-04-16T23:19:12+09:00
[INFO] Final Memory: 34M/224M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.