Spring Boot is one of the most powerful Java EE frameworks that aims to facilitate the development of new application. It brings all the power of the Spring stack (Spring dependency injection, Spring data...
Tagged: Maven
Filter and rename resources with Maven
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 rename...
Spring Boot multiple databases configuration
By simple configuration, Spring boot provides a powerful way to work with a single database. Sometimes you need to work with multiple databases (for example, one for basic usage and another for archiving). In...
3 ways to add local jar to maven project
Introduction You may need to add a custom JAR as a dependency to your Maven project. This tutorial shows 3 ways to do it: Install manually the JAR into your local Maven repository Adding...
3 ways to solve the Maven error : No compiler is provided in this environment.
Problem You may face the below Maven error while running a Maven build : No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? Solution Your JAVA_HOME...
3 ways to solve Fatal error compiling: invalid target release in Maven build
Problem You may encounter the following error when running a Maven build: Fatal error compiling: invalid target release: <JDK_VERSION> Solution Below three ways to solve the problem: Adding the environment variable JAVA_HOME Using Maven...
3 ways to solve java.lang.OutOfMemoryError: PermGen space in Maven build
Problem You may face the below error while running a Maven build java.lang.OutOfMemoryError: PermGen space Solution You must increase the Permanent Generation (PermGen) memory size of your JVM by passing the argument -XX:MaxPermSize and...
Easy way to solve unsupported IClasspathEntry kind=4? on Maven project update
Problem You may encounter the below Maven error while importing or updating your Maven project on Eclipse IDE Unsupported IClasspathEntry kind=4? Solution This error is thrown when the old version of M2Eclipse Plugin (previous...
How to install Maven on Eclipse IDE ?
you can take advantage of the Apache Maven powerful features on your Eclipse IDE by installing the M2Eclipse Plugin. Installing the M2Eclipse Plugin Below steps to follow to install Maven on Eclipse IDE : Open your...
No main manifest attribute, in jar
Problem Sometimes you face the following error while runing an executable jar : No main manifest attribute, in “<APP_NAME>.jar” Solution Main-class property is missing on your jars META-INF/MANIFEST.MF. Correct it by adding the following...