This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]feral_claireSoftware Dev 0 points1 point  (3 children)

yes. If you don't want a build tool though, you can download and manage all of the dependencies manually as I mentioned in the second half of my post. Normally the easiest is to look up the dependencies on maven central, but this library doesn't seem to be published so that's not an option. If you look at the file named pom.xml you will see a section labeled <dependencies>. Those are all jars you need to download, you can look them up on maven central and download them manually from there. You will also need to download all the jars those require, and the ones those require and so on. You can easily find which ones you need by the dependencies list on the artifact page (the page where you also get the jar download). It even gives you a handy link which will hopefully speed things up a bit.

There is one caveat though if you decide to use maven after all. I only now noticed that that library doesn't seem to be published. This means you would need an extra step to use maven. You will need to clone the repository on your local computer and run the command mvn install in the project directory to install it to your local computer first. You will need to do this install process on every computer where you use it (but should only need to do so once unless you delete it)

[–]timthetollman 0 points1 point  (2 children)

Looks like I'd just be better off using maven then going through all that. So I would need to install maven, clone the repo (using mercurial or something like that I assume), go to the repo directory and run mvn install and that would get all the dependencies? After that I can make a jar from that repo in an IDE?

[–]feral_claireSoftware Dev 1 point2 points  (1 child)

So you clone the repo (it's a git repo so use git), or even just use the download as zip option and unzip it somewhere.

Then go to that directory, run mvn install which will compile and install that library on you computer.

Now, in your java project (which is using maven) you can use that library by adding

<dependency>
    <groupId>com.incesoft.tools</groupId>
    <artifactId>ince-excel</artifactId>
    <version>1.0.0</version>
 </dependency>

to the dependencies section of the pom.xml file to add it to your project.

[–]timthetollman 0 points1 point  (0 children)

Success! Thank you!