---
title: "Maven使用mvn命令时跳过test的参数"
author: "欣水寓言"
date: "2015-05-28T11:24:14Z"
tags: []
categories: ["编程语言"]
slug: "maven-mvn-test"
draft: false
lastmod: "2015-05-28T11:24:14Z"
id: 2215042
url: "https://fableking.iteye.com/blog/2215042"
---

方法有两种：

方法1：

```
mvn install -DskipTests
```

 方法2：

```
mvn install -Dmaven.test.skip=true
```