Вопрос:
После загрузки pom из проекта (который, как я знаю, отлично подходит для инструментов удаленной сборки), я получаю эту ошибку при попытке проверить ее локально:
$ mvn clean install -DskipTests [INFO] Scanning for projects… Downloading from central: [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for com.x.oss.itpf.diagmon.taf:your-testware:2.20.7-SNAPSHOT: Could not find artifact com.x.nms:integration:pom:15.2.0.19 in central (httpepo.maven.apache.org/maven2) and ‘parent.relativePath’ points at wrong local POM @ line 5, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.x.oss.itpf.diagmon.taf:ddc-testware:2.20.7-SNAPSHOT (C:UserserayfraWorkspaceddc-testwarepom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.x.oss.itpf.diagmon.taf:your-testware:2.20.7-SNAPSHOT: Could not find artifact com.x.nms:integration:pom:15.2.0.19 in central (://repo.maven.apache.org/maven2) and ‘parent.relativePath’ points at wrong local POM @ line 5, column 13 -> [Help 2] [ERROR] [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] [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException Лучший ответ:
Похоже, проблема в том,
Could not find artifact com.x.nms:integration:pom:15.2.0.19 in central (://repo.maven.apache.org/maven2)
Итак, есть 2 вещи –
- Артефакт, который вы пытаетесь включить в свой проект, недоступен на пути к указанному вами репозиторию. (Это то же самое, что и сообщение об ошибке)
-
Вы можете изменить путь репозитория, где maven пытается найти для этого артефакта: от repo.maven…, до правильного. Вы можете это сделать
-
изменяя путь либо в вашем местном помпе,
- или изменив его глобально, отредактировав файл settings.xml, локализованный в. m2/settings.xml. .m2 – скрытая папка под /Users/{yourName} (то же местоположение для обоих окон и для Mac)
-