I don’t know what didutils does but I’ve often come across an error when developing OSGi bundles for Adobe CQ5 where because of didutils not present in my local maven repository (sometimes client’s machines), my maven build failed.
To get rid of this problem, we need to find out where didutil is used. I often use the command
mvn dependency:tree > dependencies.txt
to see where in the entire dependency tree that didutils (or any other jar) could be required.
In my case, I found it was a dependency of cq-wcm-core. As I don’t need didutils for compilation I decided to exclude it from the cq-wcm-core dependency as follows:
<dependency> <groupId>com.day.cq.wcm</groupId> <artifactId>cq-wcm-core</artifactId> <version>5.4.10</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>didutil</groupId> <artifactId>did</artifactId> </exclusion> </exclusions> </dependency>
This fixed my build.
Now to the guys working at Adobe, what’s the deal with didutils? What does it do exactly and why can’t it be surfaced in your maven repository?
– Sarwar Bhuiyan