---
title: "maven 常用命令备忘"
author: "fishermen"
date: "2015-07-28T10:38:15Z"
tags: []
categories: ["开源软件"]
slug: "maven"
draft: false
lastmod: "2015-07-28T10:42:40Z"
id: 2230847
url: "https://fishermen.iteye.com/blog/2230847"
---

1 打包时忽略各种tests

mvn package -DskipTests 

 

2 展现项目的依赖树

mvn dependecny:tree

 

3 本地依赖库install

mvn install:install-file -DgroupId=xx  -DartifactId=captain-common -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=target/xxx.jar