native-maven-plugin

native-maven-plugin error with msvc compiler “The command line is too long.”

核能气质少年 提交于 2019-12-14 02:47:19
问题 I'm trying to build a cpp lib via maven using native-mvn-plugin. However, during the linking part, i'm encountering an error saying "The command line is too long" As for the configuration, im having this: <envFactoryName>org.codehaus.mojo.natives.msvc.MSVC2008x86EnvFactory</envFactoryName> <compilerProvider>msvc</compilerProvider> <compilerStartOptions> <compilerStartOption> /GL /EHsc </compilerStartOption> </compilerStartOptions> And for the linkerStartOptions, i have this: