Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22138

Server adapter: doesn't respect openshift maven profile


    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.9.0.AM3
    • Component/s: openshift
    • Environment:

      JBoss Developer Studio (Core Features) 9.1.0.GA-v20160403-1700-B477
      Openshift plugin 3.1.0.Final-v20160401-2357-B263

    • Sprint:
      devex #150 June 2018, devex #152 July 2018, devex #153 August 2018, devex #154 September 2018
    • Story Points:


      This is a follow up on JBIDE-22128.

      The maven profile is never read to determine the actual archive name. That will require more coupling to m2e, in order to load the pom.xml model using the openshift profile, if it exists, in order to determine the archive name. This will be a long running operation and will require more significant changes


      1. EXEC: follow steps outlined in https://github.com/redhat-helloworld-msa/helloworld-msa/blob/master/hello.adoc (deploying with fabric8 maven plugin doesn't work, you end up having the pod failing with ImagePullBack error. You need to take the alternative road where you deploy via "oc new-build", "oc new-app", "oc expose" etc.)
      2. EXEC: import the app into your Eclipse workspace
      3. EXEC: "hello" (workspace) project: Properties > Maven > Active Maven Profile: set "openshift"
      4. EXEC: create a server adapter and start it
      5. ASSERT: adapter starts syncing, verify what war is used

      The war that's created locally and then synced to the pod is "hello.war" even though the profile specifies "ROOT.war"

      Expected result:
      If you start the server adapter the maven profile "openshift" should be activated and the war that's published should be "ROOT.war". If you stop the server adapter the "openshift" maven profile should be deactivated for the "hello" project.

        Gliffy Diagrams


            Issue Links



                • Assignee:
                  adietish André Dietisheim
                  rafabene Rafael Benevides
                • Votes:
                  1 Vote for this issue
                  5 Start watching this issue


                  • Created: