Month: September 2017

Filter and rename resources with Maven

Source: http://roufid.com/filter-and-rename-resources-with-maven/ 17 DEC, 2016 If you want to filter and copy your project resources to the output directory, the Apache Maven Resources Plugin is the best plugin to perform that. But sometimes you want to filter and renameresources with Maven and the last version of the Maven Resources Plugin (current 3.0.1) does not provide a direct way to do that. This tutorial will show a workaround to filter and rename resources with Maven. Project example Let’s consider a file file–to–rename.txt located under src/main/ which  we want to filter and rename to renamed–file.txt. Below the…

Read More »

Spring Boot SLF4J Logging example

By mkyong | January 4, 2017 | Updated : April 17, 2017 | Viewed : 0 times +-57,224 pv/w By default, the SLF4j Logging is included in the Spring Boot starter package. application.properties spring-boot-web-project$ mvn dependency:tree +… +- org.springframework.boot:spring-boot-starter-logging:jar:1.4.2.RELEASE:compile [INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.7:compile [INFO] | | | | \- ch.qos.logback:logback-core:jar:1.1.7:compile [INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile [INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile [INFO] | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.21:compile +… Note Review this Spring Boot Logback XML template to understand the default logging pattern and configuration….

Read More »