我收到此錯誤的命令行是從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.
我收到此錯誤的命令行是從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.
你可以看看http://www.datanucleus.org/products/accessplatform/troubleshooting.html太長標準誤差。 和這裏:http://code.google.com/p/vosao/issues/detail?id=47。
============== QUOTE ==============
問題
CreateProcess的誤差= 87個運行時DataNucleus工具在Microsoft Windows操作系統下。
Windows有一個命令行長度的限制,8K和Windows版本取決於 64K字符之間,可運行工具時被觸發,如增強 或參數太多的SchemaTool。
解
當運行從Maven的或螞蟻這樣的工具,通過設置 選項叉=「假」禁用叉機構。 ============== END ==============
pom.xml文件需要如下進行調整:
= ============= WAS ==============
<plugin>
<groupId>org.datanucleus</groupId>
....
<configuration>
<mappingIncludes>**/*.class</mappingIncludes>
<verbose>true</verbose>
<enhancerName>ASM</enhancerName>
<api>JDO</api>
</configuration>
...
</plugin>
============== END WAS ==============
==============應該是==============
<plugin>
<groupId>org.datanucleus</groupId>
....
<configuration>
<fork>false</fork>
<mappingIncludes>org/vosao/entity/*.class</mappingIncludes>
<verbose>true</verbose>
<enhancerName>ASM</enhancerName>
<api>JDO</api>
</configuration>
...
</plugin>
================================
我對pom.xml的建議更改還指定了Enhancer工作區的限制範圍。
如果您正在使用DataNucleus將-Maven的插件,在Windows只需在插件的配置設置叉財產假如下:
<plugins>
...
<plugin>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-maven-plugin</artifactId>
<version>3.3.0-release</version>
<configuration>
<verbose>true</verbose>
<fork>false</fork> <!-- Solve windows line too long error -->
</configuration>
</plugin>
...
</plugins>
更多datails見datanucleus enhancer page。
請問http://www.datanucleus.org/servlet/forum/viewthread_thread,5590有幫助嗎? – Raghuram