How I run maven project in cmd line

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

    Go to project :

    1. open cmd
    2. cd c:/project
    3. mvn clean install
    4. java -jar -Dapple.awt.UIElement="true" target/myproject-1.0-SNAPSHOT.jar -h

    Add this in pom:

        
                    
                        org.apache.maven.plugins
                        maven-jar-plugin
                        
                            
                                
                                    com.kub.App
                                
                            
                        
                    
         
    

提交回复
热议问题