maven build goal need to specify

后端 未结 4 1032
终归单人心
终归单人心 2020-12-23 14:48

I have extracted a sample Struts 2 project and it has the maven pom.xml file. I already installed the m2e plugin for eclipse. But when I right click the pom.xml file and sel

4条回答
  •  青春惊慌失措
    2020-12-23 15:13

    In the goal field on Run Configurations dialog (Main tab), you can input any of the following Maven's phases:


    1. validate – validate the project is correct and all necessary information is available
    2. compile – compile the source code of the project
    3. test – test the compiled source code using a suitable unit testing framework. These tests should not require the code to be packaged or deployed package – take the compiled code and package it in its distributable format, such as a JAR.
    4. integration-test – process and deploy the package if necessary into an environment where integration tests can be run
    5. verify – run any checks to verify the package is valid and meets quality criteria
    6. install – install the package into the local repository, for use as a dependency in other projects locally
    7. deploy – done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.

    From: Unknown Lifecycle Phase Error in Maven Build.

提交回复
热议问题