URGENT: Compilation error in TeamCity but not in IntelliJ

I am trying to build a webservice, which is a maven project, from TeamCity and I get some compilation errors related to @XmlElement annotaions I have used in my code.
The error is "annotation type not applicable to this kind of declaration".

If I build the same maven project from intellij, it builds just fine.
Not sure why it cannot build from TeamCity.

I am using TeamCity version 6.5.5.

Can someone help on this issue?


Regards,
Jasmina

2 comments
Comment actions Permalink

Hello Jasmina,

Please, attach full build log from TeamCity here.

Also, please try executing maven 'package' goal from IntelliJ Idea (from Maven Project tab in the UI). There can be difference between Idea's build and Maven build.

0
Comment actions Permalink

I was able to successfully build from Team City.
The jaxb jar files were misiing in the m2 repo of the box on which Team City was installed.

Thanks for your response.

Regards,
Jasmina

0

Please sign in to leave a comment.