0

I added org.joda.time dependency through maven, and I can reference for example Seconds class from org.joda.time package but I can't DateTime or others. What can cause this behavior? I can browse joda-time-2.9.9.jar in Maven Dependencies and all classes are there.

enter image description here As you see Seconds class is imported as expected but DateTimeField is not recognized.

user1902247
  • 123
  • 11

2 Answers2

0
  • First try ALT+F5
  • If the error persists, try to build the project from the command line (mvn clean package, or through Eclipse as "Run As -> Maven build...").
  • If the compilation shows errors, fix them (maybe you need another version of your jar or some other jar shadows the classes you need).
J Fabian Meier
  • 30,532
  • 9
  • 61
  • 119
0

Problem was in corrupted jars. After i deleted joda.time folder from local maven repo and did Maven->Update it started to work.

user1902247
  • 123
  • 11