At some point while using Maven, you'll most likely come to a point where you need to install a POM-less artifact (probably a JAR) into your local Maven repository. This could happen for a number of reasons:
The JAR has never been published to a public Maven repository. This could be the case with a small, niche library.
You need to compile against JAR's included in your runtime environment, which might be closed-source (e.g., WebSphere).
You might have some third-party JAR's which you know work and are Maven-accessible, but you're having difficulty determining their versions.
To install, run the following command (I think against any arbitrary pom.xml file):
So, for example, at one point in recent history, I needed to compile against some internal JBoss JAR's. This is the command I used to install one of the JAR's into my local Maven repository:
Join my email list and be notified whenever a new post is published.
I don't spam. You may unsubscribe at any time.
An unsubscribe link is provided at the bottom of all notification emails, which are sent using the Mailchimp email delivery platform. Please read my complete privacy policy for exhaustive details.
Thank you! Your comment has been submitted and is awaiting approval.
Unfortunately, we were unable to process your submission.
You may either your submission or reach out via
It looks like you are using an older browser.
As such, most/all interactive functionality (such as submitting comments) has been disabled.
Please consider upgrading your browser.
Congratulations! You are now subscribed to this post and will receive an email notification whenever a new comment is added.
If you would like to unsubscribe, click on the unsubscribe link provided at the bottom of every notification email.
Unfortunately, we were unable to process your subscription confirmation.
You might want to try clicking through your confirmation email again.
Alternatively, you can submit another comment and again opt to subscribe to follow-up comments.
Leave a comment