解决: Failed to execute ... maven-deploy-plugin... Return code is: 401, ReasonPhrase: Unauthorized.

1. 执行  mvn  clean deploy , 想把本地代码 打包并推送到私服 ,报错:

[ERROR] Failed to execute goal org.apache.maven.plugins:
maven-deploy-plugin:2.8.2:deploy (default-deploy) on project client-one:
 Failed to deploy artifacts: Could not transfer artifact com.client:
client-one:jar:0.0.1
-20190717.055439-1 from/to maven-snapshots 
(http://ergouzi.fun:8081/repository/maven-snapshots/):
 Failed to transfer file: 
xxx/repository/maven-snapshots/com/client/client-one/0.0.1-SNAPSHOT/xxx.jar. 
Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]

2. 原因:

setting.xml 中配置的 id  一定要和 pom.xml 中 配置的 id  一致。

setting.xml 中配置的 id 如下:

pom.xml 中 配置的 id 如下:

在 pom.xml 中有以上配置后,可不用再加此配置:

只要 id 对应上了,账号密码无误,就可以 deploy 成功了。

PS:  我还有个小原因,前面一直找错了 setting.xml 文件。我电脑中有多份,因为熟悉位置,就一直以为就是 A 位置的,最后才发现是用的 B 位置的。

 

发布了425 篇原创文章 · 获赞 1126 · 访问量 370万+
展开阅读全文

python安装pyinstaller报错

08-21

``` ERROR: Command errored out with exit status 1: command: 'c:\users\巩子昆\appdata\local\programs\python\python37-32\python.exe' 'c:\users\巩子昆\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\巩子昆\AppData\Local\Temp\tmp5hj8yy69' cwd: C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller Complete output (36 lines): running dist_info creating C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info writing C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\PKG-INFO writing dependency_links to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\dependency_links.txt writing entry points to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\entry_points.txt writing requirements to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\requires.txt writing top-level names to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\top_level.txt writing manifest file 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt' reading manifest file 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' Error in sitecustomize; set PYTHONVERBOSE for traceback: SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb9 in position 0: invalid start byte (sitecustomize.py, line 7) no previously-included directories found matching 'bootloader\build' no previously-included directories found matching 'bootloader\.waf-*' no previously-included directories found matching 'bootloader\.waf3-*' no previously-included directories found matching 'bootloader\waf-*' no previously-included directories found matching 'bootloader\waf3-*' no previously-included directories found matching 'bootloader\_sdks' no previously-included directories found matching 'bootloader\.vagrant' warning: no previously-included files found matching 'bootloader\.lock-waf*' no previously-included directories found matching 'doc\source' no previously-included directories found matching 'doc\_build' warning: no previously-included files matching '*.tmp' found under directory 'doc' warning: no files found matching 'news\_template.rst' no previously-included directories found matching 'news' no previously-included directories found matching 'old' no previously-included directories found matching 'scripts' no previously-included directories found matching 'tests\scripts' no previously-included directories found matching '.github' warning: no previously-included files found matching '.*' warning: no previously-included files found matching '*.yml' warning: no previously-included files found matching '*~' warning: no previously-included files found matching '.directory' writing manifest file 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt' creating 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.dist-info' error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\巩子昆\appdata\local\programs\python\python37-32\python.exe' 'c:\users\巩子昆\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\巩子昆\AppData\Local\Temp\tmp5hj8yy69' Check the logs for full command output. ``` 饶了我吧 我就一小白 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 书香水墨 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览