xenomachina / kotlin-argparser

Easy to use and concise yet powerful and robust command line argument parsing for Kotlin
GNU Lesser General Public License v2.1
485 stars 33 forks source link

Maven not downloading .jar from bintray #50

Closed seanfdnn closed 6 years ago

seanfdnn commented 6 years ago

I've added the Bintray maven dependency but the argparse libraries are not in my path... only the xenocom ones are (xenomachina.text and .common)

I'm not a Maven expert, but I had a look at the .pom on Bintray -- I see the Xenocom dependency in there -- maybe there's something misconfigured or not pointing to the argparse jar?

xenomachina commented 6 years ago

Unfortunately, I have almost no experience with Maven (I only use gradle), so I'm not sure if I'll be able to help, but would it be possible for you to post a build file that reproduces the problem? Also, what exact error message are you getting, and is it at compile time or run time?

pcoltau commented 6 years ago

I have the same issue. There are two solutions for this:

1) Upload the project to the central maven repository, following this guide: https://maven.apache.org/guides/mini/guide-central-repository-upload.html

or

2) Use jitpack.io as a maven repository. Jitpack.io is a package repository for git and will make a maven jar dependency from most java projects in git: https://jitpack.io/#xenomachina/kotlin-argparser

The second option is the easiest solution right now, but it's not an "official" maven release of this project, which it really deserves to have.

pcoltau commented 6 years ago

This guide for publishing a release to a maven repository seems to be more hands-on: https://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html

xenomachina commented 6 years ago

Thanks for the info! Is it really not possible to have Maven pull from jcenter? This video seems to suggest that it's possible, but requires updating your maven settings (not ideal -- gradle's approach of having this in the project's build makes more sense, IMHO).

In any case, it probably is about time I put this project up on Maven Central. I found this tutorial for using Bintray as a gateway to Maven Central, so I'm working through that.

seanfdnn commented 6 years ago

Sorry I couldn't be more help! After using pip and npm, this is the first project I've used Maven (or Gradle) for so I'm fumbling my way through it too.

xenomachina commented 6 years ago

Ok, I've finally gotten around to getting these up on maven central. Sorry it took a while.

Feel free to reopen if you're still having issues related to this.