Tomcat maven plugin example
In this maven tutorial, learn to add and configure tomcat plugin to pom.xml and use it deploy the web application without any tomcat installation in machine. The post Tomcat maven plugin example...
View ArticleSpring Boot Starter Parent Dependency
The spring-boot-starter-parent dependency is the parent POM providing dependency and plugin management for Spring Boot-based applications. It contains the default versions of Java to use, the default...
View ArticleSpring Boot 2.0 – WAR Packaging Example
In Spring boot applications, default packaging is jar which is deployed in embedded servers. If you want to generate a war file for deployment in seperate application server instances such as Jboss,...
View Article[Solved] Maven Shade Plugin – A required class was missing...
You may get this error when you have incompatible version of maven and it’s maven shade plugin. Fixing version number mismatch will solve the issue. The post [Solved] Maven Shade Plugin – A required...
View ArticleJUnit 5 Maven Dependency [pom.xml] Example
Learn to configure junit 5 with maven, its jupiter and platform different modules and how to use them to create and execute tests. The post JUnit 5 Maven Dependency [pom.xml] Example appeared first on...
View ArticleMaven – Settings File
Maven settings.xml file contains configurations that are not specific to a project, but are global in nature. It also contains information that is not meant to be distributed (e.g. passwords). The post...
View ArticleMaven – POM File
POM (Project Object Model) is an XML file that contains information about the project and configuration details used by Maven to build the project i.e. sourcecode location, project dependencies etc....
View ArticleMaven – Dependency Management
In Maven, dependency is another archive—JAR, ZIP, and so on—which your current project needs in order to compile, build, test, and/or to run. The dependencies are gathered in the pom.xml file, inside...
View ArticleMaven – Local, Remote and Central Repositories
Maven repositories are physical directories which contain packaged JAR files along with extra meta data about these jar files. This meta data is in form of POM files which have jar file project...
View ArticleMaven – Dependency Scopes
Maven scope attribute is used to specify the visibility of a dependency, relative to the different lifecycle phases (build, test, runtime etc). Maven provides six scopes i.e. compile, provided,...
View ArticleMaven – Parent and Child POM Example
Maven parent POM (or super POM) is used to structure the project to avoid redundancies or duplicate configurations using inheritance between pom files. The post Maven – Parent and Child POM Example...
View ArticleMaven Custom Archetype from Eclipse Project
Learn to create maven custom archetypes which helps in creating a specific type of project structure which is not available in any standard maven archetype. The post Maven Custom Archetype from Eclipse...
View ArticleMaven multi-module project in eclipse
Learn how to create multi module maven project in eclipse IDE. In this maven tutorial, we will learn to create nested maven projects in eclipse. 1. Create multi module maven project Let’s create a...
View ArticleMulti-module maven project – Console
Learn how to create multi-module maven project from console IDE. In this maven tutorial, we will learn to create nested maven projects maven cli commands. The post Multi-module maven project – Console...
View ArticleSpring boot multi-module maven project example
Learn to create spring boot project having multiple modules. The parent project will work as container for base maven configurations. The child modules will be actual spring boot projects – inheriting...
View ArticleMaven – Remove all corrupt jars / dependencies
Learn to rebuild local repository by deleting all corrupt jars from repository and fix missing maven dependencies problem or force update a maven project. The post Maven – Remove all corrupt jars /...
View ArticleHow to Run JUnit Unit Tests with Maven
Learn to run JUnit tests using Maven Surefire Plugin. We will learn to run a single test, run only selected tests or run all the tests in the project. The post How to Run JUnit Unit Tests with Maven...
View ArticleMaven Tutorials
Maven is a build tool based on POM and is generally used for Java projects to automatically download the project dependencies in build time. The post Maven Tutorials appeared first on HowToDoInJava.
View Article[Solved] Maven – Fatal error compiling: invalid target release
Learn to fix Maven invalid target release error which indicates that Java versions used in Maven and in the application are not compatible. The post [Solved] Maven – Fatal error compiling: invalid...
View ArticleSetting Java Version used by Maven Compiler
Learn to configure the Java compiler version in a Maven project and a Spring boot application using Maven as a build tool. The post Setting Java Version used by Maven Compiler appeared first on...
View Article