---
title: "maven上传命令详解"
author: "jdkleo"
date: "2018-11-21T20:43:54Z"
tags: []
categories: ["编程语言"]
slug: "maven"
draft: false
lastmod: "2020-11-03T10:31:08Z"
id: 2434153
url: "https://jdkleo.iteye.com/blog/2434153"
---

mvn deploy:deploy-file

-DgroupId=com.xxx #组名

-DartifactId=yyy #组件ID

-Dversion=1.1-SNAPSHOT #组件版本

-Dpackaging=pom #组件类型 jar pom war ...

-Dfile=C:\\xxx\\xxx\\pom.xml #文件的绝对地址,可以是jar、pom.xml、war等文件

-Durl=http://xxx.nexus.com/content/repositories/architecture-snapshots/ #上传到nexus私服的地址

-DrepositoryId=xxx-snapshots #上传到nexus私服的分组ID