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

jcasgen-maven-plugin needs to support patterns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.1SDK
    • jcasgen-maven-plugin
    • None

    Description

      With the old JCasGenPomFriendly class in uimaFIT, it was possible to select the descriptors for which JCas wrappers should be generated using a wildcard pattern:

      <configuration>
        <mainClass>org.apache.uima.fit.util.JCasGenPomFriendly</mainClass>
        <arguments>
          <argument>file:${project.basedir}/src/test/resources/org/apache/uima/fit/type/**/*.xml</argument>
          <argument>${project.build.directory}/generated-sources/jcasgen</argument>
        </arguments>
        <classpathScope>test</classpathScope>
      </configuration>
      

      With the current jcasgen-maven-plugin, only a single descriptor file is possible. This is quite inconvenient for users. At least there should be the same possibility of specifying a wildcard pattern as in the JCasGenPomFriendly. Even better would be, to combine that with the commonly used include/exclude pattern used in many Maven plugins, e.g.

      <plugin>
        <groupId>org.apache.uima</groupId>
        <artifactId>jcasgen-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
      	<goal>generate</goal>
            </goals>
            <configuration>
              <typeSystemIncludes>
                <typeSystemInclude>src/main/resources/types/**/*.xml</typeSystemInclude>
              </typeSystemIncludes>
              <typeSystemExcludes>
                <typeSystemExclude>src/main/resources/types/**/nojcas/*.xml</typeSystemExclude>
              </typeSystemExcludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
      

      Attachments

        Issue Links

          Activity

            People

              rec Richard Eckart de Castilho
              rec Richard Eckart de Castilho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: