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

add "openshift" profile to project when pushing an existing maven project to OpenShift

    XMLWordPrintable

Details

    • Hide
      OpenShift Express needs an *openshift* profile in the pom of a maven project it shall build. In M5 JBoss Tools assisted the user with a template. You had to add the profile manually if you wanted to push a maven project to OpenShift. In Beta1 we now do that automatically. We add the required profile automatically if you tell the wizard to enable OpenShift for your existing maven project.
      Show
      OpenShift Express needs an *openshift* profile in the pom of a maven project it shall build. In M5 JBoss Tools assisted the user with a template. You had to add the profile manually if you wanted to push a maven project to OpenShift. In Beta1 we now do that automatically. We add the required profile automatically if you tell the wizard to enable OpenShift for your existing maven project.

    Description

      A maven project, that shall be built on OpenShift needs the following profile in its pom.xml:

        <profiles>
          <profile>
           <!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. -->
           <!-- Use this profile for any OpenShift specific customization your app will need. -->
           <!-- By default that is to put the resulting archive into the 'deployments' folder. -->
           <!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
           <id>openshift</id>
           <build>
              <finalName>as</finalName>
              <plugins>
                <plugin>
                  <artifactId>maven-war-plugin</artifactId>
                  <version>2.1.1</version>
                  <configuration>
                    <outputDirectory>deployments</outputDirectory>
                    <warName>ROOT</warName>
                  </configuration>
                </plugin>
              </plugins>
            </build>
          </profile>
        </profiles>
      

      The current OpenShift tooling does not add this profile if it's not present yet. We should help the user to have that profile added by merging it into the pom.

      Attachments

        Issue Links

          Activity

            People

              ljelinko@redhat.com Lucia Jelinkova (Inactive)
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: