diff options
Diffstat (limited to 'src/ri-engine/pom.xml')
-rw-r--r-- | src/ri-engine/pom.xml | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/src/ri-engine/pom.xml b/src/ri-engine/pom.xml new file mode 100644 index 0000000..e974b7c --- /dev/null +++ b/src/ri-engine/pom.xml @@ -0,0 +1,159 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <properties> + <main-class>io.trygvis.rules.engine.Main</main-class> + </properties> + + <parent> + <groupId>io.trygvis.rules-sandbox</groupId> + <artifactId>rules-sandbox</artifactId> + <version>1.0-SNAPSHOT</version> + <relativePath>../../pom.xml</relativePath> + </parent> + + <artifactId>ri-engine</artifactId> + + <dependencies> + + <dependency> + <groupId>${project.groupId}.module</groupId> + <artifactId>ri-module-api</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>org.drools</groupId> + <artifactId>drools-core</artifactId> + </dependency> + <dependency> + <groupId>org.drools</groupId> + <artifactId>drools-compiler</artifactId> + </dependency> + <dependency> + <groupId>org.drools</groupId> + <artifactId>drools-decisiontables</artifactId> + </dependency> + <dependency> + <groupId>org.drools</groupId> + <artifactId>drools-templates</artifactId> + </dependency> + + <dependency> + <groupId>ch.qos.logback</groupId> + <artifactId>logback-classic</artifactId> + </dependency> + + <dependency> + <groupId>com.fasterxml.jackson.dataformat</groupId> + <artifactId>jackson-dataformat-yaml</artifactId> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + </dependency> + + <dependency> + <groupId>com.hubspot.jinjava</groupId> + <artifactId>jinjava</artifactId> + <version>2.5.6</version> + </dependency> + + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + </dependency> + <dependency> + <groupId>info.picocli</groupId> + <artifactId>picocli</artifactId> + <version>${version.picocli}</version> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <annotationProcessorPaths> + <path> + <groupId>info.picocli</groupId> + <artifactId>picocli-codegen</artifactId> + <version>${version.picocli}</version> + </path> + </annotationProcessorPaths> + <compilerArgs combine.children="append"> + <arg>-Aproject=${project.groupId}/${project.artifactId}</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>3.2.4</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <transformers> + <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> + <resource>META-INF/kie.conf</resource> + </transformer> + </transformers> + <outputFile>${project.build.directory}/${project.artifactId}-fat.jar</outputFile> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>3.2.0</version> + <configuration> + <archive> + <manifest> + <mainClass>${main-class}</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + + <!-- TODO: attach generated script to build --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.6.0</version> + <executions> + <execution> + <id>generate-autocompletion-script</id> + <phase>package</phase> + <goals> + <!-- The java goal doesn't work here as maven itself would have to run with enable-preview --> + <goal>exec</goal> + </goals> + </execution> + </executions> + <configuration> + <executable>java</executable> + <arguments> + <argument>-Dpicocli.autocomplete.systemExitOnError</argument> + <argument>${java.preview}</argument> + <argument>-cp</argument> + <classpath/> + <argument>picocli.AutoComplete</argument> + <argument>--force</argument> + <argument>--completionScript</argument> + <argument>${project.build.directory}/engine_completion.sh</argument> + <argument>${main-class}</argument> + </arguments> + </configuration> + </plugin> + </plugins> + </build> +</project> |