Build Successful?!

Can someone explain to me how this is a successful build?

: Checking for changes
: Clearing temporary directory: ..\temp\teamcity.tmp
: Building in c:\devtools\TeamCity\buildAgent\work\Server\50f701098b90e63b
: Clean build enabled: removing old files
: Getting project sources
: Loading changed files from server...
: Updating c:\devtools\TeamCity\buildAgent\work\Server\50f701098b90e63b
: Clean directory c:\devtools\TeamCity\buildAgent\work\Server\50f701098b90e63b
: cmd.exe /c C:\devtools\Maven-2.0.7\bin\mvn.bat -f c:\devtools\TeamCity\buildAgent\work\Server\50f701098b90e63b\pom.xml -B "-Dteamcity.buildConfName=Build (HEAD)" -DDotNetFramework1.1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -Dbuild.working.dir=c:\devtools\TeamCity\buildAgent\work\Server\50f701098b90e63b -DDotNetFramework3.0= -Dbuild.number=4 -Dteamcity.dotnet.nunitlauncher2.0=C:\devtools\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe -Duser.language=en -Dos.version=5.1 -DDotNetFramework3.0_x86= -Dfile.encoding=Cp1252 "-Dteamcity.projectName=CDQ Platform Project" -Dteamcity.dotnet.nunitlauncher2.0.vsts=C:\devtools\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.VSTS.exe -DDotNetFramework2.0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 -DDotNetFramework2.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 -Dteamcity.dotnet.coveragelauncher=C:\devtools\TeamCity\buildAgent\plugins\dotnetPlugin\bin\TeamCityRunners\JetBrains.dotTrace.TeamCity.CoverageRunner.exe -Djava.io.tmpdir=c:\devtools\TeamCity\buildAgent\bin\..\temp\teamcity.tmp -Duser.name=SYSTEM -DDotNetFramework3.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.0 -Dteamcity.auth.password=303d14705a5d7d023376af4adcb8e165d1b95c2a -Dteamcity.buildType.id=bt1 -DDotNetFrameworkSDK1.1_x86= "-DDotNetFrameworkSDK2.0_Path=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0" -Duser.variant= -Dteamcity.dotnet.nunitlauncher1.1=C:\devtools\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher1.1.exe "-DDotNetFrameworkSDK1.1_Path=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1" -Dteamcity.dotnet.nunitlauncher.msbuild.task=C:\devtools\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll -Didea.build.server.build.id=24 -Dpath.separator=; "-DVS2005_Path=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE" -DDotNetFrameworkSDK2.0= -DVS2003= -Dagent.name=au0pdrc1 -Dbuild.number.format= -DDotNetFramework1.1= -Duser.country=US -Duser.timezone=America/Chicago -DDotNetFramework2.0_x86= -Dagent.work.dir=c:\devtools\TeamCity\buildAgent\work -Dfile.separator=\ -DVS2005= -Dos.arch=x86 -DDotNetFramework3.0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v3.0 -DDotNetFramework1.1_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 "-DDotNetFrameworkSDK1.1_x86_Path=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1" -DDotNetFramework1.1_x86= -DDotNetFramework2.0= -Dbuild.vcs.number.1=1193353841324 "-Dos.name=Windows XP" -Didea.build.agent.port=9090 "-DVS2003_Path=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE" -DDotNetFrameworkSDK1.1= -Dteamcity.auth.userId=TeamCityBuildId=24 -DDotNetFrameworkSDK2.0_x86= -Dsuccessful.build.number=3 "-Duser.home=C:\Documents and Settings\cole3996.GROUP1" "-DDotNetFrameworkSDK2.0_x86_Path=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0" deploy
: Scanning for projects...
: -


: FATAL ERROR
: -


: Failed to resolve artifact.
:
: GroupId: group1
: ArtifactId: platform
: Version: SNAPSHOT
:
: Reason: Unable to download the artifact from any repository
:
: group1:platform:pom:SNAPSHOT
:
: from the specified remote repositories:
: central (http://repo1.maven.org/maven2)
:
:
: -


: Trace
: org.apache.maven.reactor.MavenExecutionException: Cannot find parent: group1:platform for project: null:server:pom:null for project null:server:pom:null
: at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
: at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
: at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
: at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
: at java.lang.reflect.Method.invoke(Method.java:585)
: at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
: at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
: at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
: at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
: Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: group1:platform for project: null:server:pom:null for project null:server:pom:null
: at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1261)
: at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:747)
: at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479)
: at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
: at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
: at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
: at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
: ... 11 more
: Caused by: org.apache.maven.project.ProjectBuildingException: POM 'group1:platform' not found in repository: Unable to download the artifact from any repository
:
: group1:platform:pom:SNAPSHOT
:
: from the specified remote repositories:
: central (http://repo1.maven.org/maven2)
: for project group1:platform
: at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:573)
: at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1257)
: ... 17 more
: Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
:
: group1:platform:pom:SNAPSHOT
:
: from the specified remote repositories:
: central (http://repo1.maven.org/maven2)
:
: at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:197)
: at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
: at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:526)
: ... 18 more
: Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
: at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:324)
: at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:185)
: ... 20 more
: -


: Total time: < 1 second
: Finished at: Thu Oct 25 18:11:38 CDT 2007
: Final Memory: 1M/2M
: -


: Number of processed tests: 0
: Publishing artifacts (<1s)
: Will process paths:
: Publishing artifacts 'teamcity-info.xml' to root artifacts directory
: Artifacts path teamcity-info.xml not found
: Build finished

FATAL ERROR does not equal SUCCESS

Rick Cole
Group1 Software, Inc.

2 comments

Hello, Rick

This is a known Maven 2.0.7 issue - http://jira.codehaus.org/browse/MNG-3084, which is already fixed and will be included into 2.0.8.

Until that you can either use older Maven versions (for example 2.0.6 which is bundled with TeamCity) or fix mvn.bat yourself.

The fragment at line 148 of mvn.bat


:error
set ERROR_CODE=1


should be replaced with


:error
if "%OS%"=="Windows_NT" @endlocal
set ERROR_CODE=1


Hope this helps.

0

Thanks for the quick response. Works like a charm!

Rick

0

Please sign in to leave a comment.