The command line is too long. in java project with maven

前端 未结 4 1217
再見小時候
再見小時候 2020-12-17 23:17

I have maven-gwt project. It has lots of dependencies which is usual by a large project. I think it is at the limit with creation of classpath. I found some information abou

4条回答
  •  失恋的感觉
    2020-12-18 00:01

    This seems to be a known problem with gwt-maven. There is a discussion on the gwt-maven google groups: Workaround for windows command line length limit

    The problem seems to be that the sources are included on the test classpath, hence you're getting problems when you're running surefire:

    The workaround is to exclude the sources dependency, make it system scope (from the above thread):

         
             
            myproject-rpc-source 
            ${project.groupId} 
            ${project.version} 
            sources 
    
             
            system 
            ${basedir}/../rpc/target/myproject-rpc-${project.version}-sources.jar 
         
    

    but I would fully read and understand the google groups thread before proceeding with this.

提交回复
热议问题