• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Apache Poi Maven Dependencies

 
Ranch Hand
Posts: 76
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

i found this url to read CSV:

webpage

the issue is that in first answer they advise to add maven dependencies.
Where to add it in inteligej? And why?

Best,
Jacek
 
Saloon Keeper
Posts: 15276
350
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your project is a Maven project, it should have a file called pom.xml in its root directory. This is the Maven project descriptor.

In the POM there should be a section <dependencies> to which you can add a <dependency> element for the library that you want to add to your project. The second answer in the StackOverflow page that you linked to has an example of such a dependency.

Before you add any dependencies at all, please tell us why you need Apache POI. If you're not working with Microsoft Office files, then using Apache POI might be overkill if all you intend to do is read a CSV file.
 
Saloon Keeper
Posts: 7551
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For reading CSVs, POI is the wrong tool. Use a library like http://opencsv.sourceforge.net/ or https://commons.apache.org/proper/commons-csv/ instead.

Or are you trying to create an Excel file? For that, you would use POI. But not for reading CSVs.
 
Jacek jaryszek
Ranch Hand
Posts: 76
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much!

Best,
Jacek
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic