I decided to add Welsh to LanguageTool as part of a mini-project for uni. I have been struggling for the past two days to simply get something running on my computer (MacBook with intel chip). I tried to follow the rather outdated tutorial here but after creating the file and everything I figured out that I was unable to run mvn clean package, nor nvm install -U nor anything except mvn clean.
After that, I tried to run these command from within a freshly cloned repo, still the same, errors everywhere, not even able to pass the tests. I thought it might be related to the version of Java I was using (21) and rolled back to 17, didn’t work either.
Now I’m starting to despair, considering dropping the idea altogether.
Can someone explain how to even get started?
I bet I’ll have to write the tests first and then start adding a dictionary and rules to pass the unit tests. But now, I can’t do anything.
Here is an example of the sort of error I recieve when trying to run mvn clean package:
mvn clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: osx
[INFO] os.detected.arch: x86_64
[INFO] os.detected.bitness: 64
[INFO] os.detected.version: 14.5
[INFO] os.detected.version.major: 14
[INFO] os.detected.version.minor: 5
[INFO] os.detected.classifier: osx-x86_64
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] LanguageTool [pom]
[INFO] LanguageTool Style and Grammar Checker Core [jar]
[INFO] English module for LanguageTool [jar]
[INFO] Persian module for LanguageTool [jar]
[INFO] Arabic module for LanguageTool [jar]
[INFO] French module for LanguageTool [jar]
[INFO] German module for LanguageTool [jar]
[INFO] Polish module for LanguageTool [jar]
[INFO] Catalan module for LanguageTool [jar]
[INFO] Italian module for LanguageTool [jar]
[INFO] Breton module for LanguageTool [jar]
[INFO] Dutch module for LanguageTool [jar]
[INFO] Portuguese module for LanguageTool [jar]
[INFO] Russian module for LanguageTool [jar]
[INFO] Asturian module for LanguageTool [jar]
[INFO] Belarusian module for LanguageTool [jar]
[INFO] Chinese module for LanguageTool [jar]
[INFO] Danish module for LanguageTool [jar]
[INFO] Esperanto module for LanguageTool [jar]
[INFO] Galician module for LanguageTool [jar]
[INFO] Greek module for LanguageTool [jar]
[INFO] Icelandic module for LanguageTool [jar]
[INFO] Japanese module for LanguageTool [jar]
[INFO] Khmer module for LanguageTool [jar]
[INFO] Lithuanian module for LanguageTool [jar]
[INFO] Malayalam module for LanguageTool [jar]
[INFO] Romanian module for LanguageTool [jar]
[INFO] Slovak module for LanguageTool [jar]
[INFO] Slovenian module for LanguageTool [jar]
[INFO] Spanish module for LanguageTool [jar]
[INFO] Swedish module for LanguageTool [jar]
[INFO] Tamil module for LanguageTool [jar]
[INFO] Tagalog module for LanguageTool [jar]
[INFO] Ukrainian module for LanguageTool [jar]
[INFO] LanguageTool module for Crimean Tatar [jar]
[INFO] Simple German module for LanguageTool [jar]
[INFO] Irish module for LanguageTool [jar]
[INFO] All language modules for LanguageTool [jar]
[INFO] LanguageTool common GUI classes [jar]
[INFO] LanguageTool command-line version [jar]
[INFO] LanguageTool embedded HTTP server [jar]
[INFO] LanguageTool tools for building dictionaries [jar]
[INFO] LanguageTool stand-alone GUI [jar]
[INFO] LanguageTool Wikipedia tools [jar]
[INFO] LanguageTool HTTP API client [jar]
[INFO] LanguageTool development tools [jar]
[INFO]
[INFO] ----------------< org.languagetool:languagetool-parent >----------------
[INFO] Building LanguageTool 6.6-SNAPSHOT [1/46]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ languagetool-parent ---
[INFO]
[INFO] --- flatten:1.6.0:clean (flatten.clean) @ languagetool-parent ---
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ languagetool-parent ---
[INFO] Generating flattened POM of project org.languagetool:languagetool-parent:pom:6.6-SNAPSHOT...
[INFO]
[INFO] -----------------< org.languagetool:languagetool-core >-----------------
[INFO] Building LanguageTool Style and Grammar Checker Core 6.6-SNAPSHOT [2/46]
[INFO] from languagetool-core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ languagetool-core ---
[INFO]
[INFO] --- flatten:1.6.0:clean (flatten.clean) @ languagetool-core ---
[INFO]
[INFO] --- git-commit-id:5.0.1:revision (get-the-git-infos) @ languagetool-core ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ languagetool-core ---
[INFO] Copying 20 resources from src/main/resources to target/classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ languagetool-core ---
[INFO] Generating flattened POM of project org.languagetool:languagetool-core:jar:6.6-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.8.1:compile (default-compile) @ languagetool-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 336 source files to /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/target/classes
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/main/java/org/languagetool/JLanguageTool.java: Some input files use or override a deprecated API.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/main/java/org/languagetool/JLanguageTool.java: Recompile with -Xlint:deprecation for details.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/main/java/org/languagetool/tools/Tools.java: /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/main/java/org/languagetool/tools/Tools.java uses or overrides a deprecated API that is marked for removal.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/main/java/org/languagetool/tools/Tools.java: Recompile with -Xlint:removal for details.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/main/java/org/languagetool/Language.java: Some input files use unchecked or unsafe operations.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/main/java/org/languagetool/Language.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ languagetool-core ---
[INFO] Copying 51 resources from src/test/resources to target/test-classes
[INFO]
[INFO] --- compiler:3.8.1:testCompile (default-testCompile) @ languagetool-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 119 source files to /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/target/test-classes
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/test/java/org/languagetool/FailTest.java: Some input files use or override a deprecated API.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/test/java/org/languagetool/FailTest.java: Recompile with -Xlint:deprecation for details.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/test/java/org/languagetool/rules/patterns/PatternRuleLoaderPermissionTest.java: /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/test/java/org/languagetool/rules/patterns/PatternRuleLoaderPermissionTest.java uses or overrides a deprecated API that is marked for removal.
[INFO] /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-core/src/test/java/org/languagetool/rules/patterns/PatternRuleLoaderPermissionTest.java: Recompile with -Xlint:removal for details.
[INFO]
[INFO] --- surefire:3.0.0:test (default-test) @ languagetool-core ---
Downloading from central: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.0.0/maven-surefire-common-3.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for LanguageTool 6.6-SNAPSHOT:
[INFO]
[INFO] LanguageTool ....................................... SUCCESS [ 0.336 s]
[INFO] LanguageTool Style and Grammar Checker Core ........ FAILURE [ 23.006 s]
[INFO] English module for LanguageTool .................... SKIPPED
[INFO] Persian module for LanguageTool .................... SKIPPED
[INFO] Arabic module for LanguageTool ..................... SKIPPED
[INFO] French module for LanguageTool ..................... SKIPPED
[INFO] German module for LanguageTool ..................... SKIPPED
[INFO] Polish module for LanguageTool ..................... SKIPPED
[INFO] Catalan module for LanguageTool .................... SKIPPED
[INFO] Italian module for LanguageTool .................... SKIPPED
[INFO] Breton module for LanguageTool ..................... SKIPPED
[INFO] Dutch module for LanguageTool ...................... SKIPPED
[INFO] Portuguese module for LanguageTool ................. SKIPPED
[INFO] Russian module for LanguageTool .................... SKIPPED
[INFO] Asturian module for LanguageTool ................... SKIPPED
[INFO] Belarusian module for LanguageTool ................. SKIPPED
[INFO] Chinese module for LanguageTool .................... SKIPPED
[INFO] Danish module for LanguageTool ..................... SKIPPED
[INFO] Esperanto module for LanguageTool .................. SKIPPED
[INFO] Galician module for LanguageTool ................... SKIPPED
[INFO] Greek module for LanguageTool ...................... SKIPPED
[INFO] Icelandic module for LanguageTool .................. SKIPPED
[INFO] Japanese module for LanguageTool ................... SKIPPED
[INFO] Khmer module for LanguageTool ...................... SKIPPED
[INFO] Lithuanian module for LanguageTool ................. SKIPPED
[INFO] Malayalam module for LanguageTool .................. SKIPPED
[INFO] Romanian module for LanguageTool ................... SKIPPED
[INFO] Slovak module for LanguageTool ..................... SKIPPED
[INFO] Slovenian module for LanguageTool .................. SKIPPED
[INFO] Spanish module for LanguageTool .................... SKIPPED
[INFO] Swedish module for LanguageTool .................... SKIPPED
[INFO] Tamil module for LanguageTool ...................... SKIPPED
[INFO] Tagalog module for LanguageTool .................... SKIPPED
[INFO] Ukrainian module for LanguageTool .................. SKIPPED
[INFO] LanguageTool module for Crimean Tatar .............. SKIPPED
[INFO] Simple German module for LanguageTool .............. SKIPPED
[INFO] Irish module for LanguageTool ...................... SKIPPED
[INFO] All language modules for LanguageTool .............. SKIPPED
[INFO] LanguageTool common GUI classes .................... SKIPPED
[INFO] LanguageTool command-line version .................. SKIPPED
[INFO] LanguageTool embedded HTTP server .................. SKIPPED
[INFO] LanguageTool tools for building dictionaries ....... SKIPPED
[INFO] LanguageTool stand-alone GUI ....................... SKIPPED
[INFO] LanguageTool Wikipedia tools ....................... SKIPPED
[INFO] LanguageTool HTTP API client ....................... SKIPPED
[INFO] LanguageTool development tools ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.008 s
[INFO] Finished at: 2024-10-29T18:01:15Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on project languagetool-core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:3.0.0 or one of its dependencies could not be resolved:
[ERROR] Failed to read artifact descriptor for org.apache.maven.surefire:maven-surefire-common:jar:3.0.0
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :languagetool-core
That’s strange indeed. Which version of Maven do you use? For me, 3.9.6 works. Your issue might be Maven-specific and not specific to LT. For now, please use Java 17. We might switch to Java 21 soon.
Does it help if you clean parts of the local repo, i.e. ~/.m2/repository/org/apache/maven/surefire/maven-surefire-common/? Maybe that makes maven re-download the surefire plugin.
We are having some improvement here.
I managed to run ./build.sh en clean test
As of mvn clean test, it survived past some languages, then decided to fail Catalans like Puigdemont:
Skipping Catalan (Balearic) because there are no specific rules for that variant
...
[ERROR] Tests run: 38, Failures: 0, Errors: 10, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for LanguageTool 6.6-SNAPSHOT:
[INFO]
[INFO] LanguageTool ....................................... SUCCESS [ 0.320 s]
[INFO] LanguageTool Style and Grammar Checker Core ........ SUCCESS [ 28.408 s]
[INFO] English module for LanguageTool .................... SUCCESS [02:06 min]
[INFO] Persian module for LanguageTool .................... SUCCESS [ 8.252 s]
[INFO] Arabic module for LanguageTool ..................... SUCCESS [ 24.845 s]
[INFO] French module for LanguageTool ..................... SUCCESS [07:42 min]
[INFO] German module for LanguageTool ..................... SUCCESS [04:21 min]
[INFO] Polish module for LanguageTool ..................... SUCCESS [ 35.103 s]
[INFO] Catalan module for LanguageTool .................... FAILURE [01:12 min]
[INFO] Italian module for LanguageTool .................... SKIPPED
[INFO] Breton module for LanguageTool ..................... SKIPPED
[INFO] Dutch module for LanguageTool ...................... SKIPPED
[INFO] Portuguese module for LanguageTool ................. SKIPPED
[INFO] Russian module for LanguageTool .................... SKIPPED
[INFO] Asturian module for LanguageTool ................... SKIPPED
[INFO] Belarusian module for LanguageTool ................. SKIPPED
[INFO] Chinese module for LanguageTool .................... SKIPPED
[INFO] Danish module for LanguageTool ..................... SKIPPED
[INFO] Esperanto module for LanguageTool .................. SKIPPED
[INFO] Galician module for LanguageTool ................... SKIPPED
[INFO] Greek module for LanguageTool ...................... SKIPPED
[INFO] Icelandic module for LanguageTool .................. SKIPPED
[INFO] Japanese module for LanguageTool ................... SKIPPED
[INFO] Khmer module for LanguageTool ...................... SKIPPED
[INFO] Lithuanian module for LanguageTool ................. SKIPPED
[INFO] Malayalam module for LanguageTool .................. SKIPPED
[INFO] Romanian module for LanguageTool ................... SKIPPED
[INFO] Slovak module for LanguageTool ..................... SKIPPED
[INFO] Slovenian module for LanguageTool .................. SKIPPED
[INFO] Spanish module for LanguageTool .................... SKIPPED
[INFO] Swedish module for LanguageTool .................... SKIPPED
[INFO] Tamil module for LanguageTool ...................... SKIPPED
[INFO] Tagalog module for LanguageTool .................... SKIPPED
[INFO] Ukrainian module for LanguageTool .................. SKIPPED
[INFO] LanguageTool module for Crimean Tatar .............. SKIPPED
[INFO] Simple German module for LanguageTool .............. SKIPPED
[INFO] Irish module for LanguageTool ...................... SKIPPED
[INFO] All language modules for LanguageTool .............. SKIPPED
[INFO] LanguageTool common GUI classes .................... SKIPPED
[INFO] LanguageTool command-line version .................. SKIPPED
[INFO] LanguageTool embedded HTTP server .................. SKIPPED
[INFO] LanguageTool tools for building dictionaries ....... SKIPPED
[INFO] LanguageTool stand-alone GUI ....................... SKIPPED
[INFO] LanguageTool Wikipedia tools ....................... SKIPPED
[INFO] LanguageTool HTTP API client ....................... SKIPPED
[INFO] LanguageTool development tools ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16:59 min
[INFO] Finished at: 2024-10-29T23:07:45Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on project language-ca:
[ERROR]
[ERROR] Please refer to /Users/alan/Repos/LT/languagetool 17.33.17/languagetool-language-modules/ca/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :language-ca
As of mvn install, it went a bit better, here is where the log started to show errors:
[WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) [Guice/ErrorInjectingConstructor]: ExceptionInInitializerError
at JarArchiver.<init>(JarArchiver.java:152)
while locating JarArchiver
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
1 error
======================
Full classname legend:
======================
JarArchiver: "org.codehaus.plexus.archiver.jar.JarArchiver"
========================
End of classname legend:
========================
...
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for LanguageTool 6.6-SNAPSHOT:
[INFO]
[INFO] LanguageTool ....................................... SUCCESS [ 0.380 s]
[INFO] LanguageTool Style and Grammar Checker Core ........ FAILURE [ 14.711 s]
[INFO] English module for LanguageTool .................... SKIPPED
[INFO] Persian module for LanguageTool .................... SKIPPED
[INFO] Arabic module for LanguageTool ..................... SKIPPED
[INFO] French module for LanguageTool ..................... SKIPPED
[INFO] German module for LanguageTool ..................... SKIPPED
[INFO] Polish module for LanguageTool ..................... SKIPPED
[INFO] Catalan module for LanguageTool .................... SKIPPED
[INFO] Italian module for LanguageTool .................... SKIPPED
[INFO] Breton module for LanguageTool ..................... SKIPPED
[INFO] Dutch module for LanguageTool ...................... SKIPPED
[INFO] Portuguese module for LanguageTool ................. SKIPPED
[INFO] Russian module for LanguageTool .................... SKIPPED
[INFO] Asturian module for LanguageTool ................... SKIPPED
[INFO] Belarusian module for LanguageTool ................. SKIPPED
[INFO] Chinese module for LanguageTool .................... SKIPPED
[INFO] Danish module for LanguageTool ..................... SKIPPED
[INFO] Esperanto module for LanguageTool .................. SKIPPED
[INFO] Galician module for LanguageTool ................... SKIPPED
[INFO] Greek module for LanguageTool ...................... SKIPPED
[INFO] Icelandic module for LanguageTool .................. SKIPPED
[INFO] Japanese module for LanguageTool ................... SKIPPED
[INFO] Khmer module for LanguageTool ...................... SKIPPED
[INFO] Lithuanian module for LanguageTool ................. SKIPPED
[INFO] Malayalam module for LanguageTool .................. SKIPPED
[INFO] Romanian module for LanguageTool ................... SKIPPED
[INFO] Slovak module for LanguageTool ..................... SKIPPED
[INFO] Slovenian module for LanguageTool .................. SKIPPED
[INFO] Spanish module for LanguageTool .................... SKIPPED
[INFO] Swedish module for LanguageTool .................... SKIPPED
[INFO] Tamil module for LanguageTool ...................... SKIPPED
[INFO] Tagalog module for LanguageTool .................... SKIPPED
[INFO] Ukrainian module for LanguageTool .................. SKIPPED
[INFO] LanguageTool module for Crimean Tatar .............. SKIPPED
[INFO] Simple German module for LanguageTool .............. SKIPPED
[INFO] Irish module for LanguageTool ...................... SKIPPED
[INFO] All language modules for LanguageTool .............. SKIPPED
[INFO] LanguageTool common GUI classes .................... SKIPPED
[INFO] LanguageTool command-line version .................. SKIPPED
[INFO] LanguageTool embedded HTTP server .................. SKIPPED
[INFO] LanguageTool tools for building dictionaries ....... SKIPPED
[INFO] LanguageTool stand-alone GUI ....................... SKIPPED
[INFO] LanguageTool Wikipedia tools ....................... SKIPPED
[INFO] LanguageTool HTTP API client ....................... SKIPPED
[INFO] LanguageTool development tools ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.881 s
[INFO] Finished at: 2024-10-29T23:11:21Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar (default-jar) on project languagetool-core: Execution default-jar of goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar failed: Unable to load the mojo 'jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin:2.6' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-jar-plugin:2.6
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/alan/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.6/maven-jar-plugin-2.6.jar
[ERROR] urls[1] = file:/Users/alan/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
[ERROR] urls[2] = file:/Users/alan/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
[ERROR] urls[3] = file:/Users/alan/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
[ERROR] urls[4] = file:/Users/alan/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
[ERROR] urls[5] = file:/Users/alan/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
[ERROR] urls[6] = file:/Users/alan/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[7] = file:/Users/alan/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
[ERROR] urls[8] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[9] = file:/Users/alan/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/Users/alan/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[11] = file:/Users/alan/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[12] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[13] = file:/Users/alan/.m2/repository/org/apache/maven/maven-archiver/2.6/maven-archiver-2.6.jar
[ERROR] urls[14] = file:/Users/alan/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.7/maven-shared-utils-0.7.jar
[ERROR] urls[15] = file:/Users/alan/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
[ERROR] urls[16] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
[ERROR] urls[17] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-archiver/2.9/plexus-archiver-2.9.jar
[ERROR] urls[18] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-io/2.4/plexus-io-2.4.jar
[ERROR] urls[19] = file:/Users/alan/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
[ERROR] urls[20] = file:/Users/alan/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>org.languagetool:languagetool-core:6.6-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : ExceptionInInitializerError: Index 1 out of bounds for length 1
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :languagetool-core
When you see Catalan module for LanguageTool .................... FAILURE at the bottom, the actual error with the detailed message will be somewhere in the output above, so you’d need to find that first.
I had to truncate the logs because my message was too long. Here is a fuller history of what went wrong with Catalan, I still had to truncate it, I deleted a lot of lines mentioning junit (org.junit.runners.ParentRunner) :
[INFO] Running org.languagetool.rules.ca.CatalanTest
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.221 s <<< FAILURE! - in org.languagetool.rules.ca.CatalanTest
[ERROR] org.languagetool.rules.ca.CatalanTest.testLanguage Time elapsed: 1.711 s <<< ERROR!
java.lang.NoClassDefFoundError: org/languagetool/rules/WordListValidatorTest
at org.languagetool.LanguageSpecificTest.runTests(LanguageSpecificTest.java:51)
at org.languagetool.rules.ca.CatalanTest.testLanguage(CatalanTest.java:44)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.lang.ClassNotFoundException: org.languagetool.rules.WordListValidatorTest
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 30 more
[ERROR] org.languagetool.rules.ca.CatalanTest.testRepeatedPatternRules Time elapsed: 0.509 s <<< ERROR!
java.lang.RuntimeException: Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tokenizers.SrxTools.createSrxDocument(SrxTools.java:47)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:53)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:44)
at org.languagetool.language.Catalan.createDefaultSentenceTokenizer(Catalan.java:131)
at org.languagetool.Language.getSentenceTokenizer(Language.java:471)
at org.languagetool.JLanguageTool.sentenceTokenize(JLanguageTool.java:778)
at org.languagetool.JLanguageTool.getSentences(JLanguageTool.java:933)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:909)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:896)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:886)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:801)
at org.languagetool.rules.ca.CatalanTest.testRepeatedPatternRules(CatalanTest.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
...
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)...
[INFO] Running org.languagetool.rules.ca.ReplaceOperationNamesRuleTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.282 s <<< FAILURE! - in org.languagetool.rules.ca.ReplaceOperationNamesRuleTest
[ERROR] org.languagetool.rules.ca.ReplaceOperationNamesRuleTest.testRule Time elapsed: 0.281 s <<< ERROR!
java.lang.RuntimeException: Problems with loading global disambiguation file: disambiguation-global.xml
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:68)
at org.languagetool.tagging.disambiguation.ca.CatalanHybridDisambiguator.<init>(CatalanHybridDisambiguator.java:55)
at org.languagetool.language.Catalan.createDefaultDisambiguator(Catalan.java:136)
at org.languagetool.Language.getDisambiguator(Language.java:417)
at org.languagetool.JLanguageTool.getAnalyzedSentence(JLanguageTool.java:1653)
at org.languagetool.rules.ca.ReplaceOperationNamesRuleTest.assertCorrect(ReplaceOperationNamesRuleTest.java:104)
at org.languagetool.rules.ca.ReplaceOperationNamesRuleTest.testRule(ReplaceOperationNamesRuleTest.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
...
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.lang.RuntimeException: Path disambiguation-global.xml not found in class path at /org/languagetool/resource/disambiguation-global.xml
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.loadPatternRules(XmlRuleDisambiguator.java:100)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:66)
... 35 more
[INFO] Running org.languagetool.rules.ca.SimpleReplaceVerbsRuleTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.443 s <<< FAILURE! - in org.languagetool.rules.ca.SimpleReplaceVerbsRuleTest
[ERROR] org.languagetool.rules.ca.SimpleReplaceVerbsRuleTest.testRule Time elapsed: 0.441 s <<< ERROR!
java.lang.RuntimeException: Problems with loading global disambiguation file: disambiguation-global.xml
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:68)
at org.languagetool.tagging.disambiguation.ca.CatalanHybridDisambiguator.<init>(CatalanHybridDisambiguator.java:55)
at org.languagetool.language.Catalan.createDefaultDisambiguator(Catalan.java:136)
at org.languagetool.Language.getDisambiguator(Language.java:417)
at org.languagetool.JLanguageTool.getAnalyzedSentence(JLanguageTool.java:1653)
at org.languagetool.rules.ca.SimpleReplaceVerbsRuleTest.testRule(SimpleReplaceVerbsRuleTest.java:53)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
...
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.lang.RuntimeException: Path disambiguation-global.xml not found in class path at /org/languagetool/resource/disambiguation-global.xml
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.loadPatternRules(XmlRuleDisambiguator.java:100)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:66)
... 34 more
[INFO] Running org.languagetool.rules.ca.LanguageSpecificSpellcheckerTest
Testing Catalan: 16 words from prohibit.txt and 0 words from spelling.txt
Testing Catalan (Valencian): 16 words from prohibit.txt and 0 words from spelling.txt
Testing Catalan (Balearic): 16 words from prohibit.txt and 0 words from spelling.txt
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 s - in org.languagetool.rules.ca.LanguageSpecificSpellcheckerTest
[INFO] Running org.languagetool.rules.ca.CheckCaseRuleTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.666 s <<< FAILURE! - in org.languagetool.rules.ca.CheckCaseRuleTest
[ERROR] org.languagetool.rules.ca.CheckCaseRuleTest.testRule Time elapsed: 0.666 s <<< ERROR!
java.lang.RuntimeException: Problems with loading global disambiguation file: disambiguation-global.xml
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:68)
at org.languagetool.tagging.disambiguation.ca.CatalanHybridDisambiguator.<init>(CatalanHybridDisambiguator.java:55)
at org.languagetool.language.Catalan.createDefaultDisambiguator(Catalan.java:136)
at org.languagetool.Language.getDisambiguator(Language.java:417)
at org.languagetool.JLanguageTool.getAnalyzedSentence(JLanguageTool.java:1653)
at org.languagetool.rules.ca.CheckCaseRuleTest.testRule(CheckCaseRuleTest.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
...
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at
Caused by: java.lang.RuntimeException: Path disambiguation-global.xml not found in class path at /org/languagetool/resource/disambiguation-global.xml
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.loadPatternRules(XmlRuleDisambiguator.java:100)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:66)
... 34 more
[INFO] Running org.languagetool.JLanguageToolTest
[ERROR] Tests run: 9, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 6.908 s <<< FAILURE! - in org.languagetool.JLanguageToolTest
[ERROR] org.languagetool.JLanguageToolTest.testValencianVariant Time elapsed: 0.896 s <<< ERROR!
java.lang.RuntimeException: Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tokenizers.SrxTools.createSrxDocument(SrxTools.java:47)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:53)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:44)
at org.languagetool.language.Catalan.createDefaultSentenceTokenizer(Catalan.java:131)
at org.languagetool.Language.getSentenceTokenizer(Language.java:471)
at org.languagetool.JLanguageTool.sentenceTokenize(JLanguageTool.java:778)
at org.languagetool.JLanguageTool.getSentences(JLanguageTool.java:933)
at org.languagetool.JLanguageToolTest.testValencianVariant(JLanguageToolTest.java:68)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
...
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
[ERROR] org.languagetool.JLanguageToolTest.testReplaceAnglicisms Time elapsed: 0.538 s <<< ERROR!
java.lang.RuntimeException: Problems with loading global disambiguation file: disambiguation-global.xml
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:68)
at org.languagetool.tagging.disambiguation.ca.CatalanHybridDisambiguator.<init>(CatalanHybridDisambiguator.java:55)
at org.languagetool.language.Catalan.createDefaultDisambiguator(Catalan.java:136)
at org.languagetool.Language.getDisambiguator(Language.java:417)
at org.languagetool.JLanguageTool.getAnalyzedSentence(JLanguageTool.java:1653)
at org.languagetool.JLanguageToolTest.testReplaceAnglicisms(JLanguageToolTest.java:256)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
...
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.lang.RuntimeException: Path disambiguation-global.xml not found in class path at /org/languagetool/resource/disambiguation-global.xml
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.loadPatternRules(XmlRuleDisambiguator.java:100)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:66)
... 33 more
[ERROR] org.languagetool.JLanguageToolTest.testAdaptSuggestions Time elapsed: 0.413 s <<< ERROR!
java.lang.RuntimeException: Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tokenizers.SrxTools.createSrxDocument(SrxTools.java:47)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:53)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:44)
at org.languagetool.language.Catalan.createDefaultSentenceTokenizer(Catalan.java:131)
at org.languagetool.Language.getSentenceTokenizer(Language.java:471)
at org.languagetool.JLanguageTool.sentenceTokenize(JLanguageTool.java:778)
at org.languagetool.JLanguageTool.getSentences(JLanguageTool.java:933)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:909)
...
at org.languagetool.JLanguageTool.check(JLanguageTool.java:789)
at org.languagetool.JLanguageToolTest.testAdaptSuggestions(JLanguageToolTest.java:154)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
...
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
[ERROR] org.languagetool.JLanguageToolTest.testCleanOverlappingErrors Time elapsed: 0.405 s <<< ERROR!
java.lang.RuntimeException: Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tokenizers.SrxTools.createSrxDocument(SrxTools.java:47)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:53)
at org.languagetool.tokenizers.SRXSentenceTokenizer.<init>(SRXSentenceTokenizer.java:44)
at org.languagetool.language.Catalan.createDefaultSentenceTokenizer(Catalan.java:131)
at org.languagetool.Language.getSentenceTokenizer(Language.java:471)
at org.languagetool.JLanguageTool.sentenceTokenize(JLanguageTool.java:778)
at org.languagetool.JLanguageTool.getSentences(JLanguageTool.java:933)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:909)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:896)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:886)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:868)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:860)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:817)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:789)
at org.languagetool.JLanguageToolTest.testCleanOverlappingErrors(JLanguageToolTest.java:45)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
...
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
[ERROR] org.languagetool.JLanguageToolTest.testReplaceMultiwords Time elapsed: 0.482 s <<< ERROR!
java.lang.RuntimeException: Problems with loading global disambiguation file: disambiguation-global.xml
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:68)
at org.languagetool.tagging.disambiguation.ca.CatalanHybridDisambiguator.<init>(CatalanHybridDisambiguator.java:55)
at org.languagetool.language.Catalan.createDefaultDisambiguator(Catalan.java:136)
at org.languagetool.Language.getDisambiguator(Language.java:417)
at org.languagetool.JLanguageTool.getAnalyzedSentence(JLanguageTool.java:1653)
at org.languagetool.JLanguageToolTest.testReplaceMultiwords(JLanguageToolTest.java:242)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.lang.RuntimeException: Path disambiguation-global.xml not found in class path at /org/languagetool/resource/disambiguation-global.xml
at org.languagetool.broker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:277)
at org.languagetool.broker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:135)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.loadPatternRules(XmlRuleDisambiguator.java:100)
at org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator.<init>(XmlRuleDisambiguator.java:66)
... 33 more
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] JLanguageToolTest.testAdaptSuggestions:154 » Runtime Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
[ERROR] JLanguageToolTest.testCleanOverlappingErrors:45 » Runtime Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
[ERROR] JLanguageToolTest.testReplaceAnglicisms:256 » Runtime Problems with loading global disambiguation file: disambiguation-global.xml
[ERROR] JLanguageToolTest.testReplaceMultiwords:242 » Runtime Problems with loading global disambiguation file: disambiguation-global.xml
[ERROR] JLanguageToolTest.testValencianVariant:68 » Runtime Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
[ERROR] CatalanTest.testLanguage:44->LanguageSpecificTest.runTests:51 » NoClassDefFound org/languagetool/rules/WordListValidatorTest
[ERROR] CatalanTest.testRepeatedPatternRules:51 » Runtime Path /segment.srx not found in class path at /org/languagetool/resource/segment.srx
[ERROR] CheckCaseRuleTest.testRule:46 » Runtime Problems with loading global disambiguation file: disambiguation-global.xml
[ERROR] ReplaceOperationNamesRuleTest.testRule:51->assertCorrect:104 » Runtime Problems with loading global disambiguation file: disambiguation-global.xml
[ERROR] SimpleReplaceVerbsRuleTest.testRule:53 » Runtime Problems with loading global disambiguation file: disambiguation-global.xml
[INFO]
[ERROR] Tests run: 38, Failures: 0, Errors: 10, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for LanguageTool 6.6-SNAPSHOT:
I tried and it failed the same way. Then I deleted the ~/.m2/repository directory and tried to do mvn clean install to download everything over again.
~/Repos/LT/languagetool master ❯ sudo rm -rf ~/.m2/repository/*
~/Repos/LT/languagetool master ❯ mvn clean install
[INFO] Scanning for projects...
... a bunch of downloads
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: osx
[INFO] os.detected.arch: x86_64
[INFO] os.detected.bitness: 64
[INFO] os.detected.version: 14.5
[INFO] os.detected.version.major: 14
[INFO] os.detected.version.minor: 5
[INFO] os.detected.classifier: osx-x86_64
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Listing the language modules
[INFO]
[INFO] ----------------< org.languagetool:languagetool-parent >----------------
[INFO] Building LanguageTool 6.6-SNAPSHOT [1/46]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
... a lot more of downloads
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
... a lot of tests
=> First exeptions here
[INFO] Running org.languagetool.rules.RemoteRuleTest
WARN o.l.rules.RemoteRuleMetrics Failed to fetch result from remote rule 'TEST_REMOTE_RULE' - error while executing rule.
java.util.concurrent.ExecutionException: java.lang.RuntimeException: Failing for testing purposes
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)
at org.languagetool.JLanguageTool.fetchResults(JLanguageTool.java:1225)
at org.languagetool.JLanguageTool.lambda$fetchRemoteRuleResults$10(JLanguageTool.java:1187)
at io.github.resilience4j.circuitbreaker.CircuitBreaker.lambda$decorateCallable$3(CircuitBreaker.java:171)
at io.github.resilience4j.circuitbreaker.CircuitBreaker.executeCallable(CircuitBreaker.java:769)
at org.languagetool.rules.RemoteRuleMetrics.inCircuitBreaker(RemoteRuleMetrics.java:101)
at org.languagetool.JLanguageTool.fetchRemoteRuleResults(JLanguageTool.java:1186)
at org.languagetool.JLanguageTool.lambda$checkInternal$2(JLanguageTool.java:1015)
at org.languagetool.tools.TelemetryProvider.createSpan(TelemetryProvider.java:76)
at org.languagetool.JLanguageTool.checkInternal(JLanguageTool.java:1013)
at org.languagetool.JLanguageTool.checkInternal(JLanguageTool.java:968)
at org.languagetool.rules.RemoteRuleTest.assertMatches(RemoteRuleTest.java:137)
at org.languagetool.rules.RemoteRuleTest.testFailedRequests(RemoteRuleTest.java:175)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.lang.RuntimeException: Failing for testing purposes
at org.languagetool.rules.RemoteRuleTest$TestRemoteRule.lambda$executeRequest$0(RemoteRuleTest.java:95)
at org.languagetool.rules.RemoteRule.lambda$run$2(RemoteRule.java:192)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
... More tests
... More downloading
Something interesting happening here:
[WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) [Guice/ErrorInjectingConstructor]: ExceptionInInitializerError
at JarArchiver.<init>(JarArchiver.java:152)
while locating JarArchiver
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
1 error
======================
Full classname legend:
======================
JarArchiver: "org.codehaus.plexus.archiver.jar.JarArchiver"
========================
End of classname legend:
========================
at com.google.inject.internal.InternalProvisionException.toProvisionException (InternalProvisionException.java:251)
at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1104)
at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1139)
at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:50)
at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:67)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:109)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:124)
at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66)
at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:62)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47)
at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1101)
at org.eclipse.sisu.inject.Guice4$2.get (Guice4.java:235)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:83)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:53)
at org.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get
... more lines metioning google and maven modules
... then this bit apears twice:
[WARNING] Error injecting: org.apache.maven.plugin.jar.JarMojo
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) [Guice/ErrorInjectingConstructor]: ExceptionInInitializerError
at JarArchiver.<init>(JarArchiver.java:152)
while locating JarArchiver
at ClassRealm[plugin>org.apache.maven.plugins:maven-jar-plugin:2.6, parent: ClassLoaders$AppClassLoader@42110406]
\_ installed by: WireModule -> PlexusBindingModule
while locating Archiver annotated with @Named("jar")
while locating JarMojo
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
1 error
======================
Full classname legend:
======================
Archiver: "org.codehaus.plexus.archiver.Archiver"
ClassLoaders$AppClassLoader: "jdk.internal.loader.ClassLoaders$AppClassLoader"
JarArchiver: "org.codehaus.plexus.archiver.jar.JarArchiver"
JarMojo: "org.apache.maven.plugin.jar.JarMojo"
Named: "com.google.inject.name.Named"
PlexusBindingModule: "org.eclipse.sisu.plexus.PlexusBindingModule"
WireModule: "org.eclipse.sisu.wire.WireModule"
========================
End of classname legend:
========================
at com.google.inject.internal.InternalProvisionException.toProvisionException (InternalProvisionException.java:251)
at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1104)
at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1139)
at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:50)
at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
...
Caused by: java.lang.ExceptionInInitializerError
at org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$240186402.GUICE$TRAMPOLINE (<generated>)
at org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$240186402.apply (<generated>)
...
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit> (AbstractZipArchiver.java:116)
at org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$240186402.GUICE$TRAMPOLINE (<generated>)
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for LanguageTool 6.6-SNAPSHOT:
[INFO]
[INFO] LanguageTool ....................................... SUCCESS [ 5.515 s]
[INFO] LanguageTool Style and Grammar Checker Core ........ FAILURE [01:56 min]
[INFO] English module for LanguageTool .................... SKIPPED
[INFO] Persian module for LanguageTool .................... SKIPPED
[INFO] Arabic module for LanguageTool ..................... SKIPPED
[INFO] French module for LanguageTool ..................... SKIPPED
[INFO] German module for LanguageTool ..................... SKIPPED
[INFO] Polish module for LanguageTool ..................... SKIPPED
[INFO] Catalan module for LanguageTool .................... SKIPPED
[INFO] Italian module for LanguageTool .................... SKIPPED
[INFO] Breton module for LanguageTool ..................... SKIPPED
[INFO] Dutch module for LanguageTool ...................... SKIPPED
[INFO] Portuguese module for LanguageTool ................. SKIPPED
[INFO] Russian module for LanguageTool .................... SKIPPED
[INFO] Asturian module for LanguageTool ................... SKIPPED
[INFO] Belarusian module for LanguageTool ................. SKIPPED
[INFO] Chinese module for LanguageTool .................... SKIPPED
[INFO] Danish module for LanguageTool ..................... SKIPPED
[INFO] Esperanto module for LanguageTool .................. SKIPPED
[INFO] Galician module for LanguageTool ................... SKIPPED
[INFO] Greek module for LanguageTool ...................... SKIPPED
[INFO] Icelandic module for LanguageTool .................. SKIPPED
[INFO] Japanese module for LanguageTool ................... SKIPPED
[INFO] Khmer module for LanguageTool ...................... SKIPPED
[INFO] Lithuanian module for LanguageTool ................. SKIPPED
[INFO] Malayalam module for LanguageTool .................. SKIPPED
[INFO] Romanian module for LanguageTool ................... SKIPPED
[INFO] Slovak module for LanguageTool ..................... SKIPPED
[INFO] Slovenian module for LanguageTool .................. SKIPPED
[INFO] Spanish module for LanguageTool .................... SKIPPED
[INFO] Swedish module for LanguageTool .................... SKIPPED
[INFO] Tamil module for LanguageTool ...................... SKIPPED
[INFO] Tagalog module for LanguageTool .................... SKIPPED
[INFO] Ukrainian module for LanguageTool .................. SKIPPED
[INFO] LanguageTool module for Crimean Tatar .............. SKIPPED
[INFO] Simple German module for LanguageTool .............. SKIPPED
[INFO] Irish module for LanguageTool ...................... SKIPPED
[INFO] All language modules for LanguageTool .............. SKIPPED
[INFO] LanguageTool common GUI classes .................... SKIPPED
[INFO] LanguageTool command-line version .................. SKIPPED
[INFO] LanguageTool embedded HTTP server .................. SKIPPED
[INFO] LanguageTool tools for building dictionaries ....... SKIPPED
[INFO] LanguageTool stand-alone GUI ....................... SKIPPED
[INFO] LanguageTool Wikipedia tools ....................... SKIPPED
[INFO] LanguageTool HTTP API client ....................... SKIPPED
[INFO] LanguageTool development tools ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:20 min
[INFO] Finished at: 2024-10-30T11:13:07Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar (default-jar) on project languagetool-core: Execution default-jar of goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar failed: Unable to load the mojo 'jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin:2.6' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-jar-plugin:2.6
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/alan/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.6/maven-jar-plugin-2.6.jar
[ERROR] urls[1] = file:/Users/alan/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
[ERROR] urls[2] = file:/Users/alan/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
[ERROR] urls[3] = file:/Users/alan/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
[ERROR] urls[4] = file:/Users/alan/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
[ERROR] urls[5] = file:/Users/alan/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
[ERROR] urls[6] = file:/Users/alan/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[7] = file:/Users/alan/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
[ERROR] urls[8] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[9] = file:/Users/alan/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/Users/alan/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[11] = file:/Users/alan/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[12] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[13] = file:/Users/alan/.m2/repository/org/apache/maven/maven-archiver/2.6/maven-archiver-2.6.jar
[ERROR] urls[14] = file:/Users/alan/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.7/maven-shared-utils-0.7.jar
[ERROR] urls[15] = file:/Users/alan/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
[ERROR] urls[16] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
[ERROR] urls[17] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-archiver/2.9/plexus-archiver-2.9.jar
[ERROR] urls[18] = file:/Users/alan/.m2/repository/org/codehaus/plexus/plexus-io/2.4/plexus-io-2.4.jar
[ERROR] urls[19] = file:/Users/alan/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
[ERROR] urls[20] = file:/Users/alan/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>org.languagetool:languagetool-core:6.6-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : ExceptionInInitializerError: Index 1 out of bounds for length 1
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :languagetool-core
So, it starts failing with this line: com.google.inject.ProvisionException: Unable to provision, see the following errors:
I tried showing the com.google.inject.ProvisionException: Unable to provision, see the following errors: bit to LLM arena, and one of the option I had was to update the version of maven-jar-plugin. I updated to the latest version this line in the pom.xml (languagetool-parent) file, line 120: <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
All the tests passed.
The same LLM answer told me to add the following dependency to the pom.xml file, which I did before running the test:
Thank you for informing me, I will keep working on my fork with the newer version of the maven jar plugin. What matters is to go forward, the modules’ discrepancies can be easily solved later I think.
Speaking of going forward, what should be my priority now, add a dictionary, write some test?