ocpsoft / prettytime

Social Style Date and Time Formatting for Java
http://ocpsoft.org/prettytime/
Apache License 2.0
1.29k stars 252 forks source link

Can not download from pretty-time dependency, "could not find artifact" in IntelliJ Idea #254

Open ThanhTC266 opened 1 year ago

ThanhTC266 commented 1 year ago

Hello. I'm doing a tutorial of Java Brains and he use your team dependency at 30:38 , here is the link: https://youtu.be/tfmFRrPz52s

but things is going wrong when I import your dependency and get some error, I think that it is from your side. Here is the log and I'm using IntelliJ idea, maven project. "Could not find artifact org.ocpsoft.prettytime:prettytime-integration-jsf:pom:unknown in central (https://repo.maven.apache.org/maven2) " 8 5 This is when I add version to the dependency, seems nothing downloaded 8 6 Because then I can not use PrettyTime object in my code 8 7

ShareASmile commented 1 year ago

version 5.0.7 final is the latest, you should try that.

lincolnthree commented 1 year ago

It's there in central: https://repo1.maven.org/maven2/org/ocpsoft/prettytime/prettytime-integration-jsf/ As @ShareASmile said I'd try the latest version, though. Make sure you actually run the dependency install step. Your tools may not be doing it for you.