744057173的gravatar头像
7440571732018-01-12 21:40:12
安装nexus后上传jar的时候我的出现拒绝访问的问题解决

eclipse上传工程jar和pom文件到nexus私有库上出现下面的错误,吴水成老师当时只是讲修改用root运行,没有提到改NEXUS_HOME,下面遇到这个问题的朋友或许该高兴吧

cryingFailed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project edu-common-parent: Failed to deploy artifacts: Could not transfer artifact wusc.edu.common:edu-common-parent:pom:1.0-20180111.151606-1 from/to snapshots (http://192.168.18.42:8081/nexus/content/repositories/snapshots/): Access denied to http://192.168.18.42:8081/nexus/content/repositories/snapshots/wusc/edu/common/edu-common-parent/1.0-

具体办法:到nexus-2.11.2-03/bin下修改nexus文件NEXUS_HOME="/usr/local/nexus"

(刚开始是NEXUS_HOME=""),成功搞定,开心

[root@chenm-03 bin]# vi nexus
#! /bin/sh

#
# Copyright (c) 1999, 2006 Tanuki Software Inc.
#
# Java Service Wrapper sh script.  Suitable for starting and stopping
#  wrapped Java applications on UNIX platforms.
#

#-----------------------------------------------------------------------------
# These settings can be modified to fit the needs of your application

# Set this to the root of the Nexus installation
NEXUS_HOME="/usr/local/nexus"

# If specified, the Wrapper will be run as the specified user.

# IMPORTANT - Make sure that the user has the required privileges to write into the Nexus installation directory.

# NOTE - This will set the user which is used to run the Wrapper as well as
#  the JVM and is not useful in situations where a privileged resource or
#  port needs to be allocated prior to the user being changed.
"nexus" 552L, 14619C written


打赏

已有1人打赏

最代码官方的gravatar头像

分享到:

最近浏览
yangxing033 LV11月25日
星星
qq921622105 LV81月24日
月亮月亮
明月楼高 LV41月23日
月亮
筱进GG LV251月21日
太阳月亮月亮星星
附耳聆听 LV201月20日
太阳月亮
Magic丶M LV51月18日
月亮星星
程序猿全敏 LV281月17日
太阳月亮月亮月亮
守城兵 LV71月17日
月亮星星星星星星
huo1993 LV81月15日
月亮月亮
a576762068 LV11月15日
星星
顶部客服微信二维码底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友