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 […]

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:  […]