Michael Kutschke created UIMA-4351:
--------------------------------------

             Summary: jcasgen-maven-plugin limitToProject property not working 
as expected
                 Key: UIMA-4351
                 URL: https://issues.apache.org/jira/browse/UIMA-4351
             Project: UIMA
          Issue Type: Bug
          Components: jcasgen-maven-plugin
    Affects Versions: 2.6.0SDK, 2.4.2SDK
         Environment: Windows 7, Maven 3.2.3
            Reporter: Michael Kutschke
            Priority: Minor


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] ------------------------------------------------------------------------



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to