2013-01-04 23 views
0

我正嘗試從Linux命令行使用以下命令安裝Maven無效任務:與Maven

/opt/apache-maven-2.2.1/bin/mvn -r -Dclient=HSH -Dmaven.test skip=true install 

但我不斷收到這樣的:

Invalid task 'skip=true': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal 

我應該做些什麼來避免這個?

回答

0

你想

-Dmaven.test.skip=true 

即您錯過了 ''在skip

+0

之前它好像在工作。我會盡快接受答案 –