Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am programming a YouTube-Downloader, and I'd like to use the 2 libraries VGet and WGet, since no other library worked. How do I embed those into my project? I'm using IntelliJ 14.
As noted at the bottom on the pages of those two libraries, the libraries are available on Maven Central.
You could search on Maven for "com.github.axet", e.g. http://search.maven.org/#search%7Cga%7C1%7Ccom.github.axet
Then you'll see the vget and wget libraries. By clicking on the latest version, you come to a page where there is also a jar-file to be downloaded.
But please be aware: Both libraries require additional libraries (e.g. some of the Apache commons libs), which you'll need as well. It is thus highly recommended, to use a dependency management tool like Maven, Ivy or Gradle for your project. I don't know IntelliJ that good, but at least Maven should be supported out of the box. Then all you have to do is specify that you want to use wget and vget, and libraries used by wget or vget will be automatically added to your classpath as well.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have created a library to use some utilities I need in multiple projects. So lets say I'm building a new version of the library and overwrite the old one, do my other project automatically update the library to the newer version when I reload my project? (Or when I build it)
You should not be referencing external libraries by relative path unless you have a good reason for it, exactly for reasons like these. Ideally you want to use a build automation tool which will handle this, for example Maven, Gradle or Ant, so that the dependencies are included on compile and are a part of your JAR or whatever you are building your project into.
https://www.baeldung.com/ant-maven-gradle
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Recently I have been trying to figure out how to publish my ScaleNumberPicker Android library from GitHub.
I read articles about publishing to Jitpack, GitHub Packages and Maven Central, but I found it confusing.
What is the difference between these different package repositories, and which one is the best for Android Studio? And how do I publish? Do I need to create a release first on GitHub? And after publishing, can I modify the README.md file on my GitHub repository to add the usage instructions?
JitPack pulls the source from your GitHub repo and builds it (when the first user uses the lib).
For Maven Central and GitHub Packages, you build and upload your own artifacts.
I'd say, the simplest way is JitPack.
Follow the docs to publish the lib. (Follow the Guide to Android)
After adding a release, you still can edit the README, and you can continue to work on the lib.
If you want to publish a new version, just create a new release and update the README.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
OSGi allows to add/change dependencies aka bundle, when Maven allows to add/change dependencies aka jars.
Then what the difference? It's like hitting the one goal by different ways
Maven is more of a build system you use to create OSGi bundles. The maven creators call it (I might be wrong on this) life cycle management tool. It helps you build, test, integrate and release (also deploy) your software. This includes dependency management on the library or component base.
OSGi on the other hand is more of a runtime thing where a bundle can add services or consume others. (I'm obviously no OSGi expert)
So you can use maven to create OSGi bundles but both technologies do not live in the same context. I think you cannot compare them. They serve a very different purpose.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Can I use overlays in profile?
I have to build and package my web app such as it has to copy the resources from another project only for specified profile. So How can I achieve this, please suggest some solution.
You don't say what kind of project you're copying from.
If it's a WAR project, then depending on it will cause maven to overlay the resources automatically. So, all you need to do is have a dependencies section in your profile, and within that add a dependency on your other WAR, and maven will overlay it for you.
If it's a jar project, you can zip up your resources using the assembly plugin, and unzip into your war using the dependencies:unpack plugin. I probably can't do better than the accepted answers on these two questions:
Creating a zip archive of the maven "target" directory for how to create the zip of your resources.
Unzip dependency in maven
for how to unzip into your war.
Update: as an alternative to unpacking the zip, you can use the overlays part of the WAR plugin, see the last example on http://maven.apache.org/plugins/maven-war-plugin/overlays.html
i don't think you can run it on com.sun.net.httpserver.HttpServer. because JAX-RS is a specification which have been implemented by various vendors like, Apche,jersey,jboss,spring etc. They provide there own server to run the web services which fulfill the desired criteria.
Although restful web services runs over http but as per me they can't run on com.sun.net.httpserver.HttpServer.
Hope it will help you
We can not use Overlays in Profile, but we can achieve this as shown here Use Overlay with Profile
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I need to download the JSR 311 Java library (Jersey) jars. Java.net has the API for download but it is inexplicably down and can't seem to find it anywhere else. Can someone please help as I can not continue my current project without Jersey. Thank you
See the JAR files at http://repo1.maven.org/maven2/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_1.1_spec/1.0.1.Final/
In any case, use a dependency management system like Maven or Ivy to make things easier.
As Alessandro notes in his answer, You really should be using maven at least for dependency management.
That being said, you can get the latest Jersey jars from the apache maven central repository even without using maven:
http://search.maven.org/#artifactdetails%7Ccom.sun.jersey%7Cjersey-bundle%7C1.9%7Cjar