nexus

Linux搭建Maven私服Nexus3.x环境

眉间皱痕 提交于 2020-01-16 11:36:59
一、Maven介绍 Apache Maven是一个创新的软件项目管理和综合工具。 Maven提供了一个基于项目对象模型(POM)文件的新概念来管理项目的构建,可以从一个中心资料片管理项目构建,报告和文件。 Maven最强大的功能就是能够自动下载项目依赖库。 Maven提供了开发人员构建一个完整的生命周期框架。开发团队可以自动完成项目的基础工具建设,Maven使用标准的目录结构和默认构建生命周期。 在多个开发团队环境时,Maven可以设置按标准在非常短的时间里完成配置工作。由于大部分项目的设置都很简单,并且可重复使用,Maven让开发人员的工作更轻松,同时创建报表,检查,构建和测试自动化设置。 Maven项目的结构和内容在一个XML文件中声明,pom.xml 项目对象模型(POM),这是整个Maven系统的基本单元。 1、Maven提供了开发人员的方式来管理: 1)Builds 2)Documentation 3)Reporting 4)Dependencies 5)SCMs 6)Releases 7)Distribution 8)mailing list 概括地说,Maven简化和标准化项目建设过程。处理编译,分配,文档,团队协作和其他任务的无缝连接。 Maven增加可重用性并负责建立相关的任务。 Maven最初设计,是以简化Jakarta Turbine项目的建设。在几个项目

centos7 安装sonatype nexus3.19

断了今生、忘了曾经 提交于 2020-01-16 11:31:24
1.下载 nexus-3.19.1-01-unix.tar.gz 2.下载 jdk-8u161-linux-x64.tar.gz 备注:nexus3.19必须运行在jdk1.8以上 3.解压: #tar -zvxf nexus-3.19.1-01-unix.tar.gz 4.默认配置文件:../nexus-3.19.1-01/etc/nexus-default.properties [cqs@centos7 etc]$ cat nexus-default.properties ## DO NOT EDIT - CUSTOMIZATIONS BELONG IN $data-dir/etc/nexus.properties # Jetty section application-port=8081 application-host=0.0.0.0 nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml nexus-context-path=/ # Nexus section nexus-edition=nexus-pro-edition nexus-features=\ nexus-pro-feature nexus.hazelcast

搭建MAVEN私服Nexus

前提是你 提交于 2020-01-14 23:20:15
搭建MAVEN私服Nexus 继续采用docker-compose搭建 version: '3' services: nexus: restart: always image: sonatype/nexus3 container_name: nexus ports: - 8082:8081 volumes: - nexus-data:/nexus-data ## 前面那个nexus-data是和下面volumes.nexus-data那个对应 volumes: nexus-data: ##不要忘记 : 号了 这样写volumes不会出现权限和其它问题,不然启动可能就会报错 启动docker-compose up -d 通过docker-compose logs -f 查看日志 也可以通过 docker logs -f [容器id或者名称] 查看日志 启动成功则可以在浏览器中输入http://192.168.75.145:8082进入到管理页面 这里的登陆账号是admin ,,登陆的时候网页上会有提示的,可能版本不同,目录会不同,具体见网页上提示的目录,差不多就是获取密码要到容器里面去获取 docker exec -it 【容器id或者名称】 /bin/bash cd /nexus-data/ ##进到目录里面 cat admin.password 获取密码,密码比较复杂

Why do the trash folder of Nexus never empties?

╄→гoц情女王★ 提交于 2020-01-14 07:37:28
问题 For my maven enterprise repository, I use Sonatype Nexus, deployed as a Tomcat6 webapp. I've configured default snapshots cleanup task. Unfortunatly, each week (or each pair of week, don't know exactly), that machine reaches 100% disk occupation, and I have to go in the /usr/share/tocmat6/sonatype-work/nexus/storage/snapshots/.nexus/trash folder to perform a rm -rf . This is incredibly stupid ! And I'm quite sure it's my own stupid. So, what can I do to have the trash empty task really clean

服务器搭建npm私服

六月ゝ 毕业季﹏ 提交于 2020-01-14 02:49:07
文章同步语雀地址: https://www.yuque.com/chenzilong/mxypih/lmv38l npm 知识记录 环境准备 Nexus 3.2.1 需要JDK8,如果没有JDK,需要先到oracle官网上去下载 Nexus 下载地址:http://www.sonatype.org/nexus/ 我的版本 当前最新版本:nexus-3.20.1-01-unix.tar.gz 没有vpn的话可以使用我的网盘资源: https://pan.baidu.com/s/1AJcXYg57IeykC-Sda3TixQ 环境搭建 解压: tar xvfz nexus-3.2.1-01-unix.tar.gz 启动: ./nexus-3.20.1-01/bin/nexus start 查看日志 tail -f sonatype-work/nexus3/log/nexus.log 访问页面 因为我的最新的版本,初始账号是admin,初始密码不再是admin123. cd /sonatype-work/nexus3 内部有一个初始密码文件admin.password,在我们登录界面重新设定密码之后,这个文件会消失。然后我们设置一下密码就好,登录到系统内部。 创建存储空间(如果使用默认的存储空间,此步骤可省略) 创建仓库 仓库类型 hosted(私有仓库):用于发布个人开发的npm组件

How to configure jboss repository properly for my repository manager

谁说胖子不能爱 提交于 2020-01-13 10:19:12
问题 https://repository.jboss.org/nexus/content/groups/public-jboss/ https://repository.jboss.org/nexus/content/groups/public/ https://repository.jboss.org/nexus/content/repositories/releases/ Which repository am I supposed to use? I am unable to view the listing of any of the above repositories when I paste this URL on my browser? What settings should I use to pull jboss release artifacts in Nexus? 回答1: First you have to add the JBoss repo - http://repository.jboss.org/nexus/content/groups/public

How to index a Maven repo without Nexus/Artifactory/etc?

落爺英雄遲暮 提交于 2020-01-12 04:58:07
问题 I run my own little Maven repo for some open source. I have no dedicated server so I use a Google code repository, deploy to file system and then commit and push. Works perfect for me. But some Maven tools are looking for a nexus-maven-repository-index.properties and the index (in GZ). I would like to generate this index to get rid of the warning that it's not here Maven doesn't try the repo for artefacts that are not there. How can I do that? Is there a tool (Java main) that is able to

maven 搭建私服

微笑、不失礼 提交于 2020-01-11 23:03:25
博客参考 https://www.cnblogs.com/luotaoyeah/p/3791966.html 整理纯为技术学习 1 . 私服简介   私服是架设在局域网的一种特殊的远程仓库,目的是代理远程仓库及部署第三方构件。有了私服之后,当 Maven 需要下载构件时,直接请求私服,私服上存在则下载到本地仓库;否则,私服请求外部的远程仓库,将构件下载到私服,再提供给本地仓库下载。   我们可以使用专门的 Maven 仓库管理软件来搭建私服,比如: Apache Archiva , Artifactory , Sonatype Nexus 。这里我们使用 Sonatype Nexus。 2 . 安装Nexus 2 . 1 . 下载Nexus   Nexus 专业版是需要付费的,这里我们下载开源版 Nexus OSS。Nexus 提供两种安装包,一种是包含 Jetty 容器的 bundle 包,另一种是不包含容器的 war 包。下载地址: http://www.sonatype.org/nexus/go 。 2 . 2 . 使用bundle安装包安装Nexus 解压安装包nexus-2.8.1-bundle.zip,打开命令提示符,进入/nexus-2.8.1-01目录,键入nexus命令(为方便启动和退出Nexus,可将bin目录添加到环境变量): 执行 nexus install

Missing Request Entity response to a PUT to Nexus

旧街凉风 提交于 2020-01-11 13:37:06
问题 I'm trying to emulate a maven artifact publish to my Nexus repository, in an attempt to understand why my gradle build is failing. I try: curl -u 'me:secret'\ -X PUT\ -T my-artifact\ -H 'Content-Type: maven-artifact/3.0.4'\ http://nexus/nexus/content/repositories/snapshots and I get: <body> <h1>400 - Bad Request</h1> <p>Missing request entity</p> </body> What's the "missing entity"? 回答1: A working example of a project that deploys to Nexus with Gradle is part of the Nexus Book Examples

如何在Ubuntu下面识别Galaxy Nexus设备

放肆的年华 提交于 2020-01-10 11:39:34
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近入手了Galaxy Nexus手机,但是由于一直在Ubuntu下面开发,而Ubuntu不能直接识别GalaxyNexus的MTP设备,导致了16G的Rom在Ubuntu下面完全无法识别,只能通过adb push和adb install的方法来安装程序,没有充分发挥磁盘存储器的作用。因此,上网搜索了几种办法,折腾了挺久终于解决了。 解决办法如下: 1. 安装必要的MTP工具集:sudo apt-get install mtp-tools mtpfs 2. 打开Galaxy Nexus,选择MTP设别的存储方式,而不是PTP。如图示。 3. 检测你的设备的idVendor和idProduct号。mtp-detect | grep idVendor (获取的号码就是输出的红色字段,idVendor: 04e8)mtp-detect | grep idProduct(获取的号码就是输出红色字段,idProduct: 685c) 4. 编辑设备文件,没有就添加。gksu gedit /etc/udev/rules.d/51-android.rules 在其中加入:SUBSYSTEM==”usb”, ATTR{idVendor}==”VENDORID”, ATTR{idProduct}==”PRODUCTID”,