Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-1107 Refactor server adapters to fit how its done in JBT
  3. FUSETOOLS-1102

we need good support for the "mvn fabric8:deploy" approach of deploying maven projects into fabric8

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Critical Critical
    • 7.3.0
    • None
    • None
    • None

      the recommended approach to deploy any kind of artefact (jar, war, bundle etc) into fabric8 / jboss-fuse is via the maven plugin:
      https://github.com/fabric8io/fabric8/blob/master/docs/mavenPlugin.md

      so the build does a "mvn fabric8:deploy" in the maven project. There's a few maven properties available that can be used to configure the profile that gets lazily created/updated too.

      It'd be great to have good integration in eclipse for using this mechanism. Note that the code is fairy simple - it'd be easy to replicate the functionality natively in eclipse itself too without the maven part; though its maybe easier to just use the maven plugin?

      e.g. https://github.com/jstrachan/fabric8/blob/micro-service/fabric/fabric8-maven-plugin/src/main/java/io/fabric8/maven/DeployToProfileMojo.java#L124-124

      the main issue is going to be specifying a maven ~/.m2/settings.xml which has the login/pwd to connect to fabric. Though the current deploy mechanism in Fuse IDE uses a similar approach to be able to deploy into the fabric via maven

              lheinema@redhat.com Lars Heinemann
              jastrachan_jira James Strachan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: