Step1: Add Maven Build target (pom.xml)
Ensure that the following maven build configuration is in your pom.xml
file.
<packaging>jar</packaging>
<build>
<defaultGoal>package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.2-01</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.4.20-01</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
You can then run the maven package command (mvn package
) from the command line, or use your IDE to run the build and
generate an external JAR file:
Step 2: Configure Flex Scripting Action
The following steps outline the configuration for Dalet Flex to execute custom scripts in an external JAR file:
PluginCommand
subclass.
def execute()
method into the script action: