본문 바로가기

opendaylight

Maven 빌드시 에러

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:

Please always use mockito-core instead of mockito-all (https://bugs.opendaylight.org/show_bug.cgi?id=7662)

Found Banned Dependency: org.mockito:mockito-all:jar:1.10.19

Use 'mvn dependency:tree' to locate the source of the banned dependencies.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce-banned-dependencies) on project transportcontroller-impl: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

위와 같은 에러 발생시


pom.xml 파일 확인

<dependency>

      <groupId>org.mockito</groupId>

      <artifactId>mockito-all</artifactId>

      <scope>test</scope>

</dependency>

아래와 같이 변경

<dependency>

      <groupId>org.mockito</groupId>

      <artifactId>mockito-core</artifactId>

      <scope>test</scope>

</dependency>


Carbon 버전 부터 mockito-core으로 변경

'opendaylight' 카테고리의 다른 글

karaf service 등록  (0) 2018.01.10
opendaylight hello 프로젝트 시작 하기 1  (0) 2017.12.06