Trying to build with Java "11.0.1" 2018-10-16 LTS...
Result: Fails when japicmp-maven-plugin is invoked
Severity: not a blocker
Comment: Consider configuring the Maven enforcer plugin such that
it checks that a Java 8 is being used to compile - or -
fix the build by copying the required configurations from
the UIMA core framework build. Dependency on Java 8 not
mentioned in the README file in the "Building from the
Source Distribution" section
Trying to build with Java "1.8.0_181"...
Result: Build successful
Downloaded source ZIP
Built ruta-maven-example
Result: Build successful
Built ruta-ep-example-extensions
Result: Build successful
Check ruta-tutorial-GermanNovels "examples" project
Result: contains only latex source code
Severity: not a blocker
Comment: It would be more useful if a pre-compile PDF would
be included in the repo, e.g. in the "GermanNovels" examples
folder. Having the latex sources under the examples folder seems
odd.
Checking DEPENDENCIES file
Result: No issue found
Checking README file
Result: ok
Comment: The README file mentions the uimaFIT JCasGenPomFriendly
which doesn't exist anymore since quite some time.
Empty line missing before "mvn clean install"
Checking ruta-2.7.0-source-release.zip.sha512
Result: ok
Spot checking code changes
Result: ok
Comment: Many catch blocks could be consolidated using Java 8 multi-catches.
Ample opportunities for cleaner code up using lambdas.
The language syntax documentation says e.g. `("<-" "{"
SimpleStatement+ "}")*`
but shouldn't that be a `+` in the end (i.e. 1-or-more)?
Some unit test methods declare excessive lists of thrown
exceptions. This
can be simplified by just declaring `throws Exception` on the unit
test
method. Doing so on @Test methods is not harmful or bad style.
Installed Ruta from update site into a freshly downloaded Eclipse
Result: ok
Comment: needed to install UIMA Eclipse plugins first
Imported example projects into Eclipse
Result: errors
Comment: I pointed "Import -> Existing Projects" at the examples folder
contained in the source ZIP. Several projects are imported.
The "Extensions Example" and "GermanNovels" projects have errors.
"GermanNovels" is a Maven project, but is not imported as such.
Even when importing it via "Import -> Existing Maven Projects",
it has errors.
The "ruta-maven-example" fails (I run Eclipse on Java 11):
Execution descriptors of goal org.apache.uima:ruta-maven-plugin:2.7.0:generate
failed: Failed to read candidate component class: URL
[jar:file:/Users/bluefire/.m2/repository/org/apache/uima/ruta-core/2.7.0/ruta-core-2.7.0.jar!/org/apache/uima/ruta/resource/XMLEventHandler.class];
nested exception is org.springframework.core.NestedIOException: ASM
ClassReader failed to parse class file - probably due to a new Java class file
version that isn't supported yet: class path resource
[org/xml/sax/helpers/DefaultHandler.class]; nested exception is
java.lang.IllegalArgumentException
(org.apache.uima:ruta-maven-plugin:2.7.0:generate:descriptors:process-classes)
It seems as if an old version of ASM is used to analyze classes
from the Java 11 JDK (which ASM does not understand yet).
The "ruta-example-german-novels" fails with:
error: Feature "language" is not defined for type
"de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Document".
I guess that should be
"de.tudarmstadt.ukp.dkpro.core.api.metadata.type.DocumentMetaData"?
The "ExtensionsExample" fails with several messages:
- error: Action "ExampleAction" is not defined.
- error: Condition "" is not defined.
- Mismatched Input: : }
- Mismatched Input: Expecting "SEMI" but found "{".
- Type "REVERSE " not defined in this script/block!
I think it would be a good idea to update the examples and ensure they work?
Cheers,
-- Richard