git pull origin qa_enhancments
Yes, I have that code (in TermCheckRule.java, not TermCheck.java).
And I got your latest changes.
Still passing when run from eclipse, but failing from the maven command-line (I do a full rebuild)
Could someone else on Windows try the Maven build for that branch?
The problem has to be either specific to Windows or to my machine’s configuration.
Thanks,
-yves
The code is the same as in your email, so it has to be the return of srcRule.match(sourceSentence) that is incorrect.
I’ll try different ways to build, it has to be a build problem, not a code issue, since it works in eclipse.
-ys
Will do. Thanks!
From: okapi...@googlegroups.com [mailto:okapi...@googlegroups.com] On Behalf Of Jim Hargrave
Sent: Wednesday, April 6, 2016 3:41 PM
To: okapi...@googlegroups.com
Subject: Re: [okapi-devel] qa_enhancements branch ready to merge to dev...
Yves I just created the branch "dev_java_8" which upgrades to the LT 3.3. This branch can only be built and run with Java 8.
--
No better luck with dev_java_8.
Same errors: no access to the LT resources, so the default EN resources are loaded and the tests fail with them.
The package that fails is the step. The library package complies fine and produces a JAR with the LT resources for all the languages (okapi-lib-languagetool-0.30-SNAPSHOT.jar).
There is something different in the generated JARs for that package compared to the other libraries packages: It also have an original-okapi-lib-languagetool-0.30-SNAPSHOT.jar in addition to the normal and test JARs. And there is a dependency-reduced-pom.xml. Those are related to the shade plugin: so we do get the LT resource in the library’s JAR, I don’t see why the runtime parts of LT would be accessible while the resources would not.
Tomorrow I should be able to try on a new Windows 7 setup to see if there is any difference, but IMHO it seems that none of that has anything to do with Windows or Linux: We’ve got to have some kind of difference in the maven settings.
Cheers,
-ys
From: okapi...@googlegroups.com [mailto:okapi...@googlegroups.com] On Behalf Of Jim Hargrave
Sent: Wednesday, April 6, 2016 3:41 PM
To: okapi...@googlegroups.com
Subject: Re: [okapi-devel] qa_enhancements branch ready to merge to dev...
Yves I just created the branch "dev_java_8" which upgrades to the LT 3.3. This branch can only be built and run with Java 8.
--
Hi Jim, all,
Some progress: I am able to pass the language-dependent tests only if I add the dependency to ‘language-all’ (or the three specific languages) in the POM of okapi-step-languagetools.
It seems having the inherited dependency to the language resources in the library is not working when running the command line.
If we can figure out exactly at what version the failures start then we can put it in superpom/pom.xml as minimum requirement.
The one listed now is 3.0.5
Mihai
--
I don't think we should ask for the latest either.
Maybe some projects out there can't really update maven easily. They might use a "good enough version", no need to" break" them
I will try to detect what the minimal version is over the weekend.
Mihai
I did some more digging to see what is the minimal version that works.
So I've downloaded and tried older maven versions (from https://archive.apache.org/dist/maven/maven-3/)
3.2.5 fails, 3.3.1 succeeds. It looks like there is nothing in between.
Then I spent some time trying to figure out the root cause.
Not that easy this time :-)
But I'm still digging, looks like an interesting challenge :-)
Anyway, for now I think that asking for maven 3.3.1 as minimal version in the superpom will do. I think it is friendlier to other okapi users to not force them to update maven if not really needed.
Mihai
Thanks Mihai - I'll make the change in the pom.
Should we leave the jenkins maven version at the latest?
Jim
--
On Ubuntu
* mvn clean
* I delete the .m2 repository
* mvn install (the full build) succeeds
* I go in okapi/steps/languagetools, run mvn install and it fails
Mihai
--
Don't try creating default, try Japanese (or German, or French). They will fallback to default.
Mihai
My tests do use japanese. And when I use the okapi sdk framework jar (also a fat jar) everything seems to work even with the same manifest having only the English variants.
That's why I'm still baffled.
Jim
Don't try creating default, try Japanese (or German, or French). They will fallback to default.
Mihai
--
Yes, it is weird.
The steps I've described don't gain on dev.
Mihai
s/don't gain on dev/don't fail on dev/
I've merged my fix into main
To test it I have changed the superpom back to require maven 3.0.5, and did a full build with it.
Clean .m2 repository, Windows 7 x64, jdk 8 x64
(same configuration that was failed for me a day or two ago)
But I did not submit the superpom.
I can do it if you think it is a good idea (or anyone can do it :-)
Cheers,
Mihai