Maven Metadata Xml Download For Mac
Since Lion 10.7.1 10.6.8 MacOSx Snow Leopard (correct me if wrong), Mac OS X comes with Apache Maven 3 built in, and can be located at /usr/share/maven
What I want to do is to force Maven to download the 'maven-metadata.xml' for each artifact that I have in my local repository. The default Maven behaviour is to download only metadata from remote repositories (see this question). Why I want to do that: Currently I have a remote repository running in a build machine.
1. Maven Built-In
To verify the Maven installation, in terminal, issue the command mvn -version
.
1.1 – Where is Maven installed?
A quick check with whereis
command :
By default, Maven is installed at /usr/share/maven
. No configuration is needed.
2. Install Maven Manually
After the upgrade of Mac OS X Mavericks, Maven was removed (no idea why). So, You have to install it manually.
2.1 – Download Maven
Download the Maven, for example apache-maven-3.1.1-bin.tar.gz
. Extracts it,
2.2 – Set Maven command in environment variable.
Update ~/. bash_profile
– create this file if doesn’t exist.
Restart the terminal. Test it.
3. Post Configuration
A common post-installation for Maven, change the local repository to another location.
Above example changed the default repository from ~/.m2/repository
to /Users/mkyong//maven/repo/
.
References
About the Author
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.Comments
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Internally m4a can store many sub-formats:. Music converter software.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Sep 5, 2015
Coreldraw graphics suite 2019 mac. The maven plugin is not resolved when I try to do a as mentioned on the page team-book/20-introduction.md. The output from maven is |
commented Sep 5, 2015
If you are trying to use our extensions with the core mechanism introduced in Maven 3.3.1 this is the way we're suggesting people try them for now. But I will fix this up. |