Skip to main content

Hudson includes sonars jars into the war

  1 post   Feedicon  
Replies: 0 - Last Post: July 15, 2011 16:13
showing 1 - 1 of 1
Posted: July 15, 2011 16:13 by
I have a grails project build with maven.
When I build it with hudson it includes several jars that my project doesn't have dependency on.
One example is that I have slf4j-api-1.5.8.jar and slf4j-api-1.5.2.jar.
This brakes the deployment, because slf4j-api-1.5.2.jar gets on the class path first.
In my pom I specifically exclude that earlier version from dependencies.
I was researching this issue for a while and found that this jar comes from sonar dependencies. I removed the jars with versions in question from maven repository and saw maven-sonar plugin looking for them.
I need to exclude the jar from my final war file, either by configuring hudson to not include them or removing the jars afterwards through maven configuration. So far I have no success.
I am using grails-maven-plugin, with grails 1.3.7
Hudson 2.0.1
Sonar plugin - 1.6.1
Replies: 0 - Last Post: July 15, 2011 16:13
Please Confirm