Java code which can be re-used in our different java projects.
Some modules depend on Google PubSub Emulator for running unit tests.
The emulator is not available as a Maven dependency in any public Maven repository. Options to deal with this dependency include:
- Adding the emulator to your local Maven proxy under the following Maven GAV:
<groupId>com.google.cloud</groupId>
<artifactId>pubsub-emulator</artifactId>
<version>0.1-SNAPSHOT</version>
- Checking in the emulator under source control.
The automatic downloading of the emulator can be deactivated in the Maven build by setting the following property:
mvn clean install -Dentur.google.pubsub.emulator.download.skip=true
A Spring property must then be set to point to a custom location for the emulator:
entur.pubsub.emulator.path=/path/to/emulator/pubsub-emulator-0.1-SNAPSHOT.jar
- Disabling altogether unit tests during the build process:
mvn clean install -DskipTests -Dentur.google.pubsub.emulator.download.skip=true