English 中文(简体)
Has Google Collections 1.0 been mavenized?
原标题:

According to the entry at MVNRepository, at the time of this writing, the latest version in maven central is 1.0-rc5. I am aware there are no changes between 1.0 which was recently announced and RC5, but I guess the nit picker in me wants to find a 1.0 version. Here s the POM entry for RC5.

<dependency>
    <groupId>com.google.collections</groupId>
    <artifactId>google-collections</artifactId>
    <version>1.0-rc5</version>
</dependency> 
最佳回答

Version 1.0 of google-collections (which is final since the 30 dec 2009) is available in central since... the 30 dec 2009: http://repo2.maven.org/maven2/com/google/collections/google-collections/1.0/. Don t trust mvnrepository, go see yourself (or use a better solution to search central and other Public Repositories).

问题回答

Why not keep your own local repository and add the 1.0 version to it? Add it to your list of repositories in your OS-dependent USER-HOME/.m2/settings.xml

Info on this is available at: Introduction to Repositories

Then you won t be reliant on it being on a given central repo or mirror, and you ll be able to use google-collections-1.0 in your POM. It also eases the burden on the public repos when artifacts are kept on a local server and only on occasion does something new get brought in from a central repo..

Now, if it s a shared project you d probably need your repo to be public, but if not then it should be pretty simple to set something up.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签