Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9332

Immutable Spring boot deployment / declarative and autoscan enhacement

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.44.0.Final
    • None
    • None
    • None

    Description

      In addition to JBPM-9178

      declaratively in the application.properties like this:

      kieserver.deployments[0].alias=evaluation_v1
      kieserver.deployments[0].containerId=evaluation_v1
      kieserver.deployments[0].artifactId=Evaluation
      kieserver.deployments[0].groupId=com.myspace
      kieserver.deployments[0].version=1.0.0-SNAPSHOT
      
      kieserver.deployments[1].alias=evaluation_v2
      kieserver.deployments[1].containerId=evaluation_v2
      kieserver.deployments[1].artifactId=Evaluation
      kieserver.deployments[1].groupId=com.myspace
      kieserver.deployments[1].version=2.0.0-SNAPSHOT
      

      if you don't want to specify a the container alias it can be used another property for autoscanning deployments within spring boot

      kieserver.classPathContainer=true
      kieserver.autoScanDeployments=true
      

      With this won't be needed to specify any property. just include the deployments within spring boot as the next bullet indicates. This will deploy
      automatically those with a container id <artifactId>-<version>

      Maven plugin in the service (including kjar multiple version). This will resolve the necesary artifacts to run the kjar.

        <build>
          <plugins>
            <plugin>
              <groupId>org.kie</groupId>
              <artifactId>kie-maven-plugin</artifactId>
              <version>${version.org.kie}</version>
              <executions>
                <execution>
                  <id>copy</id>
                  <phase>prepare-package</phase>
                  <goals>
                    <goal>package-dependencies-kjar</goal>
                  </goals>
                </execution>
              </executions>
              <configuration>
                <artifactItems>
                  <artifactItem>
                    <groupId>com.myspace</groupId>
                    <artifactId>Evaluation</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                  </artifactItem>
                  <artifactItem>
                    <groupId>com.myspace</groupId>
                    <artifactId>Evaluation</artifactId>
                    <version>2.0.0-SNAPSHOT</version>
                  </artifactItem>
                </artifactItems>
              </configuration>
            </plugin>
          <plugins>
        <build>
      

      Attachments

        Activity

          People

            elguardian@gmail.com Enrique González Martínez (Inactive)
            elguardian@gmail.com Enrique González Martínez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: