Я не могу развернуть сайт, созданный плагином maven-site.Ошибка при загрузке сайта: Не удалось передать файл: <site-url> Код возврата: 401 ->
я получаю подобные ошибки, как в этом вопросе: Maven site deploy logs filling with [WARNING] Required credentials to nexus 3 но есть комментарий в нем, который говорит, что проблема известна и сообщила здесь https://issues.sonatype.org/browse/NEXUS-10112, но этот вопрос закрыт.
Я следовал учебнику http://books.sonatype.com/nexus-book/reference/_creating_a_new_maven_project.html все в порядке до этапа 20.6 сайта: развернуть.
Единственное «решение», которое я нашел по этой проблеме, здесь https://benkiew.wordpress.com/2009/11/27/status-code-401-on-mvn-sitedeploy/ , но это не сработает. Мои параметры settings.xml и pom.xml совпадают, так что это не проблема.
settings.xml сервер конф выглядит следующим образом:
</servers>
<server>
<id>nexus</id>
<username>XXXX</username>
<password>XXXX</password>
</server>
</servers>
И родитель pom.xml:
<site>
<id>nexus</id>
<name>service-agents-repository</name>
<url>dav:https://!URL!/repo/content/sites/agents</url>
</site>
Идентификатор обеспечивается связующей отличается как два, показанной выше, но Я тоже пытался с этим ID, и я пишу этот вопрос, так что не работал. Вывод ошибок на МВН сайте: развернуть
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Services: IoT agents
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Services: IoT agents 1.3.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-site-plugin:3.5.1:deploy (default-cli) @ parent ---
https://!URL!/repo/content/sites/agents/ - Session: Opened
[INFO] Pushing D:\!URL!\target\site
[INFO] >>> to https://!URL!/repo/content/sites/agents/./
[WARNING] Required credentials not available for BASIC <any realm>@!URL!:443
[WARNING] Preemptive authentication requested but no default credentials available
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sonatype Nexus Repository Manager'@!URL!:443
[WARNING] Required credentials not available for BASIC <any realm>@!URL!:443
[WARNING] Preemptive authentication requested but no default credentials available
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sonatype Nexus Repository Manager'@!URL!:443
[WARNING] Required credentials not available for BASIC <any realm>@!URL!:443
[WARNING] Preemptive authentication requested but no default credentials available
[WARNING] Required credentials not available for BASIC <any realm>@!URL!:443
[WARNING] Preemptive authentication requested but no default credentials available
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sonatype Nexus Repository Manager'@!URL!:443
Transfer error: java.io.IOException: Unable to create collection: https://!URL!/repo/content/sites/agents/; status code = 401
Uploading: .//apidocs/allclasses-frame.html to https://!URL!/repo/content/sites/agents/
[WARNING] Required credentials not available for BASIC <any realm>@linksmart.eu:443
[WARNING] Preemptive authentication requested but no default credentials available
#########[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sonatype Nexus Repository Manager'@!URL!:443
https://!URL!/repo/content/sites/agents/./apidocs/allclasses-frame.html - Status code: 401
Transfer error: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://!URL!/repo/content/sites/agents/./apidocs/allclasses-frame.html. Return code is: 401
https://!URL!/repo/content/sites/agents/ - Session: Disconnecting
https://!URL!/repo/content/sites/agents/ - Session: Disconnected
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Services: IoT agents ........................... FAILURE [ 2.352 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.661 s
[INFO] Finished at: 2016-09-29T17:04:57+01:00
[INFO] Final Memory: 19M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.5.1:deploy (default-cli) on project parent: Error uploading site: Failed to transfer file: https://!URL!/repo/content/sites/agents/./apidocs/allclasses-frame.html. Return code is: 401 -> [
Help 1]
[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/MojoExecutionException
Если больше информации необходимо, пожалуйста, просто спросить.
Спасибо.
Спасибо. Я использую nexus 2. Моя проблема, я думаю, о части SSL/TLS. Как-то я не могу сопоставить своего пользователя с сайтом 'credentials, недоступным для BASIC @! URL!:' –