You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Changes in uimaFIT 2.x

Change of Maven group ID

The Maven group ID has changed from org.uimafit to org.apache.uima.

Change of package names to org.apache.uima.fit

The base package has been renamed from org.uimafit to org.apache.uima.fit. A global search/replace on Java files with for lines starting with import org.uimafit and replacing that with import org.apache.uima.fit should work.

Default name of configuration parameters

The default name of configuration parameters is now the name of the annotated field only. The classname is no longer prefixed. The method ConfigurationParameterFactory.createConfigurationParameterName() that was used to generate the prefixed name has been removed.

Compatibility with legacy annotation is provided by the #Legacy support module.

uimaj_core

Dependes on uimaj_core 2.4.1 version

@ConfigurationParameter

The default value for the mandatory attribute now is true.

META-INF/org.uimafit folder

Now the META-INF/org.uimafit was renamed to META-INF/org.apache.uima.fit.

Legacy support module

The compatibility layer should allow you to migrate to uimaFIT 2.0.0 without breaking anything. You should then be able to gradually change the codebase to be compatible with uimaFIT 2.0.0. As far as my tests go, uimaFIT 1.x and 2.0.0 can coexist peacefully on the classpath (and indeed both need to be on the classpath in order to use the legacy support module).

To enable the legacy support, make sure that you have a dependency on uimaFIT 1.x and then just add a dependency on

<dependency>
  <groupId>org.apache.uima</groupId>
  <artifactId>uimafit-legacy-support</artifactId>
  <version>2.0.0-SNAPSHOT</version>
</dependency>

uimaFIT 2.x automatically detects the presence of the legacy module and uses it - no additional configuration is necessary.

  • No labels