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

Failure if parameter constant not defined in same file/class as configuration parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.6.0uimaFIT
    • Component/s: uimaFIT-Maven-Plugin
    • Labels:
      None

      Description

      org.apache.uima.fit.maven.util.Util.getParameterDocumentation(JavaSource, String, String) fails with an IllegalArgumentException stating that the parameter constant cannot be found if that constant is defined in another class, e.g. in a superclass, an interface, etc. A warning may be sufficient in such a situation.

      The following exception was generated while trying to use the maven-uimafit-plugin goal "enhance" on Apache cTAKES.

      Caused by: java.lang.IllegalArgumentException: Parameter name constant [PARAM_WINDOW_ANNOT_KEY] in class [org.apache.ctakes.dictionary.lookup2.ae.AbstractJCasTermAnnotator]
      	at org.apache.uima.fit.maven.util.Util.getParameterDocumentation(Util.java:95)
      	at org.apache.uima.fit.maven.EnhanceMojo.enhanceConfigurationParameter(EnhanceMojo.java:453)
      	at org.apache.uima.fit.maven.EnhanceMojo.execute(EnhanceMojo.java:263)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	... 31 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rec Richard Eckart de Castilho
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: