`

maven Return code is: 401, ReasonPhrase: Unauthorized.

 
阅读更多

通过命令添加jar包到私服时使用

 mvn deploy:deploy-file -DgroupId=org.oracle  -DartifactI
d=ojdbc -Dversion=6.0 -Dpackaging=jar -Dfile=G:/maven/ojdbc6.jar -Durl=http://lo
calhost:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty

报错:

 Return code is: 401, ReasonPhrase: Unauthorized.

这个是由于settings中的server没有配置登录的原因导致的

<server>

      <id>thirdparty</id>

      <username>admin</username>

      <password>admin123</password>

 

    </server>

分享到:
评论

相关推荐

    关于maven打包时的报错: Return code is: 501 , ReasonPhrase:HTTPS Required

    主要介绍了关于maven打包时的报错: Return code is: 501 , ReasonPhrase:HTTPS Required,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    Jenkins编译报错Failed to execute goal org.apache.maven.plugins_maven-clean-plugin

    Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project

    新建Maven项目时出错:org.apache.maven.archiver.MavenArchiver.getManifest

    org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration) 解决方案: 第一种方式 war项目 &lt;groupId&gt;org.apache....

    Failed to execute goal org.apache.maven.plugins:maven-compiler

    在&lt;plugins&gt;&lt;/plugins&gt;中添加 &lt;groupId&gt;org.apache.maven.plugins &lt;artifactId&gt;maven-compiler-plugin &lt;version&gt;3.8.1 &lt;source&gt;1.8 &lt;target&gt;1.8 &lt;/plugin&gt;

    com.google.code.kaptcha:2.3.2 谷歌验证码依赖下载

    4. **简单集成**:对于基于Maven的项目,只需将`com.google.code.kaptcha:2.3.2`添加到项目的`pom.xml`文件中,就可以轻松地引入这个依赖,实现验证码功能。 5. **安全性**:Kaptcha生成的验证码具有一定的安全特性...

    maven3.6.3资源包

    1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.maven.model.validation.DefaultModelValidator: method 'void ()' not found at org.jetbrains.idea.maven.server.embedder....

    Maven报错: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources

    idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,...

    Apache.Maven.Cookbook.1785286129

    Apache Maven Cookbook is for those who want to learn how Apache Maven can be used for build automation. It is also meant for those familiar with Apache Maven, but want to understand the finer nuances ...

    在项目中通过maven私服来使用jar包

    "Maven 私服使用 Jar 包详解" 在项目中通过 Maven 私服来使用 Jar 包是一个常见的实践,通过配置 Maven 设置和项目 pom.xml 文件,可以轻松地使用公司内部提供的基础包、工具包等。下面我们将详细介绍如何配置 ...

    mavenarchiver.rar

    org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration) 网上更新eclipse插件的网址都失效了找了好久才有个离线版 ...

    maven-resources-production java.lang.NegativeArraySizeException

    maven-resources-production java.lang.NegativeArraySizeException java.lang.NegativeArraySizeException 问题解决

    com.googlecode 的 maven-db-plugin.jar 包

    `com.googlecode` 的 `maven-db-plugin.jar` 包是一个在 `googlecode` 平台上发布的 Maven 插件。这个插件主要用于与数据库相关的构建任务,例如自动化地创建、更新或者清理数据库。`Maven` 是一个广泛使用的项目...

    maven-shade-plugin-3.1.0.jar

    &lt;groupId&gt;org.apache.maven.plugins &lt;artifactId&gt;maven-shade-plugin &lt;version&gt;3.1.0 &lt;phase&gt;package &lt;goal&gt;shade implementation="org.apache.maven.plugins.shade.resource....

    tomcat8-maven-plugin-3.0-r1655215.jar

    解决tomcat8-maven-plugin-3.0-r1655215.jar阿里云同有的问题。放到路径org\apache\tomcat\maven\tomcat8-maven-plugin\3.0-r1655215\就可以了

    jeecgframework.zip

    Cannot resolve org.jeecgframework.boot:codegenerate:1.0.7; missing artifact org.jeecgframework * jar; jeecg maven 经常访问不了,jeecg boot 中的 jar 不能下载,可以下载这个放到本地 maven 库即可; ...

    plexus相关jar包

    Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update ...

    Maven3实战笔记04Maven的生命周期和插件

    ### Maven的生命周期和插件详解 #### Maven生命周期概述 Maven是一个项目管理和综合工具,它通过一系列预定义的任务和明确的构建生命周期来管理项目的构建、报告和文档。Maven的核心特性之一是其生命周期...

    gson-2.8.9-API文档-中文版.zip

    Maven坐标:com.google.code.gson:gson:2.8.9; 标签:google、gson、jar包、java、中文文档; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和...

Global site tag (gtag.js) - Google Analytics