Maven IPR project doesnt compile in TeamCity
I am trying to configure maven IPR project in TeamCity 5.0. I am using Idea 9.0
I set the path.macro.MAVEN_REPOSITORY to point to the correct dir within the team city server.
When i try to build the project the compilation fails.
I looked at build agent logs and I see this
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.4/commons-lang-2.4.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/com/atti/tlog/tlog/TL-SNAPSHOT/tlog-TL-SNAPSHOT.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/net/sf/json-lib/json-lib/2.3/json-lib-2.3-jdk15.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/org/lwes/lwes-java/0.1.1/lwes-java-0.1.1.jar from path as it doesn't exist
[2010-01-22 19:28:26,304] out - dropping /home/snarasimhan/TeamCity/buildAgent/work/a93965e1a539034d/$MAVEN_REPOSITORY$/junit/junit/4.7/junit-4.7.jar from path as it doesn't exist
Earlier i saw the following logs during ant generation
[generateBuild] Loaded external path macro $MAVEN_REPOSITORY$=/home/snarasimhan/.m2/repository
Attaching the log and the generated ant file
Attachment(s):
integrationBuild.xml
astroman-j_astroman-ipr-coverage_jastroman_code_coverage_build_2995.log.zip
Please sign in to leave a comment.
Hi,
Could you please provide the screenshot of you runner settings.
Did you try to "check/reparse" project?
It should ask you for a value for your path macro.
I tried that , it didnt ask me for the value so i defined it in the the properties
Also attaching the ipr file
Attachment(s):
astroman.ipr.zip
Thank you for the IPR. We'll investigate this.
This appears to be a known issue - http://youtrack.jetbrains.net/issue/TW-10828. You can watch/vote for it.
Thank you for reporting.
Thanks for the reply. Is there a work around for now?
Yes, it's rated as major and should be fixed soon.
Kirill suggested that i use
path.macro.MAVEN.REPOSITORY
instead of
path.macro.MAVEN_REPOSITORY
and that worked for me.
The auto detection still doesnt work but I am not blocked for now.
Thanks a ton guys
I'm glad you could get it to work
Thank you!