JAVA

Maven BOM

k9e4h 2021. 12. 6. 08:46

관련된 라이브러리들을 사용할때 디팬던시가 충돌하는 것을 막기위해 사용하는 것

Spring Bom, Google Bom등이 있다.

 

Spring Bom

<dependencyManagement>
   <dependencies>
      <dependency>
         <groupId>org.springframework</groupId>
         <artifactId>spring-framework-bom</artifactId>
         <version>4.0.3.RELEASE</version>
         <type>pom</type>
         <scope>import</scope>
      </dependency>
   </dependencies>
</dependencyManagement>

Google Bom

<dependencyManagement>
   <dependencies>
      <dependency>
         <groupId>com.google.cloud</groupId>
         <artifactId>libraries-bom</artifactId>
         <version>24.0.0</version>
         <type>pom</type>
         <scope>import</scope>
      </dependency>
   </dependencies>
</dependencyManagement>

 

 

https://simongs.tistory.com/49

반응형

'JAVA' 카테고리의 다른 글

Window / Java 버전 여러개 사용하기  (0) 2022.05.04
Custom Error Message Handling for REST API  (0) 2022.01.13
@Resource vs @Autowired  (0) 2021.11.11
Java Map Clear vs Null vs New  (0) 2021.11.09
equals contentEquals equalsIgnoreCase  (0) 2021.07.23