compiler:compile with fork fails on Windows -------------------------------------------
Key: MCOMPILER-39 URL: http://jira.codehaus.org/browse/MCOMPILER-39 Project: Maven 2.x Compiler Plugin Type: Bug Versions: 2.0.1 Environment: WindowsXP SP2 last jdk 1.4 maven 2.0.4 Reporter: Jeremie Poutrin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <fork>true</fork> <source>1.4</source> <target>1.4</target> </configuration> </plugin> ... [INFO] [compiler:compile] Compiling 412 source files to d:\java\CVS-Projects\project\core\target\classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Fatal error compiling Embedded error: Error while executing the external compiler. CreateProcess: CMD.EXE /X /C javac -d d:\java\CVS-Projects\project\target\classes -classpath "$CLASSPATH" src.java src2.java ... If I'm not wrong, On windows CMD.exe can only recieve 256 characters. And maybe could be better to call directly javac with the createProcess method. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira