How can I get the maven-site-plugin to resolve the parent pom.xml of my multimodule Maven project?

喜夏-厌秋 提交于 2019-12-04 10:27:46
Laird Nelson

This is a bug in the Maven site plugin. The Maven site plugin for various reasons will only ever look for dependencies in what it thinks is Maven central.

Therefore you either have to:

  1. Have a <mirror> element that proxies central through your own Nexus server.
  2. In your local Maven repository, find the parent pom artifact area. Edit its _maven.repositories file so that any mention of the repository name itself is replaced with an empty string.

I chose the latter option. After this the build runs fine.

Apparently downgrading to 3.3 of the site plugin can also work. :-(

  1. File name is _remote.repositories (Maven 3.1.1) Commenting out the lines work as well.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!