我提取了一个示例 Struts 2 项目,它具有 maven pom.xml 文件。我已经为 Eclipse 安装了 m2e 插件。但是当我右键单击 pom.xml 文件并选择 Maven Build 时,它给了我以下错误。
没有为此构建指定目标。您必须以 : 或 :[:]: 格式指定有效的生命周期阶段或目标。可用的生命周期阶段有:验证、初始化、生成源、流程源、生成资源、流程资源、编译、流程类、生成测试源、流程测试源、生成测试资源、流程-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]
当我单击 Maven 构建时,我需要在 m2e 窗口中指定什么目标?