Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4351

jcasgen-maven-plugin limitToProject property not working as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.2SDK, 2.6.0SDK
    • None
    • jcasgen-maven-plugin
    • Windows 7, Maven 3.2.3

    Description

      The following configuration does not produce any sources. Commenting out the limitToProject property solves the issue, and generates sources.

      <plugin>
      <!--generate types dynamically -->
      <groupId>org.apache.uima</groupId>
      <artifactId>jcasgen-maven-plugin</artifactId>
      <version>2.6.0</version>
      <configuration>
      <limitToProject>true</limitToProject>
      <typeSystemIncludes>
      <include>src/main/resources/desc/type/*/.xml</include>
      </typeSystemIncludes>
      <typeSystemExcludes>
      <exclude>src/main/resources/desc/type/*/_customized.xml</exclude>
      </typeSystemExcludes>
      </configuration>
      <executions>
      <execution>
      <!--call it in the generate-source phase -->
      <phase>generate-sources</phase>
      <goals>
      <goal>generate</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      The relevant command line output before with limitToProject set to true:

      [INFO] — jcasgen-maven-plugin:2.6.0:generate (default) @ suppint.nlp —
      [INFO] JCasGen: Found descriptor '<path>\java\src\main\resources\desc\type\Relation.xml'
      [INFO] JCasGen: Limiting generation to descriptors in '<path>\java'
      [INFO] JCasGen: Output going to '<path>\java\target\generated-sources\jcasgen'
      [INFO] JCasGen: Reading the XML TAE descriptor, and creating types, for xml input file '<path>\java\target\jcasgen\typesystem.xml'.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------

      The output without limitToProject:

      [INFO] JCasGen: Found descriptor '<path>\java\src\main\resources\desc\type\Relation.xml'
      [INFO] JCasGen: Output going to '<path>\java\target\generated-sources\jcasgen'
      [INFO] JCasGen: Reading the XML TAE descriptor, and creating types, for xml input file '<path>\java\target\jcasgen\typesystem.xml'.
      [INFO] JCasGen: Creating: <package>.types.Located'.
      [INFO] JCasGen: Creating: '<package>.types.Located_Type'.
      [INFO] JCasGen: Creating: '<package>.types.Relation'.
      [INFO] JCasGen: Creating: '<package>.types.Relation_Type'.
      [INFO] JCasGen: Creating: '<package>.types.Supplies'.
      [INFO] JCasGen: Creating: '<package>.types.Supplies_Type'.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            kutschkem Michael Kutschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: