Open in app

Sign In

Write

Sign In

Thomas Broussard
Thomas Broussard

2 Followers

Home

About

Oct 14, 2021

Using the maven-shade-plugin

Sometimes, you don’t have spring boot (to automatically repackage your jar thanks to the spring-boot-maven-plugin) and still you have to provide an all-in-one jar. The maven-shade plugin is made for that. It can be tricky to find the appropriate configuration for it. Find after my boilerplate configuration: Notice the transformers, helping to keep consistency by merging registry files necessary for spring to find its classes and implementations, and excludes to strip the signed jars artifacts, to avoid checksum error at loading time.

Maven

1 min read

Maven

1 min read


Oct 14, 2021

Implementing Rolling Random Files for Logging using Log4j2

It is necessary to keep track of log traces, without having too big files (matter of transportation, if you communicate with a customer), it is necessary to configure a rolling appender in the logging framework. Here is an example with log4j2 <RollingRandomAccessFile name="logFile" fileName="/logs/appname/test/test.log" filePattern="appname-%d{MM-dd-yyyy}.log.gz" append="true"> <PatternLayout> <Pattern>[%-5p] %d %c - %m%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy/> <SizeBasedTriggeringPolicy size="20 MB"/> </Policies> <DefaultRolloverStrategy max="200"/> </RollingRandomAccessFile>

Logging

1 min read

Logging

1 min read


Oct 14, 2021

Getting an SSL certificate with Let’s Encrypt

As of 2021(and from a pretty long time now), SSL security for services is not an option. Beforehand, it was not so easy for a developer to get an ssl-certificate which was valid, it was most often a self-signed certificate which was difficult to use programmatically. Ideed, most languages and…

Ssl

1 min read

Getting an SSL certificate with Let’s Encrypt
Getting an SSL certificate with Let’s Encrypt
Ssl

1 min read

Thomas Broussard

Thomas Broussard

2 Followers

Senior Java Consultant

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams