spring-boot-maven-plugin ํ”Œ๋Ÿฌ๊ทธ์ธ

1473 ๋‹จ์–ด maven
๊ณต์‹ ๋ฌธ์„œ:https://docs.spring.io/spring-boot/docs/current/maven-plugin/index.html
Goals
Spring Boot Maven plugin์—๋Š” 5๊ฐœ์˜ Goals:
  • repackage(๊ธฐ๋ณธ๊ฐ’) ๊ธฐ๋ณธ goal.mvn ํŒจํ‚ค์ง€์—์„œ ์‹คํ–‰ ๊ฐ€๋Šฅํ•œjar๋‚˜war๋ฅผ ๋‹ค์‹œ ํฌ์žฅํ•˜๊ณ  mvn ํŒจํ‚ค์ง€์—์„œ ์ƒ์„ฑ๋œ ํŒจํ‚ค์ง€๋ฅผ *๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.original
  • build-info ์ƒ์„ฑActuator์— ์‚ฌ์šฉ๋˜๋Š” ๊ตฌ์ถ• ์ •๋ณด ํŒŒ์ผbuild-info.properties
  • help๋Š” ์ด ํ”Œ๋Ÿฌ๊ทธ์ธ์— ๋Œ€ํ•œ ๋„์›€๋ง ์ •๋ณด๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค
  • run Spring Boot ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ์‹คํ–‰
  • start๋Š” mvn integration-test ๋‹จ๊ณ„์—์„œ Spring Boot ์‘์šฉ ์ƒ๋ช…์ฃผ๊ธฐ ๊ด€๋ฆฌ
  • stop์€ mvn integration-test ๋‹จ๊ณ„์—์„œ Spring Boot ์‘์šฉ ์ƒ๋ช…์ฃผ๊ธฐ ๊ด€๋ฆฌ
  • springboot ๋น„์‹คํ–‰jar ์ƒ์„ฑ
    ์ด ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์‚ฌ์šฉํ•  ๋•Œ mvn ํŒจํ‚ค์ง€๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๊ธฐ๋ณธ์ ์œผ๋กœ ๋‘ ๊ฐœ์˜ ํŒŒ์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค
  • .jar
  • .jar.original

  • ์ด๊ฒƒ์€ ๋งˆ๋ธ์ด ํŒจํ‚ค์ง€ ๋‹จ๊ณ„์—์„œ ์ƒ์„ฑ๋˜๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.jar ํŒŒ์ผ ํ›„spring-boot-maen-plugin์€ ๋ฆฌํŒจํ‚ค์ง€ ๋‹จ๊ณ„๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ์ด์ „์˜.jar ํŒŒ์ผ์˜ ์ด๋ฆ„์ด.jar.original ํŒŒ์ผ (์ด ํŒŒ์ผ์€ ์‹คํ–‰ ๊ฐ€๋Šฅํ•œ ํŒŒ์ผ์ด ์•„๋‹™๋‹ˆ๋‹ค), ์‹คํ–‰ ๊ฐ€๋Šฅํ•œ ํŒŒ์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.jar.๊ทธ๋ž˜์„œ ๋น„์‹คํ–‰ ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๋ ค๋ฉด ๋ฆฌํŒจํ‚ค์ง€ ๋‹จ๊ณ„๋ฅผ ๊ฑด๋„ˆ๋›ฐ์‹ญ์‹œ์˜ค
    	
            
                
                    org.springframework.boot
                    spring-boot-maven-plugin
                    
                        
                        
                            
                                repackage
                            
                            
                                true
                            
                        
                    
                
            
        
    

    ์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ