title: Maven Dependencies of an incorrect version
body: <p>I am trying to run my Maven project using Java JDK 1.7</p>
  <p>Whenever I run my project (as a Maven project) (created under Java JDK 1.7) I get an error:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: com/google/common/collect/ImmutableSet : Unsupported major.minor version 52.0
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:425)
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
      at com.google.inject.internal.Errors.&lt;clinit&gt;(Errors.java:105)
      at com.google.inject.internal.InternalInjectorCreator.&lt;init&gt;(InternalInjectorCreator.java:61)
      at com.google.inject.Guice.createInjector(Guice.java:87)
      at com.google.inject.Guice.createInjector(Guice.java:69)
      at com.google.inject.Guice.createInjector(Guice.java:59)
      at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)
      at org.codehaus.plexus.DefaultPlexusContainer.&lt;init&gt;(DefaultPlexusContainer.java:206)
      at org.apache.maven.cli.MavenCli.container(MavenCli.java:636)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:282)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
  </code></pre>
  <p>Note that it is not user generated files which are out of date.</p>
  <p><strong>POM File</strong></p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;EndUsersServ&lt;/groupId&gt;
    &lt;artifactId&gt;EndUsersService&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
      &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;maven.compiler.source&gt;7&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;7&lt;/maven.compiler.target&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
        &lt;!-- https://mvnrepository.com/artifact/com.sun.xml.ws/jaxws-rt --&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
          &lt;artifactId&gt;jaxws-rt&lt;/artifactId&gt;
          &lt;version&gt;2.2.6&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;com.sun.org.apache.xml.internal&lt;/groupId&gt;
          &lt;artifactId&gt;resolver&lt;/artifactId&gt;
          &lt;version&gt;20050927&lt;/version&gt;
        &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.2.3&lt;/version&gt;
          &lt;configuration&gt;
            &lt;warSourceDirectory&gt;WebContent&lt;/warSourceDirectory&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
      
  &lt;/project&gt;
  </code></pre>
  <p>I believe one or more of the maven plugins are for version 8 of Java but I am not sure which, and even if they the plugins are featured in the pom file. Do I need to completely reinstall my IDE?</p>
  <p>Any help appreciated.</p>
  <p><strong>Project Facets</strong></p>
  <p><a href="https://i.stack.imgur.com/jIwOI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jIwOI.png" alt="enter image description here" /></a></p>