Peter
Peter

Reputation: 1894

What's the point in making a .jar out of everything?

I recently ran over a bootstrap.jar. For me bootstrap is only a css / js library and I include it as such. Now following questions came up:

I've also seen other examples of .jar files where I wouldn't expect them. I'm most likely to see them in some artifactory.

Edit: Looking into the .jar with WinZip: It is the bootstrap css / js framework. inside a folder called webjars.

Upvotes: 0

Views: 117

Answers (1)

aro_tech
aro_tech

Reputation: 1143

See http://www.webjars.org/

The advantages of these jars containing client-side javascript and css code include:

  • Explicitly and easily manage the client-side dependencies in JVM-based web applications

  • Use JVM-based build tools (e.g. Maven, Gradle, sbt, ...) to download your client-side dependencies

  • Know which client-side dependencies you are using

  • Transitive dependencies are automatically resolved and optionally loaded via RequireJS

Upvotes: 2

Related Questions