2016年3月5日星期六

BRMS_007:创建 kjar 的 pom.xml 文件内容

环境:OS X EI Capitan 10.11.3 + JDK 1.7.0_80 + JBoss BRMS 6.2.0 + Netbeans 8.0

终于可以成功创建 kjar 了,这里把 pom.xml 文件内容贴出来,备忘。

<?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>
  <groupId>com.sample</groupId>
  <artifactId>minsheng-kjar</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>kjar</packaging>
  <name>minsheng-kjar</name>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
    <drools.version>6.3.0.Final-redhat-5</drools.version>
  </properties>
  <dependencies>

    <!-- add this dependency if there are Model Classes present (created by Data Modeler in the business-central) -->
    <dependency>
      <groupId>org.kie</groupId>
      <artifactId>kie-api</artifactId>
      <version>${drools.version}</version>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.kie</groupId>
        <artifactId>kie-maven-plugin</artifactId>
        <version>${drools.version}</version>
        <extensions>true</extensions>
        <dependencies>
          <!-- add this dependency if there are Processes located in the project-->
          <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-bpmn2</artifactId>
            <version>${drools.version}</version>
          </dependency>
          <!-- add this dependency if there are Decision tables located in the project-->
          <dependency>
            <groupId>org.drools</groupId>
            <artifactId>drools-decisiontables</artifactId>
            <version>${drools.version}</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
</project>

参考文献:
1. https://access.redhat.com/solutions/892893

1 条评论: