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
See below for details.
https://ja.wikipedia.org/wiki/Apache_Maven
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-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-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