javajarapache-camelmvn-repo

java - how to get the jar files of a library or framework


I want to download the .jar file of a java framework.
That .jar should of course contain all the .class files that I need for my project.

I tried downloading from here:
https://mvnrepository.com/artifact/org.apache.camel/camel-core/3.18.2
But the .jar file is only 4KB big and contains only meta information, but no java classes.
I found jar files with java classes in them in older versions, but in newer versions they seem to upload only meta information.

So I don't know how to get to the .jar file with all .class files inside.
I don't want to work with maven or gradle for now.
And you can't just download jars with maven or gradle you have to build your entire project with it.

I also searched the github (https://github.com/apache/camel) and source code of the "Apache Camel" project and did not encounter jar files.
Is there any other popular place where open source java frameworks/libraries with jar files can be found?


Solution

  • The apache camel module doesn't contain any code. It just declares a list of dependencies, in the /META-INF/maven/org.apache.camel/camel-core/pom.xml file:

    You have to download the jars that you need in this list of dependencies. All jars can be found on https://mvnrepository.com/.

    This is why everyone will recommend you to use maven or gradle, as those tools will manage the dependencies for you.