servlet-api duplicate

pom.xml에서 servlet-api가 중복으로 작성되어 있을 경우 아래의 메세지가 발생

[WARNING] Some problems were encountered while building the effective model for net.javada:bbs:war:1.0.0-BUILD-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.servlet:servlet-api:jar -> duplicate declaration of version 2.5 @ line 191, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

중복된 dependency, 같은 dependency중 하나를 제거한다.

<dependency>
  <groupId>javax.servlet</groupId>
  <artifactId>servlet-api</artifactId>
  <version>2.5</version>
  <scope>provided</scope>
</dependency>

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다