prosseek
prosseek

Reputation: 190859

Why some libraries are distributed with sources and javadoc jar files?

I downloaded apache commons library. Unzipping the file, I found multiple other jar files other than the library that I need - commons-io-2.4.jar.

What are other files for? Are they just zipping source, tests and documents for reference? Or, are there other reasons to be included in distribution? If they are just zip files with jar extension, why are they distributed with jar extension?

enter image description here

Upvotes: 2

Views: 174

Answers (1)

Chuidiang
Chuidiang

Reputation: 1055

maven can automatically generate and upload to a server those jar, with sources, javadoc, test, .... Maven generates them with .jar extension. Probably they were generated with maven.

In example, the command "mvn source:jar" generates de sources.jar. http://maven.apache.org/plugins/maven-source-plugin/

Upvotes: 2

Related Questions