• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
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
 
Bartender
Posts: 15743
368
  • 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.
 
Bartender
Posts: 7645
178
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic