How I run maven project in cmd line

后端 未结 6 1879
失恋的感觉
失恋的感觉 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:24

    Are you sure that you are in the correct path for loading the .jar file?

    maybe you need something like this?

    java -jar -Dapple.awt.UIElement="true" USERS/eclipse-project/projectname/target/myproject-1.0-SNAPSHOT.jar -h 
    

提交回复
热议问题