Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-599

kjar archertype

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.CR1
    • 6.1.0.Final
    • None
    • None

      I'm opening this JIRA as I will later open PR related to https://groups.google.com/d/msg/drools-development/uO17-kC4mvc/aBRunEcZ_b4J

      The version of the archetype defaults for non-CEP, non-Eclipse plugin in pom. There are property which user can change default value to have CEP, and Eclipse plug-in.

      For reference,

      • Set-up the new project's pom:
        • Change Java version to 1.6 or greater, by including the maven-compiler-plugin
        • Add Drools dependencies
        • Change JUnit dependencies to version 4
        • Add kie-maven-plugin
        • [option] Add plug-in org.eclipse.m2e/lifecycle-mapping settings, to avoid Eclipse ERROR at the pom.xml line defining the kie-maven-plugin
        • Set packaging to 'kjar'
      • ( ALT + F5 in betweens )
      • Creation of an initial .drl file in src/main/resources
      • Creation of minimal kmodule.xml in src/main/resources/META-INF directory
      • Create a simple JUnit test for:
        • Creation of KieBase [option ->] with STREAM option for CEP features
        • Creation of KieSession [option ->] with pseudo-clock
        • [option: Advance] / Insert / Fire template
        • ... and other verification/output patterns
      • Include SLF4J and LOG4J binding for logging, including a log4j.properties file in src/test/resources

              mfusco@redhat.com Mario Fusco
              mmortari@redhat.com Matteo Mortari
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: