I am having failing tests every time I do a mvn clean install on my cloned openmrs core. All the relevant dependencies are present. The errors look like this https://pastebin.com/nNxrKv1d I have managed to over come the error by declaring the mysql-connector dependency again in the api with the scope being test. Courtesy of @k.joseph I am using a dell LATITUDE E7450. Is this a similar case for every one or its a local issue on my machine because I seem to need this fix for every ticket I am working on…
What does this command return? mvn -v
User@meant MINGW64 /d/oms/openmrs-core (master) $ mvn -v Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T21:41:47+03:00) Maven home: D:\sw\java\apache-maven-3.6.0 Java version: 1.8.0_202, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_202\jre Default locale: en_US, platform encoding: Cp1252 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”
Do you get the same error when you compile the 2.2.0 tag? https://github.com/openmrs/openmrs-core/tree/2.2.0
How do I access this tag…
git fetch origin 2.2.0:2.2.0
git checkout 2.2.0
User@meant MINGW64 /d/oms/openmrs-core (master) $ git fetch origin 2.2.0:2.2.0 error: cannot update ref ‘refs/heads/2.2.0’: trying to write non-commit object f67cb0dd136f12cba5cda95bb016229d46588fc1 to branch ‘refs/heads/2.2.0’ From https://github.com/reagan-meant/openmrs-core ! [new tag] 2.2.0 -> 2.2.0 (unable to update local ref)
i get this error when fetch…and when i checkout without creating a branch it throws the same errors as here https://pastebin.com/nNxrKv1d
Does it help if you do? git fetch upstream 2.2.0:2.2.0
no, same error
What does that mean? That the git fetch command results into an error?
User@meant MINGW64 /d/oms/openmrs-core (master) $ git fetch upstream 2.2.0:2.2.0 error: cannot update ref ‘refs/heads/2.2.0’: trying to write non-commit object f67cb0dd136f12cba5cda95bb016229d46588fc1 to branch ‘refs/heads/2.2.0’ From https://github.com/openmrs/openmrs-core ! [new tag] 2.2.0 -> 2.2.0 (unable to update local ref)
have tried all the solutions with no difference…still failing to fetch that tag…with same error
Can you try this? git fetch --all
After I do this https://pastebin.com/TrCDXpqP I get the same errors of jdbc driver class not found…
Did you open a PR for this, am not either why u catch it and we don’t but it’s an issue
I still believe that there could be a problem with your setup, because both travis and bamboo are running fine. Can you try to delete your .m2 folder and try again?
unfortunately deleting the m2 folder hasnt helped…after all dependencies are downloaded the same error appears…
you meant PR or ticket?
Can i look at the current error log after clearing the m2 folder?