limited time offer

Maven Interview Questions

Showing 1 - 4 of 4 results

How to install Maven on Mac OS Mojave 10.14.6 using Homebrew

Maven is a build automation tool used primarily for Java projects. Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system and Linux. To install maven on Mac OS, use below command:

How to install a JAR in the Maven local repository ?

To install a JAR in the Maven local repository  execute below command in cmd/terminal:

mvn install:install-file \
   -Dfile=/filepath/filename.jar \
   -DgroupId=com.pb \
   -DartifactId=event \
   -Dversion=0.0.1-SNAPSHOT \
   -Dpackaging=jar \
   -DgeneratePom=true

How to create a Maven project using Eclipse ?

Follow below steps:

Step 1: Go to File->New->Maven Project
Step 2: Use default location and click Next, you can change location if you want to.
Step 3: Let it remain the default selection for Archetype and Click Next.
Step 4: Enter Group Id, Artificat Id and Package name. Give group id as com.organisationName.projectName and artifact id as projectname and package name as com.organisationName.projectName.base and click finish. Do not enter space between words.

Subscribe to Maven Interview Questions