命令行太长DataNucleus工具的标准错误

我收到了这个错误

The command line is too long. mvn install Standard error from the DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer The command line is too long. 

如果你在windows中使用datanucleus-maven-plugin,只需在插件配置中将fork属性设置为false ,如下所示:

   ...  org.datanucleus datanucleus-maven-plugin 3.3.0-release  true false    ...  

有关更多数据,请参阅datanucleus enhancer页面 。

您可以查看http://www.datanucleus.org/products/accessplatform/troubleshooting.html 。 在这里: http : //code.google.com/p/vosao/issues/detail?id = 47 。

============== ==============报价

问题

在Microsoft Windows OS下运行DataNucleus工具时,CreateProcess错误= 87。

Windows具有命令行长度限制,在8K到64K字符之间,具体取决于Windows版本,在运行诸如Enhancer或SchemaTool等工具时可能会触发太多参数。

从Maven或Ant运行此类工具时,通过设置选项fork =“false”来禁用fork机制。 ============== END ==============

pom.xml文件需要调整如下:

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

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

==============结束==============

==============应该==============

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

==============应该==============

我对pom.xml的建议更改还指定了Enhancer工作区的限制范围。