Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15265

Use openshift-maven-plugin for quickstarts / archetypes

XMLWordPrintable

    • False
    • False
    • 2021-M2
    • 0
    • 0% 0%
    • Todo
    • Undefined

      The fabric8-maven-plugin has been deprecated (see https://github.com/fabric8io/fabric8-maven-plugin/blob/master/README.md) and Openshift support has been moved to the jkube openshift-maven-plugin (https://www.eclipse.org/jkube/docs/openshift-maven-plugin/).     It would be good to move the quickstarts to use the jkube openshift-maven-plugin.

      The way we use these maven plugins in Fuse is that we repackage them and give them the same version as the redhat-fuse BOM.     This allows us to temporarily support both openshift-maven-plugin and fabric8-maven-plugin.     We can move the quickstarts to use the jkube openshift-maven-plugin so that new applications built off of them and the archetypes will use that and as long as we also still include the fabric8-maven-plugin, developers will be able to update their older apps that use fabric8-maven-plugin to the newest version of Fuse simply by updating the fuse-bom-version as they do now.   

      The strategy I've taken here is to include a property in the openshift profile that specifies the Fuse image :

      <jkube.generator.from>registry.redhat.io/fuse7/fuse-java-openshift:${docker.image.version}</jkube.generator.from> 

      We can either do this or, or fork openshift-maven-plugin and include the image names like we do here :

      https://github.com/jboss-fuse/fabric8-maven-plugin/blob/fabric8-maven-plugin-4.3.0.fuse-780009/parent/pom.xml#L119-L125

      Proposing to fix this for 7.9.

              tcunning@redhat.com Thomas Cunningham
              tcunning@redhat.com Thomas Cunningham
              Salvatore Mongiardo Salvatore Mongiardo
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: