Missing dependency in 14.2.2

When building the tutorial site [1] using the below 14.2.2 archetype, a dependency hippo-ckeditor 4.14.0-h1 is not found.

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeRepository=https://maven.onehippo.com/maven2 -DarchetypeGroupId=org.onehippo.cms7 -DarchetypeArtifactId=hippo-project-archetype -DarchetypeVersion=14.2.2

Viewing the repo [2] in the browser shows 4.12.1-h2 as the most recent version

image

I logged it [3]

[INFO] --------------------<del>< org.example:myproject-cms ></del>---------------------
[INFO] Building My Project CMS 0.1.0-SNAPSHOT [11/13]
[INFO] -------------------------------<del>[ war ]</del>--------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml
Downloading from hippo: https://maven.onehippo.com/maven2/net/minidev/json-smart/maven-metadata.xml
Downloading from hippo-maven2: https://maven.onehippo.com/maven2/net/minidev/json-smart/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml (849 B at 701 B/s)
Downloading from hippo: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1.pom
Downloading from hippo-maven2: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1.pom
[WARNING] The POM for org.onehippo.cms7:hippo-ckeditor:jar:optimized:4.14.0-h1 is missing, no dependency information available
Downloading from hippo: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1-optimized.jar
Downloading from hippo-maven2: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1-optimized.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1-optimized.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] My Project 0.1.0-SNAPSHOT .......................... SUCCESS [ 2.741 s]
[INFO] My Project Repository Data ......................... SUCCESS [ 0.209 s]
[INFO] My Project Repository Data For Application ......... SUCCESS [ 2.606 s]
[INFO] My Project CMS Dependencies ........................ SUCCESS [ 0.189 s]
[INFO] My Project Repository Data For Development ......... SUCCESS [ 0.696 s]
[INFO] My Project Repository Data For Site ................ SUCCESS [ 1.094 s]
[INFO] My Project Repository Data For Site Development .... SUCCESS [ 0.605 s]
[INFO] My Project Site .................................... SUCCESS [ 0.174 s]
[INFO] My Project Site Components ......................... SUCCESS [ 3.646 s]
[INFO] My Project Repository Data Web Files ............... SUCCESS [ 0.854 s]
[INFO] My Project CMS ..................................... FAILURE [ 6.975 s]
[INFO] My Project Site Webapp ............................. SKIPPED
[INFO] My Project Essentials 0.1.0-SNAPSHOT ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.199 s
[INFO] Finished at: 2020-07-21T08:17:26+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project myproject-cms: Could not resolve dependencies for project org.example:myproject-cms:war:0.1.0-SNAPSHOT: Could not find artifact org.onehippo.cms7:hippo-ckeditor:jar:optimized:4.14.0-h1 in hippo (https://maven.onehippo.com/maven2/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :myproject-cms

[1] https://documentation.bloomreach.com/14/trails/getting-started/creating-a-project.html
[2] Index of /groups/maven2/org/onehippo/cms7/hippo-ckeditor
[3] https://issues.onehippo.com/projects/CMS/issues/CMS-13629

It is still inside enterprise repository, I believe because of:

1 Like

Ah, makes sense in that case. Thought it was released to community because it is in the public documentation tutorials

Hi Andre!

The 4.12.1-h2 version of hippo-ckeditor has been deployed.

Thanks for submitting the issue! Please let us know if you experience any more problems.

1 Like

That’s great, thank Nikola. I can indeed find the dependency, and am able to pass the previous error.

Unfortunately though it now encounters another dependency error, which seem to be related to the newly deployed dependency. Unfortunately Maven will only report one missing dependency at a time, but it seems there are more dependencies that were not deployed for 14.2.2.

Now this is the error I get when building (mvn clean -U verify) with the 14.2.2 archetype.

[INFO] ---------------------< org.example:myproject-cms >----------------------
[INFO] Building My Project CMS 0.1.0-SNAPSHOT                           [11/13]
[INFO] --------------------------------[ war ]---------------------------------
Downloading from hippo: https://maven.onehippo.com/maven2/net/minidev/json-smart/maven-metadata.xml
Downloading from hippo-maven2: https://maven.onehippo.com/maven2/net/minidev/json-smart/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadata.xml (849 B at 1.7 kB/s)
Downloading from hippo: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1.pom
Downloaded from hippo: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-ckeditor/4.14.0-h1/hippo-ckeditor-4.14.0-h1.pom (0 B at 0 B/s)
Downloading from hippo: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-cms7-project/31.2.0/hippo-cms7-project-31.2.0.pom
Downloading from hippo-maven2: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-cms7-project/31.2.0/hippo-cms7-project-31.2.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/onehippo/cms7/hippo-cms7-project/31.2.0/hippo-cms7-project-31.2.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] My Project 0.1.0-SNAPSHOT .......................... SUCCESS [  3.237 s]
[INFO] My Project Repository Data ......................... SUCCESS [  0.203 s]
[INFO] My Project Repository Data For Application ......... SUCCESS [  2.964 s]
[INFO] My Project CMS Dependencies ........................ SUCCESS [  0.213 s]
[INFO] My Project Repository Data For Development ......... SUCCESS [  0.683 s]
[INFO] My Project Repository Data For Site ................ SUCCESS [  1.158 s]
[INFO] My Project Repository Data For Site Development .... SUCCESS [  0.623 s]
[INFO] My Project Site .................................... SUCCESS [  0.196 s]
[INFO] My Project Site Components ......................... SUCCESS [ 19.858 s]
[INFO] My Project Repository Data Web Files ............... SUCCESS [  0.820 s]
[INFO] My Project CMS ..................................... FAILURE [  3.142 s]
[INFO] My Project Site Webapp ............................. SKIPPED
[INFO] My Project Essentials 0.1.0-SNAPSHOT ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.946 s
[INFO] Finished at: 2020-07-28T07:01:51+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project myproject-cms: Could not resolve dependencies for project org.example:myproject-cms:war:0.1.0-SNAPSHOT: Failed to collect dependencies at org.example:myproject-cms-dependencies:pom:0.1.0-SNAPSHOT -> org.onehippo.cms7:hippo-package-cms-dependencies:pom:14.2.2 -> org.onehippo.cms7:hippo-cms-dependencies:pom:14.2.2 -> org.onehippo.cms7:hippo-cms-richtext-ckeditor-resources:jar:14.2.2 -> org.onehippo.cms7:hippo-ckeditor:jar:optimized:4.14.0-h1: Failed to read artifact descriptor for org.onehippo.cms7:hippo-ckeditor:jar:optimized:4.14.0-h1: Could not find artifact org.onehippo.cms7:hippo-cms7-project:pom:31.2.0 in hippo (https://maven.onehippo.com/maven2/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :myproject-cms

Hi Nikola,

I tried running again the build again this morning, and I’m happy to report that all 14.2.2 artifacts are now found and the build completes successfully.

Thanks again

Hi Andre,

That’s great to hear! Thanks for reporting the issue!

Have a nice day,
Nikola

Same issue in v14.6.0 Missing hippo-ckeditor dependency in v14.6.0