Steps to install Maven on Mac and use it in Eclipse

[Overview]

This article describes the steps to get Maven on your Mac and use it in Eclipse. Maven is a project management tool that replaces Apache's Ant for efficiently managing (building) Java programs. In the case of Ant, each process that was done by writing detailed instructions in the configuration file called build.xml is processed by writing rough instructions in pom.xml in Maven. The main feature is that by specifying the JAR library and version used in the project in the tag of the pom.xml file, the JAR is automatically downloaded from the outside and built automatically.

See below for details.

What is Apache Maven

https://ja.wikipedia.org/wiki/Apache_Maven

[procedure]

1. Install Maven on your Mac

1-1. Check the installable Maven brew search maven

1-2. Install the latest Maven brew install [email protected]

1-3. Add to PATH (edit and execute ~ / .bash_profile)

~/.bash_profile


MAVEN_HOME=/usr/local/opt/[email protected]
export PATH=$MAVEN_HOME/bin:$PATH

source ~/.bash_profile

1-4. Version check mvn --version

2. Set Maven in Eclipse

2-1. Open the [New Maven Runtime] dialog by selecting [Preferences]> [Maven]> [Install]> [Add].

2-2. Installation home: Set the path of "Maven home" displayed in "$ mvn — version" of 1.

2-3. Installation Home: Set an affordable name

2-4. Click the [Finish] button

3. Create a Maven project

3-1. [Package Explorer]> [New]> [Maven Project]> [Next]

3-2. Check [Use default workspace location], check [Create simple project]> [Next]

3-3. Enter the following and click [Finish] GroupId: Project root package name ArtifactId: Project name Version: Project version (this time the default version)

** This is complete! ** **

Recommended Posts

Steps to install Maven on Mac and use it in Eclipse
Install Eclipse on Mac and translate it into Japanese
How to install Eclipse (Photon) on Mac
I want to use NetBeans on Mac → I can use it!
Install java and maven using brew on new mac
Install tomcat + eclipse on mac
Ssh to Ubuntu on VirtualBox on your Mac and do it until you install Docker
Steps to run docker on Mac
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
Steps to build and install an existing Eclipse plug-in project yourself
Install Ubuntu Server 20.04 in VirtualBox on Mac and connect with SSH
A memorandum on how to use Eclipse
How to use Apache Derby on Eclipse
Download and install Eclipse (Java) (Mac version)
Open multiple workspaces in Eclipse on Mac
Steps to Use JConsole in Cognos Analytics
Homebrew on Mac allows you to use Tomcat right away without Eclipse
Is it possible to put the library (aar) in the Android library (aar) and use it?
Install java and android-sdk on Mac using homebrew
Install SonarQube on Mac and challenge source analysis
[Ruby on Rails] How to install Bootstrap in Rails
How to use Eclipse on my PC with 32bit and 2GB of memory
Install gradle on mac
Steps to set up Jenkins on your local Mac, create one job and succeed
I couldn't run Processing on jdk-9, so I reverted to jdk-1.8 and it worked on Eclipse OXYGEN
Install Java on Mac
Import the instance and use it on another screen
How to use Z3 library in Scala with Eclipse
How to create a header or footer once and use it on another page
Steps to set up Postfix and Dovecot on CentOS 8.3
To debug in eclipse
How to use JDD library in Scala with Eclipse
[Even beginners can do it! ] How to install Eclipse on Windows 10 (Java environment construction)
Install openjdk11 on mac
How to install Gradle and Kotlin with SDKMAN (Mac)
Install OpenJDK 8 on mac
Notes on how to use regular expressions in Java
Install mecab-ipadic-neologd on Sakura VPS (ubuntu18.04) with low memory and use it from python
Beginners write! Until you install postgreSQL on macOS catalina and make it available in rails 6.0.3.2
How to add another project as Maven library with CircleCI and use it for build
With podman in docker, everyone wants to get along and use docker on a shared computer
How to use OpenCV 4 on Android and view camera live view
[For beginners] Install JDK + Eclipse on Mac (without Pleiades All-in-One)
Install docker and docker-compose on ubuntu in the shortest process
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
How to run npm install on all projects in Lerna
How to call and use API in Java (Spring Boot)
Reasons to use Servlet and JSP separately in Java development
Super easy in 2 steps! How to install devise! !! (rails 5 version)
How to switch Java in the OpenJDK era on Mac
How to install PHP 7.4 and SQL Server drivers in CentOS 7.7
How to install JDK8-10 (Mac)
Install tomcat plugin in eclipse
In the Dockerfile on jetson nano, it was necessary to install gnupg gnupg2 gnupg1 before running karaage0703's install-ros-melodic.sh.
Install the memcached plugin on MySQL and access it from Java
Install Golang / MariaDB on CentOS8, connect to DB and execute SQL
[Core ML] Convert Cycle GAN to Core ML and run it on iOS
I just want to write Java using Eclipse on my Mac
[Webpacker] Summary of how to install Bootstrap and jQuery in Rails 6.0