nexus

kubectl not able to pull the image from private repository

牧云@^-^@ 提交于 2019-12-20 09:39:48
问题 I am running kubeadm alpha version to set up my kubernates cluster. From kubernates , I am trying to pull docker images which is hosted in nexus repository. When ever I am trying to create a pods , It is giving "ImagePullBackOff" every time. Can anybody help me on this ? Detail for this are present in https://github.com/kubernetes/kubernetes/issues/41536 Pod definition : apiVersion: v1 kind: Pod metadata: name: test-pod labels: name: test spec: containers: - image: 123.456.789.0:9595/test

Maven: Get repository URL of a dependency

爱⌒轻易说出口 提交于 2019-12-20 03:09:31
问题 I want do display the URL to a JAR that was deployed to our maven repo at the end of my build job. (Basically the "link" where the dependency - the JAR - can be downloaded from the repository server) So how to display the remote repository URL of a dependency on command line? 回答1: I suggest you to compose the URL from the parameters in the very pom. Example: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions>

Maven 打包项目到私服 (deploy)

左心房为你撑大大i 提交于 2019-12-19 23:47:47
一、配置maven   在maven安装目录 /conf/setting.xml 中的servers下添加: 1 <servers> 2 <server> 3 <id>nexus-snapshots</id> 4 <username>admin</username> 5 <password>123456</password> 6 </server> 7 <server> 8 <id>nexus-releases</id> 9 <username>admin</username> 10 <password>123456</password> 11 </server> 12 </servers> 二、配置pom   在maven工程的pom.xml配置部署的仓库, 注意pom.xml和setting.xml中的id属性要一致 1 <!-- 发布maven私服 --> 2 <distributionManagement> 3 <repository> 4 <id>nexus-snapshots</id> 5 <name>tuohang-framework-SNAPSHOTS</name> 6 <url>http://47.100.xxx.xxx:30010/repository/3rd-part/</url> 7 </repository> 8 <snapshotRepository>

npm私有仓库搭建【Nexus】

允我心安 提交于 2019-12-19 09:39:24
1.下载 点此处去官网下载 官网下载可能很慢,或者直接无法下载,那就自行搜索下载吧。 2. 安装 以 nexus-3.19.0-01-win64 为例,下载后解压结构如下图: 进入下图目录: 2.1 不要直接点击 nexus.exe ,在该目录下使用命令行运行: nexus.exe /run 。运行时出现异常(编码的问题,不用管;另外安装目录如果有中文,应该也会报错,把目录名称改掉): java.io.UnsupportedEncodingException: Encoding GBK is not supported yet (feel free to submit a patch) 2.2 启动后默认的地址是: http://localhost:8081 。 nexus 目录下的 etc/nexus-default.properties 可以修改监听端口 3.登录 打开 http://localhost:8081 ,后登录账号。本人自己测的版本 nexus-3.19.0-01-win64 ,默认用户 admin 的初始密码在如下文件中(很多文件都是运行 nexus.exe /run 后才生产的哦): 打开上图中的文件,拷贝密码, admin 登录的时候,就输入该密码即可(原样复制粘贴即可,不用考虑加密啥的);登录后,会让你修改密码的 修改完成后,上述的 admin

Nexus-compliant repository to get node and npm installers

自闭症网瘾萝莉.ら 提交于 2019-12-19 02:54:07
问题 I am looking for a nexus-compliant repository where I can get a node installer (a nexus-compliant alternative to http://nodejs.org/dist/. Context : In a java environment, our builds are processed by maven. Recently we add a javascript frontend app and I am trying to get it built via maven with the excellent plugin frontend-maven-plugin. The plugin installs node and npm, then run npm install and grunt build . Everything works perfectly. But we MUST put all our dependencies under nexus (or some

Nexus私服安装配置

为君一笑 提交于 2019-12-19 01:40:46
1. 下载 nexus wget http://219.238.7.66/files/5092000009344FE0/sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.12.0-01-bundle.tar.gz 2 . 打开 8081 端口号 vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m udp -p udp --dport 8081 -j ACCEPT service iptables restart 3 . 启动 nexus cd /home/Java/nexus-2.11.0-02/bin ./nexus start 如果出现下列问题 **************************************** WARNING - NOT RECOMMENDED TO RUN AS ROOT **************************************** If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script. 解决方法: A. 临时生效 export

自动缩放TextView文本以适合边界

女生的网名这么多〃 提交于 2019-12-18 21:49:05
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我正在寻找一种调整 TextView 包装文本大小的最佳方法,以使其适合其getHeight和getWidth范围。 我不仅在寻找一种包装文本的方法-我想确保它既可以包装也可以包装得足够小以完全适合屏幕显示。 我在StackOverflow上看到过一些需要自动调整大小的情况,但它们要么是带有黑客解决方案的非常特殊的情况,要么没有解决方案,要么涉及递归地 TextView 直到其足够小(这会占用大量内存并迫使用户可以观看每次递归操作时逐步缩小的文本)。 但是我敢肯定,那里有人找到了一个不涉及我正在做的事情的好的解决方案:编写一些繁琐的例程来分析和测量文本,调整文本的大小,然后重复进行直到找到合适的小尺寸为止。 TextView 使用哪些例程来包装文本? 难道不能以某种方式用来预测文本是否足够小吗? tl; dr :有没有一种最佳实践来自动调整 TextView 的大小以适合它的getHeight和getWidth边界? #1楼 我刚刚创建了以下方法(基于Chase的思想),如果您想将文本绘制到任何画布上,可能会有所帮助: private static void drawText(Canvas canvas, int xStart, int yStart, int xWidth, int yHeigth,

centos8下maven私服搭建(nexus-3.13)

…衆ロ難τιáo~ 提交于 2019-12-18 20:29:16
1、安装Maven wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz tar -zxvf apache-maven-3.5.4-bin.tar.gz mv apache-maven-3.5.4 /usr/local vim /etc/profile 添加到文件尾部: MAVEN_HOME=/usr/local/apache-maven-3.5.4 export MAVEN_HOME source /etc/profile mvn -v 再次输入:mvn -v 2、安装nexus wget --no-check-certificate https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.13.0-01-unix.tar.gz 或者https://www.zhinengx.cn/store/thumbs/2018/0726/nexus-3.13.0-01-unix.tar.gz 网络下载有点慢。也可以下载完上传到 centos上。 tar -zxvf nexus-3.13.0-01-unix.tar.gz mv nexus

How to delete artifacts with classifier from Nexus using REST API?

亡梦爱人 提交于 2019-12-18 16:32:06
问题 I know how to delete a whole GAV using this command : curl --request DELETE --user "login:password" http://myNexus/service/local/repositories/myRepository/content/myGroupId/myArtifactId/myVersion It works like a charm. Now I need to just delete an artifact with a classifier, I could not find or read a solution for this. I wonder if there is a way to delete an artifact with a classifier using the Nexus REST API ? 回答1: To delete an specific artifact, use this command: curl --request DELETE -

How to delete artifacts with classifier from Nexus using REST API?

眉间皱痕 提交于 2019-12-18 16:31:43
问题 I know how to delete a whole GAV using this command : curl --request DELETE --user "login:password" http://myNexus/service/local/repositories/myRepository/content/myGroupId/myArtifactId/myVersion It works like a charm. Now I need to just delete an artifact with a classifier, I could not find or read a solution for this. I wonder if there is a way to delete an artifact with a classifier using the Nexus REST API ? 回答1: To delete an specific artifact, use this command: curl --request DELETE -