오류해결∥LwM2M Plugin execution not covered by lifecycle configuration: com.google.code.maven-replacer-plugin:replacer:1.5.3:replace <execution> error

반응형




LwM2M 오픈소스를 GitHub를 통해 Import 후 가이드에 적혀 있는데로 root 폴더에서 mvn clean install을 했는데 제목과 같은 오류가 발생했다. 


OS는 Window 10 / 메이븐은 최신버전인 3.6.2 최신버전으로 설치 한 상태로, Java Tool은 Eclipse IDE를 사용했다. 오류 발생부분은 maven-replacer-plugin에서 발생했다.



pom.xml을 열어보니 이 사진과 같이 execution에서 에러가 발생. 자세한 에러는 다음과 같다.

Error : Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: com.google.code.maven-replacer-plugin:replacer:1.5.3:replace (execution: default, phase: compile) pom.xml /leshan-bsserver-demo line 102 Maven Project Build Lifecycle Mapping Problem 


해당 에러에 대해 구글링에서 쉽게 나오지 않았다. 아무래도 LwM2M 자료가 많이 없기 때문에.. 그래도 찾아낸 결과 해결 방법은 간단했다.


<goals> 윗 줄에 <phase>prepare-package</phase> 이 한줄만 추가해주니 해결됬다. 이게 왜 오류를 해결해주는지 이해는 되지 않지만 이 오류를 잡고 LwM2M 오픈소스를 실행해보니 아주 잘 실행된다.



사진과 같이 <goals>위에 한줄을 추가해 준 모습이다. 정말 감쪽같이 오류가 사라졌고, 구글은 정말 갓구글이다!!

반응형