2 Replies Latest reply on Dec 7, 2016 7:42 AM by abhijithumbe

    KIE Workbench does not execute plugin during Build & Deploy

    rkomulwadbnsf

      The highlighted plugin intended to execute a script during when a user clicks on 'Build & Deploy' in the BRMS editor. The script is never executed, the same works though when the build executed manually in a command line.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <modelVersion>4.0.0</modelVersion>

        <groupId>example</groupId>

        <artifactId>SampleRuleProject</artifactId>

        <version>1.0</version>

        <name>SampleRuleProject</name>

        <build>

          <plugins>

            <plugin>

              <groupId>org.kie</groupId>

              <artifactId>kie-maven-plugin</artifactId>

              <version>6.4.0.Final</version>

              <extensions>true</extensions>

            </plugin>

           <plugin>

              <groupId>org.codehaus.mojo</groupId>

              <artifactId>exec-maven-plugin</artifactId>

              <version>1.4.0</version>

              <executions>

                <execution>

                  <id>SampleCommand</id>

                  <phase>generate-sources</phase>

                  <goals>

                    <goal>exec</goal>

                  </goals>

                  <configuration>

                    <executable>${basedir}/run-script.sh</executable>

                  </configuration>

                </execution>

              </executions>

            </plugin>

          </plugins>

        </build>

      </project>