I'm building a web server using Java Spring Boot, and using swagger-codegen to generate the rest client for other projects to consume.
I want to test the rest-client in my integration tests, however including a maven project / jar that exists in my target
directory (after the initial build), in my project's POM seems to be impossible.
Is it possible to build these tests with this new dependency?
I ended up creating a multi module project, one for the server,, one for the rest client (which depends on on the server) and one for the integration tests (which depends on the rest client)
Each module has its own pom file, and it's own phases for building / publishing. While I still can't get a top level mvn clean install
to work (which is the standard for setting up our web apps) I was able to do coordinated installs with multiple mvn commands tired together in a bash script.