nexus

最近整合spring boot + mybatis 3.1.1 +activity 5.12

时光总嘲笑我的痴心妄想 提交于 2020-01-06 15:27:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 兼容老项目的痛谁懂,唯有亲身整合过的人才懂了。 拿到老项目代码,发现项目用的activity 是5.12 版本,赶紧找一上网上的资源对于这么早期的activity 版本的资料,一查,发现,喔阖, 结合5.22版本做理解吧,自己吃自己了。 一、首先重构项目基于maven 管理,包怎么导进来啊,啊啊? activity 5.12 的版本没有整合到maven,那么意味着,我们需要自己搭建一个maven 私服 把老项目的jar包发布到私服自己下载下来 1)windows 采用nexus 搭建maven 私服 版本 nexus-2.14.5-02-bundle.zip 不要问我为什么用这么老的,翻不了墙,下不到新了,在网上找到网盘的资源下载的,有条件的自己下载最新的玩,需要这个的加,可以私信找我要, 解压出来,有两个文件夹nexus-2.14.5-02,sonatype-work,找到E:\nexus-2.14.5-02-bundle\nexus-2.14.5-02\bin\jsw\windows-x86-64, 以管理员的方式运行console-nexus.bat, 启动完成后,在浏览器打开 http://localhost:8081/nexus/#welcome ,在E:\nexus-2.14.5-02-bundle

Private Maven Repository in Closed Network

拟墨画扇 提交于 2020-01-06 02:32:09
问题 I am in a closed network, do not have access to http://repo.maven.apache.org We set up a Nexus server and we download all of our .m2's on a publicly accessible computer, burn to disk, then upload to our Nexus server (inefficient but necessary) Currently I am trying to set up the system to only use my nexus server, currently it tries to go to http://repo.maven.apache.org (assuming is set to false) If I have set to true, it does not even attempt to go to my private repo. Basically, I just need

groovy script to delete artifacts on nexus 3 (not nexus 2)

无人久伴 提交于 2020-01-05 03:32:15
问题 i have nexus 3 server that i save artifacts on it, and it has been filled to max. i wish to create a task to delete the old artifacts every day but always remain with at least 50 artifacts. the problem is that the default task that should do it, does't work. so i read that it can be done with a groovy script that i schedule to run inside tasks. can anyone help me with it? i can't find anything useful on the internet. 回答1: based on @daniel-schröter answer you could add a Scheduled Task

Run nexus in kubernetes cluster using helm

a 夏天 提交于 2020-01-03 09:36:22
问题 There is a helm chart for nexus: https://github.com/helm/charts/tree/master/stable/sonatype-nexus I installed it like using helm: helm install stable/sonatype-nexus --name=nexus But it didn't work because of nexus-proxy. There is logs for nexus-proxy container: [vert.x-eventloop-thread-0] [io.vertx.ext.web.impl.RoutingContextImplBase] Unexpected exception in route So, i started to google and found that post: https://github.com/travelaudience/nexus-proxy/issues/4 There we no answer except this

Run nexus in kubernetes cluster using helm

余生颓废 提交于 2020-01-03 09:33:53
问题 There is a helm chart for nexus: https://github.com/helm/charts/tree/master/stable/sonatype-nexus I installed it like using helm: helm install stable/sonatype-nexus --name=nexus But it didn't work because of nexus-proxy. There is logs for nexus-proxy container: [vert.x-eventloop-thread-0] [io.vertx.ext.web.impl.RoutingContextImplBase] Unexpected exception in route So, i started to google and found that post: https://github.com/travelaudience/nexus-proxy/issues/4 There we no answer except this

Run nexus in kubernetes cluster using helm

半腔热情 提交于 2020-01-03 09:33:39
问题 There is a helm chart for nexus: https://github.com/helm/charts/tree/master/stable/sonatype-nexus I installed it like using helm: helm install stable/sonatype-nexus --name=nexus But it didn't work because of nexus-proxy. There is logs for nexus-proxy container: [vert.x-eventloop-thread-0] [io.vertx.ext.web.impl.RoutingContextImplBase] Unexpected exception in route So, i started to google and found that post: https://github.com/travelaudience/nexus-proxy/issues/4 There we no answer except this

How to configure pom.xml file to use Nexus Repository manager

前提是你 提交于 2020-01-03 04:52:11
问题 I am using Redhat , java 1.7 , maven 3.2.5 , jenkins 1.6 , git version 2.0.5 and nexus-2.12.0-01 I have created a Local Nexus Repository for my internal development. Now What I am trying to do is, to build maven project using jenkins with Nexus Repository Manger Oss . I am able to build my project without Nexus Repository Manger Oss . Note : I am using parent pom since I have to sub projects. Below are the steps that I followed . Installed Nexus Repository Manger Oss . It is up and running

Unable to proxy Maven repo over https/ssl with Nexus

风格不统一 提交于 2020-01-03 03:40:32
问题 I followed the instructions given on this page to import the server certificate. When I use keytool -list , I can see that the certificate is actually in the keystore. If I try to import the .crt file, keytool warns me that the keystore already contains the certificate. Then I updated wrapper.conf with the two ssl options. I can see them on the command line of the Nexus process after a restart. But when I try to add a proxy repo for the remote server, I always get sun.security.validator

nexus 2 get checksum of file in “raw” repository

二次信任 提交于 2020-01-02 23:48:11
问题 Using sonatype nexus 2.x, how do you get the sha1 or md5 hash of a file in a "site repository" (called "raw repositories" in nexus 3) using curl? There is a related question on SO, however it only applies to "maven" repositories, which has a different api endpoint. 回答1: Take the download link and append ?describe=info curl -H "Accept:application/json" \ "http://nexus.example.com/nexus/service/local/repositories/foobar/content/master-5678.zip?describe=info" The optional -H "Accept:application

How to publish a 3rd party files to remote maven repo using an existing pom.xml?

狂风中的少年 提交于 2020-01-02 06:39:08
问题 I have some third party jars that I want to upload to my nexus maven repo, and so far I have found two ways to do it. Use the Nexus GUI Use the instructions at http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html mvn deploy:deploy-file -DgroupId=<group-id> \ -DartifactId=<artifact-id> \ -Dversion=<version> \ -Dpackaging=<type-of-packaging> \ -Dfile=<path-to-file> \ -DrepositoryId=<id-to-map-on-server-section-of-settings.xml> \ -Durl=<url-of-the-repository-to-deploy> I am