Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

JAX-RS 2.0 requires Java 1.6 or newer

 
Sheriff
Posts: 3072
454
Android Eclipse IDE Angular Framework TypeScript Redhat MicroProfile Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the latest version of Eclipse (2019-03 4.11.0) with the Maven m2e plug-in on Windows 10 (and still new to Maven).

Yesterday things were working fine, but today, after restarting Eclipse, I am seeing an error which seems to indicate that my version of Java is lower than what is required, and I can't figure-out why.  I have seen this kind of error when the Java version is not specified in the pom.xml file (seems like Maven defaults to Java 1.5), but in this case it has been specified.  I believe that the Eclipse settings below are being configured by the Maven plug-in.

Any ideas on what I can look at to resolve this problem?








 
Ron McLeod
Sheriff
Posts: 3072
454
Android Eclipse IDE Angular Framework TypeScript Redhat MicroProfile Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like this might have been a problem with Eclipse and not Maven.  

I exported and then imported the project back in to the Eclipse workspace and everything is fine again.


Update: The problem returned after updating my project based on the pom.xml, so still broken.
 
Ron McLeod
Sheriff
Posts: 3072
454
Android Eclipse IDE Angular Framework TypeScript Redhat MicroProfile Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found my problem.  I found that the web.xml file that I had updated to reference schema version 3.1, somehow got put back to version 2.3.


Since I am not using web.xml anyway, I just removed it and added the following plug-in to my pom.xml so that there is no dependency on the web.xml file:
 
We're being followed by intergalactic spies! Quick! Take this tiny ad!
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic