maven 配置远程仓库服务器密码

news/2024/7/24 2:20:57 标签: maven, 服务器, java

maven 配置远程仓库服务器密码

如果maven仓库被指定为私库或者有权限设定的话,一般来说是可以下载jar包的。但是发布jar包就有问题了

如果maven仓库设置了权限系统,用户不仅需要具有远程仓库的权限,还需要在setting.xml中配置用户名密码,以获取授权

eg:

id是发布管理的服务器配置id,该id配置在distributionManagement中。关于distributionManagement的配置可以参考随笔中的相关文章(还没写呢)。

username是用户名

password是密码,并且可以添加描述信息,比如创建时间、过期时间等,此时密码要放在{}中

关于distributionManagement,可配置如下:

<distributionManagement>
    <snapshotRepository>
        <id>my.server</id>
        <name>Internal Repository</name>
        <url>http://repo.xxx.net/content/repositories/contract/</url>
    </snapshotRepository>
</distributionManagement>

 


http://www.niftyadmin.cn/n/957750.html

相关文章

python中去掉字符串中的\xa0、\t、\n

转载自&#xff1a;https://blog.csdn.net/wangbowj123/article/details/78061618 今天帮女朋友从网络上收集一些信息&#xff0c;但是发现提取出的信息中有“\xa0”&#xff0c;并且无法去掉&#xff0c;查阅了相关资料&#xff0c;后发现该字符表示空格。 \xa0 是不间断空白…

太坑了,刚才写错了一个字母,把const App写成了const app

用html可以 <!DOCTYPE html> <html> <head> <meta charset"utf-8"> <title>陈尼克</title> <style>[v-cloak] {display: none;} </style> </head><body><div id"app" v-cloak><p>…

maven项目集成findbugs详解

文章目录 0、概述 一、接入方式 二、如何使用 方式一、在控制台中执行打包命令 方式二、使用IntelliJ IDEA的maven工具&#xff08;其他IDE用户忽略&#xff09; 三、bug详情查看 四、忽略指定的包、类、类中的方法 步骤一、在pom.xml中 增加配置。 步骤二、增加配置文件&#…

修改了,添加了一行代码,还是不行,出不来,在vite2项目里

<template><title>陈尼克</title><div id"app"><p>姓名: {{ name }}</p><p>职业: {{ state.work }}</p></div> </template><script> //import { defineProps, reactive } from vueimport { creat…

python中的for循环如何控制步长

for i in range(开始/左边界, 结束/右边界, 步长):print i 例如 for i in range(1, 10, 2):print i 等价于 for (i1;i<10;i2) 1 3 5 7 9 [Finished in 0.4s]

mybatis 日志Spring Boot+log4j2+yml配置

简单了解 输出mybatis的相关信息&#xff0c;要在控制台输出就需要支持log看了下面的文档我们大概会知道一些相关信息 https://docs.spring.io/spring-boot/docs/current/reference/html/howto-logging.html 如果让系统使用log4j要做对应的修改 为什么使用log4j 2&#xff…

可以把work改成age

<!DOCTYPE html> <html> <head> <meta charset"utf-8"> <title>陈尼克</title> <style>[v-cloak] {display: none;} </style> </head><body><div id"app" v-cloak><p>姓名: {{ n…

为什么必须用const { createApp, ref, reactive } = Vue;而import { defineProps, reactive } from ‘vue‘不行,二者有什么区

这个直接不显示 <!DOCTYPE html> <html> <head> <meta charset"utf-8"> <title>陈尼克</title> <style>[v-cloak] {display: none;} </style> </head><body><div id"app" v-cloak><…