앱 예제 빌드

명령줄에서 logpresso-sample-app 디렉터리로 이동한 후, mvn clean package 명령을 실행하여 빌드합니다.

cmd> mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< com.logpresso.sonar:logpresso-sample-app >--------------
[INFO] Building Logpresso Sample App 1.0.2306.0
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ logpresso-sample-app ---
[INFO] Deleting C:\github\logpresso-app-examples\logpresso-sample-app\target
[INFO]
[INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ logpresso-sample-app ---
[INFO] skip non existing resourceDirectory C:\github\logpresso-app-examples\logpresso-sample-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ logpresso-sample-app ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to C:\github\logpresso-app-examples\logpresso-sample-app\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ logpresso-sample-app ---
[INFO] skip non existing resourceDirectory C:\github\logpresso-app-examples\logpresso-sample-app\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ logpresso-sample-app ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:3.1.2:test (default-test) @ logpresso-sample-app ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-bundle-plugin:5.1.9:bundle (default-bundle) @ logpresso-sample-app ---
[WARNING] Bundle com.logpresso.sonar:logpresso-sample-app:bundle:1.0.2306.0 : Unused Import-Package instructions: [com.logpresso.sonar.api.*]
[INFO] Building bundle: C:\github\logpresso-app-examples\logpresso-sample-app\target\logpresso-sample-app-1.0.2306.0.jar
[INFO] Writing manifest: C:\github\logpresso-app-examples\logpresso-sample-app\target\classes\META-INF\MANIFEST.MF
[INFO]
[INFO] --- maven-ipojo-plugin:1.12.1.asm8:ipojo-bundle (default) @ logpresso-sample-app ---
[INFO] Start bundle manipulation
[INFO] No metadata file found - trying to use only annotations
[INFO] Input Bundle File : C:\github\logpresso-app-examples\logpresso-sample-app\target\logpresso-sample-app-1.0.2306.0.jar
[INFO] Apache Felix iPOJO Manipulator - 1.12.1.asm8
[INFO] Bundle manipulation - SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.132 s
[INFO] Finished at: 2023-06-10T22:38:33+09:00
[INFO] ------------------------------------------------------------------------

빌드가 성공하면 target 디렉터리에 logpresso-sample-app-1.0.2306.0.jar 파일이 생성됩니다.