Quantcast
Channel: Maven Basics
Browsing all 71 articles
Browse latest View live

Maven – 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 Article


Maven – 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 Article


Maven – 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 Article

Maven – 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. It helps in easy maintenance in long term. Table...

View Article

Create Maven 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 Create Maven Custom Archetype from...

View Article


Maven BOM [Bill Of Materials] Dependency

If you have worked on maven in your projects for dependency management, then you must have faced one problem at least once or may be more than that. And the problem is version mismatch. It generally...

View Article

How to Execute TestNG Tests With Maven Build

In this tutorial, we will lean how to execute testng tests using maven build file i.e. pom.xml file. This knowledge is important if you are planning to automate your tests and making them part of...

View Article

Create java source folders in maven web application

This is very strange problem but this is fact that when you create a maven web application using “-DarchetypeArtifactId=maven-archetype-webapp” then no java source folder is created. Rather a resources...

View Article


Import Maven Remote Archetype Catalogs in Eclipse

This tutorial gives easy instructions for importing maven remote archetype catalogs in eclipse to give you head start in configuring the project. Using archetype automatically import all basic runtime...

View Article


Gradle – Convert Maven Project to Gradle Project

Gradle is more feature rich and more modern java build tool, so if you are planning to port from maven to gradle build system, this tutorial may help you. The post Gradle – Convert Maven Project to...

View Article

Maven Shade Plugin – Create Uber/Fat Jar Example

Learn to use Maven Shade plugin to package a java project along with it’s dependencies into a fat jar or uber jar. The post Maven Shade Plugin – Create Uber/Fat Jar Example appeared first on...

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 Article

[Solved] Dropwizard – Failed to parse configuration [Could not resolve type...

This exception you may face while starting jetty server packaged inside your dropwizard REST application uber jar. The post [Solved] Dropwizard – Failed to parse configuration [Could not resolve type...

View Article


JUnit 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 Article

Maven – 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 Article


Maven – 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 Article

Maven – 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 Article


Maven – 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 Article

Maven – 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 Article

Maven – 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 Article
Browsing all 71 articles
Browse latest View live