Maven Exec Plugin : How configure the working directory

前端 未结 3 574
余生分开走
余生分开走 2021-01-04 02:28

I\'m using the Exec Maven plugin with the following command :

mvn exec:java

and I didn\'t manage to set the working dire

3条回答
  •  星月不相逢
    2021-01-04 03:00

    I didn't found solution with exec:java.

    So, now I use exec:exec instead because we can set the workingDirectory and it' OK.

    org.codehaus.mojo
    exec-maven-plugin
    1.3.2
    
        
            
                exec
            
        
    
     
        java
        
            -classpath 
            
            com.package.MyMainClass  
        
        ${project.build.outputDirectory}           
    
    

提交回复
热议问题