TeamCity 7 Maven Problems
I recently upgraded to TeamCity 7 from TeamCity 6.5 and now all of my maven projects say that they have a "Problem with Maven Snapshot Dependencies..." with the following error message:
An error occurred during collecting Maven project information: Failed to activate local (project-level) build profiles: Cannot read profiles.xml resource from directory: D:\TeamCity\temp\teamcity1800244505880033694maven for project <groupId>:<artifactId>.
A check of D:\TeamCity\temp reveals that there is no teamcity1800244505880033694maven directory. Does anyone have any idea what's going on?
Please sign in to leave a comment.
Update: It appears to be looking for profiles.xml in the top level directory of each of my maven projects.
I'd also like to note that we are using maven 3 and the compatibilty notes indicate that profiles.xml is no longer supported.
https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-profiles.xml
Please, make sure there are no empty profiles.xml files in your repository.