개요

2015년에 쓴 글을 다시 복사하였다.

오랜만에 한 3시간 삽질을 했다. -_-
회사에 쓸 메이븐 플러그인을 개발해 사내 nexus에 deploy를 했는데 자꾸
PluginResolutionException을 발생하며 artifact를 찾지 못해서 해멨다.

해결방법

찬찬히 다시 exception으로 검색을
해보자 아래의 내용이 나왔다.
https://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

요점은 maven central에 배포하지 않은 3rd party 플러그인의 경우 을 명시해야 된다. 플러그인도 동일한 artifact 개념으로만 생각한게 불찰이었다.

<pluginrepositories>
    <pluginrepository>
        <id>apache.snapshots</id>
        <url>http://repository.apache.org/snapshots/</url>
    </pluginrepository>
</pluginrepositories>