A Simple Spring Web Utils Maven Project for building Spring Cloud based MicroServices.
- Web-Utils: Spring Web Commons Configuration library.
- Web-Utils-Test: Spring Web Commons Test Utilities library.
- Cloud-Svc-Parent-No-Persistence: Spring Cloud Pom Project Parent With Common Dependencies.
- Cloud-Svc-Parent: Spring Cloud Pom Project Parent With Common Dependencies including Jpa.
mvn compilemvn compile verifyYou can directly import Web-Utils as dependency or use Cloud-Svc-Parent or Cloud-Svc-Parent-No-Persistence as parent project (that already include web-utils and web-utils-test).
<project>
<properties>
<web-utils.version>0.2.16-SNAPSHOT</web-utils.version>
</properties>
<dependencies>
<dependency>
<groupId>com.grayraccoon.Web-Utils</groupId>
<artifactId>web-utils</artifactId>
<version>${web-utils.version}</version>
</dependency>
<dependency>
<groupId>com.grayraccoon.Web-Utils</groupId>
<artifactId>web-utils-test</artifactId>
<version>${web-utils.version}</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>jitpack.io</id>
<name>JitPack</name>
<url>https://jitpack.io</url>
</repository>
</repositories>
</project><project>
<parent>
<groupId>com.grayraccoon.Web-Utils</groupId>
<artifactId>cloud-svc-parent-no-persistence</artifactId>
<version>0.2.16-SNAPSHOT</version>
<relativePath/>
</parent>
<repositories>
<repository>
<id>jitpack.io</id>
<name>JitPack</name>
<url>https://jitpack.io</url>
</repository>
</repositories>
</project><project>
<parent>
<groupId>com.grayraccoon.Web-Utils</groupId>
<artifactId>cloud-svc-parent</artifactId>
<version>0.2.16-SNAPSHOT</version>
<relativePath/>
</parent>
<repositories>
<repository>
<id>jitpack.io</id>
<name>JitPack</name>
<url>https://jitpack.io</url>
</repository>
</repositories>
</project>Adding Cloud-Svc-Parent-No-Persistence as parent project will add Web-Utils and Web-Utils-test dependencies to your project but also will add some common dependencies for Spring Cloud projects. Cloud-Svc-Parent does the same but also imports jpa, flyway, h2.
It works for me since I use those dependencies in my cloud service projects. Use it if you don't have any problem on having those dependencies in your classpath, otherwise import only web-utils dependency.