exec-maven-plugin says cannot run specified program, even though it is on the PATH

前端 未结 3 1341
没有蜡笔的小新
没有蜡笔的小新 2021-01-11 14:24

Edit 20140716:

Solution found

tl;dr = exec-maven-plugin does not recognise .cmd files, but only .bat file

3条回答
  •  没有蜡笔的小新
    2021-01-11 15:00

    In addition to bguiz' answer, which would be the best solution, I've created a workaround using Maven profiles, bypassing the problem.

    This is a temporary solution, until the maven-exec-plugin's bug gets fixed.

    Please upvote the bug report here: http://jira.codehaus.org/browse/MEXEC-118

    Edit: The bug is resolved, you can point to 1.4-SNAPSHOT to fix it.

    
    (...)
        
            
                grunt-exec-windows
                
                    
                        Windows
                    
                
                
                    
                        
                            org.codehaus.mojo
                            exec-maven-plugin
                            ${exec-maven-plugin.version}
                            
                                
                                    grunt-default
                                    generate-resources
                                    
                                        cmd
                                        
                                            /C
                                            grunt
                                        
                                    
                                    
                                        exec
                                    
                                
                            
                        
                    
                
            
        
    
    

提交回复
热议问题