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?