How I run maven project in cmd line

后端 未结 6 1854
失恋的感觉
失恋的感觉 2021-02-02 17:49

I write maven project and I run it in Eclipse but I want to run maven project in using command line so I write

java -jar -Dapple.awt.UIElement=\"true\" target/         


        
6条回答
  •  别那么骄傲
    2021-02-02 18:28

    1. cd to your project root folder in command line.
    2. mvn compile
    3. mvn exec:java -Dexec.mainClass=com.kub.App

    Please check for more informations here.

提交回复
热议问题