How to pass systemProperties when invoking exec:java plugin in maven?

后端 未结 3 1038
闹比i
闹比i 2020-12-11 14:36

I want to use the exec:java plugin to invoke the main class from command line. I can pass arguments from the command line using -Dexec.args=\"arg0 arg1 arg2\",

3条回答
  •  再見小時候
    2020-12-11 15:20

    Try following for me it works properly

            
                org.codehaus.mojo
                exec-maven-plugin
                
                    ibis.structure.Structure
                    
                        
                            someKey
                            someValue
                        
                    
                
            
    

提交回复
热议问题