远投阿波漂的使用方法:The command line is too long
来源:百度文库 编辑:九乡新闻网 时间:2024/05/06 20:08:50
今天用MVN打包的时候遇到下面的错误:
Failure executing javac, but could not parse the error:
The command line is too long
在pom文件中jdk的配置为:
${jdk-version}
false
true
${jdk5-home}/bin/javac
通过查资料,我把true 注释掉,就能正常工作了。(把整个去掉也行。)
原因是:windows XP及以后的是8191。屏蔽掉之后,就用maven插件maven-compiler-plugin去编译java代码,不用中的命令行去编译了。主要是用于使用和maven插件maven-compiler-plugin不同的jdk版本时。
fork: Allows running the compiler in a separate process. If "false" ituses the built in compiler, while if "true" it will use anexecutable.
当javac的命令行较长时,可以指定一个或多个每行含有一个文件名的文件。在命令行中,采用 '@' 字符加上文件名的方法将它指定为文件列表。当 javac 遇到以 `@' 字符开头的参数时,它对那个文件中所含文件名的操作跟对命令行中文件名的操作是一样的。这使得 Windows 命令行长度不再受限制。
参考网页: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
Failure executing javac, but could not parse the error:
The command line is too long
在pom文件中jdk的配置为:
通过查资料,我把
原因是:windows XP及以后的是8191。屏蔽掉
fork: Allows running the compiler in a separate process. If "false" ituses the built in compiler, while if "true" it will use anexecutable.
当javac的命令行较长时,可以指定一个或多个每行含有一个文件名的文件。在命令行中,采用 '@' 字符加上文件名的方法将它指定为文件列表。当 javac 遇到以 `@' 字符开头的参数时,它对那个文件中所含文件名的操作跟对命令行中文件名的操作是一样的。这使得 Windows 命令行长度不再受限制。
参考网页: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
The command line is too long
解决manifest.mf的line too long问题
JavaOne 2011: The Definitive Set of HotSpot Performance Command-line Options
life is too short
IT IS A LONG ROAD
China moves up poverty line, but still too lo...
The End of the Line-metallica
The Long Tail:长尾理论
Risque race is too risky, Tufts decides
Libya: Is Nato too slow ? - Focus discussion ...
Workers' pay rise is long overdue
Wild Is The Wind
Too many officials perch above the people
invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe
Android模拟器启动invalid command-line parameter: Files\Android\android-sdk\tools/emulat
远程战略轰炸机轰6K (THE LONG
[图文]处事得体 利人利己 that is too hard
Life is too short(生命太短,生活尚长)
Wow! Taking flghts to S. Korea is damn too da...
Sex is not the answer. Sex is the question. “...
He is risen; the faith is the proof
The culture of the mind is vital
when the music is over
Listen, The Snow Is Falling