maven2 runner TC 3.0.1 - build fails - The input line is too long.

Hi, I recently upgraded to TC 3.0.1 (server and agent installed on W2K).
Now using maven2 runner (embedded maven or my own) a previously working build fails and I get the following message lines in the build log.

: MAVEN_OPTS = "-Dteamcity.buildConfName=CI Build" -Dagent.name=buildmachine -Dbuild.number=5 -Dteamcity.dotnet.nunitlauncher2.0=D:\TeamCity-3.0\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe -Dbuild.vcs.number.5=1942 -Dbuild.number.format= -Duser.language=en -Duser.country=GB -Dos.version=5.0 -Duser.timezone=Europe/London -Dbuild.vcs.number.2=1942 -Dfile.encoding=Cp1252 -Dagent.work.dir=D:\TeamCity-3.0\buildAgent\work -Dfile.separator=\ "-Dteamcity.projectName=Card Explorer" -Dteamcity.dotnet.nunitlauncher2.0.vsts=D:\TeamCity-3.0\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.VSTS.exe -Dbuild.vcs.number.8=1942 -Dos.arch=x86 -Dbuild.vcs.number.7=1942 -Dteamcity.dotnet.coveragelauncher=D:\TeamCity-3.0\buildAgent\plugins\dotnetPlugin\bin\TeamCityRunners\JetBrains.dotTrace.TeamCity.CoverageRunner.exe -Djava.io.tmpdir=D:\TeamCity-3.0\buildAgent\temp\buildTmp -Dbuild.vcs.number.1=1942 -Dbuild.vcs.number.6=1942 -Duser.name=SYSTEM -Dbuild.vcs.number.9=1942 "-Dos.name=Windows 2000" -Dteamcity.auth.password=k1UHxBgJ6nLAIRz5g6jrYaNwlHzgORUs -Didea.build.agent.port=9999 -Dteamcity.build.checkoutDir=C:\tc\card-explorer -Dteamcity.buildType.id=bt2 -Dteamcity.auth.userId=TeamCityBuildId=5 -Duser.variant= -Dteamcity.dotnet.nunitlauncher1.1=D:\TeamCity-3.0\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher1.1.exe -Dteamcity.dotnet.nunitlauncher.msbuild.task=D:\TeamCity-3.0\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll -Dbuild.vcs.number.3=1942 "-Duser.home=C:\Documents and Settings\Default User" -Didea.build.server.build.id=5 -Dbuild.vcs.number.4=1942 -Dpath.separator=; -Dteamcity.build.workingDir=C:\tc\card-explorer[12:39:56]: C:\build-framework\maven\bin\mvn.bat -f C:\tc\card-explorer\builds\aconite-card-explorer\pom.xml -B -s C:\build-framework\maven\conf\settings.xml clean install[12:39:56]: The input line is too long.

I tried running the same mvn command line from a command prompt and it works fine.

Has anyone seen this? Is there any workaround?

Thanks,

Arthur.

2 comments

Hi,

I discovered that switching my from Win2K to XP fixed this problem.

Regards,

Arthur.

0

I had a similar problem on Windows 2000. Environment variables (like MAVEN_OPTS) and the command line in Windows 2000 can only be something like 2000 chars long I believe vs. 8000 in Windows XP.

The solution was to trim the length a bit by setting all the dotnet parameters, which I don't need, to nothing at all.

I added to following to BuildAgent\conf\buildAgent.properties:

system.DotNetFramework1.1=
system.DotNetFramework1.1_Path=
system.DotNetFramework1.1_x86=
system.DotNetFramework1.1_x86_Path=
system.DotNetFramework2.0=
system.DotNetFramework2.0_Path=
system.DotNetFramework2.0_x86=
system.DotNetFramework2.0_x86_Path=
system.teamcity.dotnet.coveragelauncher=
system.teamcity.dotnet.nunitlauncher=
system.teamcity.dotnet.nunitlauncher.msbuild.task=
system.teamcity.dotnet.nunitlauncher1.1=
system.teamcity.dotnet.nunitlauncher2.0=
system.teamcity.dotnet.nunitlauncher2.0.vsts=
system.teamcity.dotnet.platform=

This made the command line shorter than 2000 characters.

0

Please sign in to leave a comment.