craig
craig

Reputation: 26262

Recommend location for JAR files on OSX

I have a number of libraries (folders of JARs):

A number of these also include the JavaDocs in ZIP format.

I would like to use these libraries w/ Eclipse, NetBeans, and Groovy.

At this point, I've added them to ~/SDKs folder, but I don't really care for this spot. A colleague suggested that I use the /usr/local directory instead.

To further confuse things, Apple's Technical Q&A document QA1170 - Important Java Directories on Mac OS X recommends using one of these folders:

The document mentions:

Items placed in either of these directories do not need to be named in an application's classpath and will be available to all applications run under the respective scope (system-level or user-level, depending which directory is used).

I like the idea, but will there been any issues w/ multiple versions of a given library (e.g. Oracle 10 & 11 clients) being located one of these folders?

In general, is there a preferred location for JARs on OS X? Should the JARs' JavaDoc be contained in the same folder?

Upvotes: 1

Views: 1837

Answers (1)

yegor256
yegor256

Reputation: 105083

I would recommend to use a proper repository, like Archiva, for example. And retrieve these artifacts on demand using, say, Apache Maven.

Another alternative would be to use Amazon S3 as Maven repository.

Upvotes: 2

Related Questions