Showing posts with label pom. Show all posts
Showing posts with label pom. Show all posts

Sep 14, 2012

ERROR: Failed to parse POMs

Strange situation where the local build success but the build on the jenkins fails. 

After investigation i have noticed that one of the developers have add a tab somewhere in the pom. 
The tab \t character cause this error in the jenkins

Removing this character solved the issue. Of course i have reported that also to the jenkins guys. 


Hoped it helped you,

Dor

Jul 9, 2012

Spring Hibernate Envers java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V

Issue occurred to my college at work. It means that spring uses already the envers as a dependency inside it and you are trying to add it also with a different version. As result -> Conflict.
For me it happened with
spring 3.0.5
hibernate 3.6.0.FINAL
* We added hibernate-envers 3.6.0.FINAL.

Solution
Replacing hibernate-envers with the latest, current latest is 4.1.4 but you should look in maven repository.



Apr 18, 2012

junit NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper

Got this error while trying to run one of my junits.
This junit annotated with spring annotations and works with spring-web3.0.5-RELEASE.

After a lot of digging, it seems that the issue is simple.
You need to add this to your pom :

   <dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.4.2</version>
</dependency>

Jackson 1.4.2 suite to spring-web3.0.5

Problem caused since the jackson dependency in spring-web is an optional=true.