-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latest version doesn't compile #61
Comments
I'm not able to reproduce this. Even with a fresh and clean clone directly from Github everything compiles fine. Both errors (missing models and TestdriverApiEndpoint.java issue) sound like there's something off with the api. We generate the models directly from the openAPI file (src/main/resources/api/TiMessengerTestTreiber.yaml). For this we use the openapi-generator-maven-plugin (see pom.xml). Did you maybe change some things in the openAPI document for testing purpose? This might break the model generation. |
both me and my colleague couldn't compile this. did you try to delete the local .m2 repository before reproducing the error? i use maven 3.9.9, my colleague uses 3.9.3. both use openjdk 23 |
hi Stefanie i have fixed the issue. |
That would be great, if the fix could go upstream. |
I checked again, also after deleting the .m2 repository and still have no issues. But a PR is very welcome! If you prefer and if the fix only concerns the pom.xml you can also post it here and we will incorporate it into the next Release. Are you both using macOS? |
a PR would be better. because i also upgraded the mvn plugin versions and otherwise i have to post here so many lines of code. and yes, we both use macos
|
can you please grant me access to the repo so that I can create a PR? |
Sorry, I wasn't aware, that PRs are blocked. It's an organisation setting of Github it seems. We're working on it, I'll let you know once we have a solution. |
Ok mystery solved. PRs are always blocked for organisations, but opening a PR from a fork should still be possible: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork So as far as I can see you have a fork already. When you are making changes, it is recommended that you create a new branch for this purpose, based off of the main branch. After your changes are pushed back to your forked repository, you can then create a pull request from there. If that works for you, I will update the contributing.md accordingly, so it is better documented that PRs can only be opened from forks. |
that worked! |
* #61 add generated sources dir & update maven plugins * #1 combine json and proxy urls * #1 combine json and proxy urls * #1 using multiple homeservers in combine_items.json * #61 resolving pull request comments * #61 resolving pull request comments * Revert "#1 using multiple homeservers in combine_items.json" This reverts commit ce0ec8f. * Revert "#1 combine json and proxy urls" This reverts commit 19e97de. * Revert "#1 combine json and proxy urls" This reverts commit e907a85. * #61 add generated-test-sources to test compilation
i have the feeling my problems come from the maven version which i use. i compiled the testsuite using the docker image however compiling the testsuite with a docker image that reflects the setup of my computer maybe you want to update your developer environments to the latest maven and java version and try to reproduce the error. |
Hi Christian, yeah, we use Maven version 3.6.3. We will update soon to 3.8.6, but because of time limitations this will happen after the ePA and Pro registrations (probably somewhere near the end of this year). |
It would be nice if such versions would be clearly written down and/or possibly coming with a dockerfile if there are fixed version requirements. |
Good morning, you can find the Java version in the parent-pom.xml, the Maven version in the mvnvm.properties and both again in the Dockerfile. While the entrypoint.sh is still in the works you can use those as examples. Once we have a more complete docker set-up we will provide it too. Unfortunately due to the rearrangement of our pom structure I was testing not actually all the changes provided in the related PR. In the upcoming release I will have to revert the addition of the compileSourceRoots, since they are not working in our environments. Feel free to use your own local pom file with the changes necessary for your development environment. You can e.g. add a file local-pom.xml, then merging incoming changes into your fork will probably not conflict. One disclaimer: Suggestions and improvements are very welcome and we will try to incorporate whenever it's possible! Best Stefanie |
compiling the testsuite from a fresh start
fails due to the missing model classes, e.g. de.gematik.tim.test.models.RoomDTO.
to reproduce this issue, clean the local m2 repository and run
my settings are
The text was updated successfully, but these errors were encountered: