Open tischi opened 3 years ago
@tischi wrote:
I also had them issue with some other repositories and it could be that this is specific to something on my computer and I was not able to fix that yet.
Yes, it looks like that's your local issue, as the tests pass on CI. Did you try to run mvn clean install
from the command line? (Never trust any IDE to run your Maven build completely clean! 😉)
Does that mean that the repo is now available in scijava maven even though the tests failed locally?
It also happens with mvn clean install
:
[ERROR] test0(test.TestFlyEmbryoRegistration) Time elapsed: 1.616 s <<< ERROR!
java.lang.IllegalArgumentException: Invalid service: net.imagej.legacy.LegacyService
at test.TestFlyEmbryoRegistration.runRegistrationTest(TestFlyEmbryoRegistration.java:64)
at test.TestFlyEmbryoRegistration.test0(TestFlyEmbryoRegistration.java:52)
Caused by: java.lang.ExceptionInInitializerError
at test.TestFlyEmbryoRegistration.runRegistrationTest(TestFlyEmbryoRegistration.java:64)
at test.TestFlyEmbryoRegistration.test0(TestFlyEmbryoRegistration.java:52)
Caused by: java.lang.RuntimeException: Found incompatibl
Any ideas?
Does that mean that the repo is now available in scijava maven even though the tests failed locally?
Please check for yourself: https://maven.scijava.org/#nexus-search;quick~fly-reg
You won't be able to run release-version.sh
before fixing your local issues though...
Any ideas?
Not currently. There have been a few mentions of Invalid service: net.imagej.legacy.LegacyService
in various contexts (on the forum and elsewhere), but I think those were different issues. Please try deleting your maven directory (~/.m2/
) and running maven again, I suppose you might have a system with a lot of locally installed Maven artifacts, and if you messed up with the uniqueness of release versions (or have a SNAPSHOT
dependency), this might screw up the build...
Please check for yourself: https://maven.scijava.org/#nexus-search;quick~fly-reg
Ok, it only uploaded the SNAPSHOT version, probably because of the failed tests...
Please try deleting your maven directory (~/.m2/) and running maven again
I deleted .m2 but it did not solve the issue. Any other ideas?
it only uploaded the SNAPSHOT version, probably because of the failed tests...
no, it uploaded SNAPSHOT because that's what your master
branch has (and should have). There are no failed tests on the CI build.
The release-version.sh
script would create a new tag that's deployed as RELEASE version, but as the script will also run a local mvn build first, you'll have to make sure mvn doesn't fail on your local system.
Sorry, no other ideas at the moment, please ask on the forum.
Solved for now by commenting out the @Test
annotations and running the tests manually.
Solved for now by commenting out the
@Test
annotations
You can also add an @Ignore
annotation in that case.
@imagejan
Thanks a lot for the travisification!
After updating the parent pom (not sure I changed anything else that was important), I am now getting below error when running the tests. I also had them issue with some other repositories and it could be that this is specific to something on my computer and I was not able to fix that yet. Do you have an idea how to solve this?
at test.TestFlyEmbryoRegistration.runRegistrationTest(TestFlyEmbryoRegistration.java:64