Make Maven package all dependency jars into my jar

Add the following in pom.xml   <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>fully.qualified.MainClass</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </plugin> </plugins> </build>   and you run it with mvn clean compile assembly:single Compile goal should be added before assembly:single […]

S.O.L.I.D. Software Development

Most professional software developers understand the academic definitions of coupling, cohesion, and encapsulation. However, many developers do not understand how to achieve the benefits of low coupling, high cohesion and strong encapsulation, as outlined in this article. Fortunately, others have […]

How to add certificate to JVM

PKIX path building failed: SunCertPathBuilderException: unable to find valid certification path to requested target. SSLHandshakeException: PKIX: unable to find valid certification path to requested target This solution relates to the following stacktrace: javax.net.ssl.SSLHandshakeException: sun.security.validator. ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:  […]