The command line is too long Standard error from the DataNucleus tool

前端 未结 2 1319
一个人的身影
一个人的身影 2020-12-19 16:15

I am getting this error

The command line is too long.

mvn install

Standard error from the DataNucleus tool  org.datanucleus.enhancer.DataNucleusEnhancer 
         


        
2条回答
  •  隐瞒了意图╮
    2020-12-19 17:07

    You may look at http://www.datanucleus.org/products/accessplatform/troubleshooting.html. and here: http://code.google.com/p/vosao/issues/detail?id=47.

    ==============QUOTE==============

    Problem

    CreateProcess error=87 when running DataNucleus tools under Microsoft Windows OS.

    Windows has a command line length limitation, between 8K and 64K characters depending on the Windows version, that may be triggered when running tools such as the Enhancer or the SchemaTool with too many arguments.

    Solution

    When running such tools from Maven or Ant, disable the fork mechanism by setting the option fork="false". ==============END==============

    pom.xml file needs to be adjusted as follows:

    ==============WAS==============

    
        org.datanucleus
        ....
        
            **/*.class
            true
            ASM
            JDO
        
        ...
    
    

    ==============END WAS==============

    ==============SHOULD BE==============

    
        org.datanucleus
        ....
        
            false
            org/vosao/entity/*.class
            true
            ASM
            JDO
        
        ...
    
    

    ==============SHOULD BE==============

    My suggested change to pom.xml also specifies limiting scope of Enhancer work area.

提交回复
热议问题