-
I'd like to add a few classes while running in dev-mode (actually also for tests, but not in my prod code) that mock the API of a third party service. They could listen on a separate port, but it would also be okay to run them on the same port as my application. I understand that I can run the WireMock dev-service, but that's not stateful. Even when I try to add a WireMock extension to supply my own stub mappings from code, the dev-service doesn't load the classes from Starting a separate Quarkus maven module might be a solution, but I would have to work with fixed ports; and running it in my CD pipeline is not really trivial. Are there better options? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I faced the same problem. I solved it by compiling / adding the mocks (located in src/test/java) to the classpath by using the build-helper:add-source plugin.
I added following profile to my pom.xml:
By running |
Beta Was this translation helpful? Give feedback.
-
@aloubyansky can your proposed dev only dependency help here ? |
Beta Was this translation helpful? Give feedback.
I faced the same problem.
I solved it by compiling / adding the mocks (located in src/test/java) to the classpath by using the build-helper:add-source plugin.
I added following profile to my pom.xml: