我正在尝试构建https://github.com/mrniko/redisson
当我运行 mvn 时,它给出了一个错误
没有为此构建指定目标。您必须以 : 或 :[:]: 格式指定有效的生命周期阶段或目标。可用的生命周期阶段有:验证、初始化、生成源、流程源、生成资源、流程资源、编译、流程类、生成测试源、流程测试源、生成测试资源、流程-test-resources、test-compile、process-test-classes、test、prepare-package、package、pre-integration-test、integration-test、post-integration-test、verify、install、deploy、pre-site、site ,站点后,站点部署,预清理,清理,清理后。-> [帮助 1]
如果我使用一些随机mvn deploy
的东西,jar 文件会在目标文件夹中创建,但是
[INFO] --- maven-deploy-plugin:2.8.1:deploy (default-deploy) @ redisson ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:11.837s
[INFO] Finished at: Wed Sep 23 17:12:52 IST 2015
[INFO] Final Memory: 29M/113M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy (default-deploy) on project redisson: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
只是好奇,正确的mvn
命令是什么?