ERROR:Missing dependency hippo-repository

we’re trying to add custom validator following documentation here: (v13.3.0)

Added following dependency to pom file to extend custom validator from “” :


Following that the code was able compile just fine, but throws the missing dependency error upon server start:

[ **INFO** ] [talledLocalContainer] 24.09.2019 23:14:33 ERROR main [RepositoryServlet.init:246] Error while setting up JCR repository: 

[ **INFO** ] [talledLocalContainer] javax.jcr.RepositoryException: unchecked exception: Project 'hippo-services-validation' has a missing dependency 'hippo-repository'

[ **INFO** ] [talledLocalContainer] Caused by: Project 'hippo-services-validation' has a missing dependency 'hippo-repository'

How can we resolve the missing dependency ?

Hello @Jaimin_Patel, have you resolved the issue? Please, share any idea if you have some :slight_smile:

Why did you have to add that dependency manually? The hcm-module.yaml file in that jar is as follows:

group: hippo-cms
    name: hippo-services-validation
    after: hippo-repository
module: hippo-services-validation

So it has an hcm module dependency on hippo-repository hcm module. Note that this hcm module is part of the hippo-cms group too, which should hint that you shouldn’t be adding this dependency yourself. It’s part of the product.
Remove the dependency and it should work if you are running 13.3.0. Run the following to see where that dependency is coming from:

mvn dependency:tree -Dincludes=:hippo-services-validation:

You’ll see something like:
[ INFO ] org.example:myproject-cms:war:0.1.0-SNAPSHOT

[ INFO ] - org.example:myproject-cms-dependencies:pom:0.1.0-SNAPSHOT:compile

[ INFO ] - org.onehippo.cms7:hippo-package-cms-dependencies:pom:13.3.0:compile

[ INFO ] - org.onehippo.cms7:hippo-cms-dependencies:pom:13.3.0:compile

[ INFO ] - org.onehippo.cms7:hippo-cms-editor-frontend:jar:13.3.0:compile

[ INFO ] - org.onehippo.cms7:hippo-services-validation:jar:13.3.0:compile

It’s coming from the hippo-cms-editor-frontend jar

1 Like

The solution is to add validator classes to cms module. hope this helps.