nexus 私服跑一跑流程
尝试建立新项目上传,分享
D:\dev\workspace\helloworld>tree /F
卷 DATAPART 的文件夹 PATH 列表
卷序列号为 2C22-0A1A
D:.
│ pom.xml
│
└─src
└─main
└─java
└─helloworld
Xiaoming.java
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.zno</groupId>
<artifactId>helloworld</artifactId>
<version>0.0.1-SNAPSHOT</version> <repositories>
<repository>
<id>nexus</id>
<name>nexus</name>
<url>http://192.168.0.244:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>nexus</name>
<url>http://192.168.0.244:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories> <distributionManagement>
<repository>
<id>user-releases</id>
<name>user-releases</name>
<url>http://192.168.0.244:8081/nexus/content/repositories/releases/</url>
</repository> <snapshotRepository>
<id>user-snapshots</id>
<name>user-snapshots</name>
<url>http://192.168.0.244:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>
Xiaoming.java
package helloworld; public class Xiaoming { public void say(){
System.out.println("Hello World!");
} }
部署
D:\dev\workspace\helloworld>mvn clean deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloworld 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ helloworld ---
[INFO] Deleting D:\dev\workspace\helloworld\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ helloworld
---
[debug] execute contextualize
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e
. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ helloworld --
-
[WARNING] File encoding has not been set, using platform encoding GBK, i.e. buil
d is platform dependent!
[INFO] Compiling 1 source file to D:\dev\workspace\helloworld\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ he
lloworld ---
[debug] execute contextualize
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e
. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ hello
world ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ helloworld ---
[INFO] Surefire report directory: D:\dev\workspace\helloworld\target\surefire-re
ports
Downloading: http://192.168.0.244:8081/nexus/content/groups/public/org/apache/ma
ven/surefire/surefire-junit3/2.10/surefire-junit3-2.10.pom
Downloaded: http://192.168.0.244:8081/nexus/content/groups/public/org/apache/mav
en/surefire/surefire-junit3/2.10/surefire-junit3-2.10.pom (0 B at 0.0 KB/sec)
Downloading: http://192.168.0.244:8081/nexus/content/groups/public/org/apache/ma
ven/surefire/surefire-junit3/2.10/surefire-junit3-2.10.jar
Downloaded: http://192.168.0.244:8081/nexus/content/groups/public/org/apache/mav
en/surefire/surefire-junit3/2.10/surefire-junit3-2.10.jar (0 B at 0.0 KB/sec) -------------------------------------------------------
T E S T S
------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ helloworld ---
[INFO] Building jar: D:\dev\workspace\helloworld\target\helloworld-0.0.1-SNAPSHO
T.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ helloworld --- [INFO] Installing D:\dev\workspace\helloworld\target\helloworld-0.0.1-SNAPSHOT.j
ar to C:\Users\Administrator\.m2\repository\cn\zno\helloworld\0.0.1-SNAPSHOT\hel
loworld-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\dev\workspace\helloworld\pom.xml to C:\Users\Administrator\
.m2\repository\cn\zno\helloworld\0.0.1-SNAPSHOT\helloworld-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ helloworld ---
Downloading: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/z
no/helloworld/0.0.1-SNAPSHOT/maven-metadata.xml
Uploading: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno
/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20160315.095232-1.jar
Uploaded: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno/
helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20160315.095232-1.jar (3 KB at 16.0 K
B/sec)
Uploading: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno
/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20160315.095232-1.pom
Uploaded: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno/
helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20160315.095232-1.pom (2 KB at 16.9 K
B/sec)
Downloading: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/z
no/helloworld/maven-metadata.xml
Uploading: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno
/helloworld/0.0.1-SNAPSHOT/maven-metadata.xml
Uploaded: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno/
helloworld/0.0.1-SNAPSHOT/maven-metadata.xml (766 B at 8.8 KB/sec)
Uploading: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno
/helloworld/maven-metadata.xml
Uploaded: http://192.168.0.244:8081/nexus/content/repositories/snapshots/cn/zno/
helloworld/maven-metadata.xml (276 B at 3.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.079s
[INFO] Finished at: Tue Mar 15 17:52:32 GMT+08:00 2016
[INFO] Final Memory: 14M/154M
[INFO] ------------------------------------------------------------------------
二、使用组件
点击搜索,然后
找到了,】
<dependency>
<groupId>cn.zno</groupId>
<artifactId>helloworld</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
就像使用 http://mvnrepository.com/ 一样,爽!
nexus 私服跑一跑流程的更多相关文章
- nexus私服搭建及maven生命周期
一.maven找库流程 从流程上看创建nexus私服,能够优化流程,而且更加快速 二.nexus下载.安装 1.nexus下载地址 https://sonatype-download.global.s ...
- Maven配置Nexus私服
官方文档:http://books.sonatype.com/nexus-book/3.0/reference/maven.html#maven-sect-single-group 1,下载安装 首先 ...
- centos7安装nexus私服2.14
今天项目经理叫搭个nexus私服,记录一下 nexus下载比较慢,可在本地下载,然后用sftp上传到linux系统去,下载地址https://www.sonatype.com/download-oss ...
- nexus私服update repair index索引失败解决方案(转)
转载地址:http://blog.csdn.net/first_sight/article/details/51559086 问题描述: 搭建Maven的Nexus私服仓库,一般安装完Nexus后,默 ...
- Maven基础配置--nexus私服配置
登录nexus私服后台,按照下图1-3的顺序进行添加仓库: 其中步骤3有三种仓库类型(Type)进行选择 1. Hosted Repository:本地仓库,在私服服务器上存放用户自行上传的jar包: ...
- Maven仓库搭建--nexus私服
Maven仓库搭建--nexus私服(Linux环境) Maven仓库简介 Maven仓库分为本地仓库.远程仓库.私服.本文重点介绍私服的使用方法. 下载安装包 网址:http://www.sonat ...
- Maven-006-手动部署第三方构件至 nexus 私服
某些 Java 构件因许可证因素,无法公开的部署到公共仓库中:或者,一些小型的开源项目(例如 SourceForge.GitHub 中的一些项目),没有将构件分发到中央仓库中,也没有维护自己的仓库,因 ...
- Maven-005-部署构件至 nexus 私服
nexus 私服仓库中宿主仓库主要用于储存装置内部的或一些无法从公共仓库获取的第三方构件,供项目组的人员使用.日常开发中,可将各版本构件直接部署到 Nexus 中对应策略的宿主仓库中.上篇文章中讲述了 ...
- Nexus私服忘记用户名密码,Nexus私服如何找回用户名密码
Maven搭建私服用Nexus很方便.但是如果忘记了管理员的密码,如何处理呢?Nexus私服如何找回用户名密码? 1. 找到nexus-XXXYYYY-bundle/sonatype-work/nex ...
随机推荐
- WAL 【转】
重做日志:每当有操作执行前,将数据真正更改时,先前相关操作写入重做日志.这样当断电,或者一些意外,导致后续任务无法完成时,系统恢复后,可以继续完成这些更改 撤消日志:当一些更改在执行一半时,发生意外, ...
- hibernate中.常见的hql查询语句
hql是非常有意识的被设计为完全面向对象的查询 基本规则: 1.hql语法类似于sql,但它后面跟的不是表名和字段名,而是类名和属性名 2.hql大小写不敏感.但是设计java类名,包名,属性名时大小 ...
- CentOS7系列搭建Openvpn
环境:CentOS Linux release 7.3.1611 (Core) 查看os版本命令:[root@openvpn ~]# cat /etc/redhat-release 命令记录如下: y ...
- Analyzing Microarray Data with R
1) 熟悉CEL file 从 NCBI GEO (http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE24460)下载GSE24460. 将得到 ...
- sql:查询课程号'0312091006'成绩排名第5到第10之间的学生学号
select top 6 sno from (select top 10 sno,mark from student_Coursewhere ccno='0312091006' order by ma ...
- SUSE11&12 永久关闭防火墙
SUSE11下:关闭操作为:service SuSEfirewall2_setup stopservice SuSEfirewall2_init stop取消开机启动防火墙:chkconfig SuS ...
- C++ volatile
volatile的位置与const相同——都是作为类型的附加修饰符 使用volatile的主要目的是提示编译器该对象的值可能在编辑器未监测的情况下被改变,因此编译器不能武断地对引用这些对象的代码作优化 ...
- Intersecting Lines(叉积,方程)
Intersecting Lines http://poj.org/problem?id=1269 Time Limit: 1000MS Memory Limit: 10000K Total Su ...
- Java计算图的匹配率
2016-07-02 大概意思就是这样了,代码里我貌似没有计算最后一步,但是原理都是一样的.....R1有5个点P1有四个点,他们共同的点是4个,那就是共同点4*4/(R1的5个点*P1的四个点就是0 ...
- php的静态化
原理,将动态的页面,存储为静态的HTML静态页,使浏览器直接请求该静态页. 测试:一个PHP动态页面与一个静态页面所消耗的时间 一般可以使用apache自带的ab(apache bench)程序来测试 ...