Maven dependencies
Hello! I would like to ask how I can find out what the groupId, artifactId and version I need to put in my maven dependency when I am looking for a particular dependency. Like sometimes I am looking for an answer to some question and stumble upon a stackoverflow post which uses some dependency from apache for example. when I go to the apache documentation for the class that is used there isn't really anything that indicates what I need to put in my pom.xml file. I could be wrong about this or just plain blind but this has happened too many times now and I usually resolve it with chatGPT but its starting to get quite annoying. For the sake of giving a particular example, say I want to use IOUtils from apache's org.apache.commons.io package. How do I add the dependency for that to my pom.xml?
6 Replies
⌛
This post has been reserved for your question.
Hey @nikcho-kouhai! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
search mvn [dependency name here] on google
eg mvn commons io
Search Results
1. Maven Repository: commons-io » commons-io
The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.
2. Commons IO – Commons IO Overview - Apache Commons
Apache Commons IO is a library of utilities to assist with developing IO functionality. There are six main areas included: io - This package defines utility classes for working with streams, readers, writers and files. comparator - This package provides various Comparator implementations for Files.
3. Commons IO – Dependency Information
Commons IO – Dependency Information Dependency Information Apache Maven <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.11.0</version> </dependency> Apache Buildr 'commons-io:commons-io:jar:2.11.0' Apache Ivy
Query: mvn commons io
wait...seriously
well, that was embarrassing. Thanks !
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@359755548973072397>.