Reputation: 8672
I would like to include a Maven dependency on the apache commons-text project. I tried adding this dependency to my pom:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
And including the following repository:
<repository>
<id>apache_snapshots_repo</id>
<url>http://repository.apache.org/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
I took that repository from the Dependency Repository Locations section of the documentation of commons-text. However, still the dependency cannot be resolved by maven.
So which is the right dependency & repository I should configure in order to work with Apache commons-text ?
Upvotes: 2
Views: 4465
Reputation: 3513
I'm happy to write that development has resumed for Apache Commons Text, and version 1.0 was recently released.
It can now be imported normally. Keep in mind that you need to change the version from 0.1-SNAPSHOT (as in the OP's question) to 1.0.
Here is its page on Maven Central.
(full disclosure - I also contributed to this project)
Upvotes: 0
Reputation: 6792
You have to pull down the source and build it yourself. It appears that no artifacts have been deployed to Maven Central or the Apache snapshots repository.
FWIW, there hasn't been any significant development on that code since May 2015.
Upvotes: 1