Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-9885

Enable repository daemon module registration for the contenttype service when running (testing) from within IntelliJ



    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
    • Similar issues:


      The repository daemon module registration is based on scanning for (jar) archive Manifest Hippo-Modules entries.
      This works fine when running (or testing) based on an actual jar archive (as a project dependency) within IntelliJ.

      However, when the (Maven) module providing the daemon module itself is part of the IntelliJ project (or loaded as additional module), this currently fails.
      IntelliJ then will build the (test)runtime classpath based upon the project/module build target classes and test-classes folders, not the artifact jar file.
      The needed MANIFEST.MF classpath resource then is not available at runtime and the daemon module won't be activated.

      To fix this problem, the maven-jar-plugin configuration for the module will be changed to point to a custom Manifest file (fragment).
      This custom Manifest file will be automatically merged into the final MANIFEST.MF for the jar artifact, as documented at the Maven Archiver website.
      This custom src/main/resources META-INF/MANIFEST.MF file, containing (only) the Hippo-Modules entry, will then also be available when running/testing from within IntelliJ, and the daemon module detected and activated.




            • Assignee:
              adouma Ate Douma
              adouma Ate Douma
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: