title: The class is not abstract and does not override abstract method getParentLogger() in javax.sql.Comm onDataSource?
body: <p>I rework an old project that running under java 1.6 then it was rebuilt under the java 1.8.
  No problem is compiled and make jar using ant.
  Reworked project under maven.</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>than</p>
  
  <pre><code>mvn clean package
  </code></pre>
  
  <p>I receive an error.</p>
  
  <pre><code>ThreadLocalDataSource is not abstract and does not override abstract method getParentLogger() in javax.sql.CommonDataSource
  </code></pre>
  
  <p>ThreadLocalDataSource - my class</p>
  
  <p>Researched, that this method appeared only in jdk 1.7, but now the next question.</p>
  
  <p><strong>Why using ant (jdk 1.8) I can make a jar, and using maven (jdk 1.8) - not?</strong></p>
  
  <p>Thanks for the advice.</p>
  
  <p><strong>UPDATE</strong><br/>
  My Ant build-script:</p>
  
  <pre><code>&lt;target name="prepare" description="Create build directories." unless="build.notRequired"&gt;
          &lt;delete dir="${dist.dir}" failonerror="false" /&gt;
          &lt;mkdir dir="${dist.dir}" /&gt;
        &lt;/target&gt;
        &lt;target name="build" description="Compile Java files and copy static files."&gt;
          &lt;if&gt;
            &lt;isset property="eclipse.home"/&gt;
            &lt;then&gt;
              &lt;property name="targetPlatformLocation" value="${eclipse.home}" /&gt;
            &lt;/then&gt;
            &lt;else&gt;
              &lt;property name="targetPlatformLocation" value="D:/WebEnv/eclipse-spring" /&gt;
            &lt;/else&gt;
          &lt;/if&gt;
          &lt;getEclipseClasspath pathId="eclipse.classpath" targetPlatformLocation="${targetPlatformLocation}" workspace="${workspace}" projectName="${project.name}" /&gt;
          &lt;mkdir dir="${build.dir}" /&gt;
          &lt;javac srcdir="${src.dir}" destdir="${build.dir}" debug="true"&gt;
            &lt;include name="**/*.java" /&gt;
            &lt;classpath refid="eclipse.classpath" /&gt;
          &lt;/javac&gt;
        &lt;/target&gt;
  
        &lt;target name="build.class.jar" unless="build.notRequired"&gt;  
           &lt;if&gt;
            &lt;isset property="project.version.ebf"/&gt;
            &lt;then&gt;
              &lt;property name="metadataVersion" value="${project.version.major}.${project.version.minor}.${project.version.dev}.${project.version.ebf}" /&gt;
            &lt;/then&gt;
            &lt;else&gt;
              &lt;property name="metadataVersion" value="${project.version.major}.${project.version.minor}.${project.version.dev}" /&gt;
            &lt;/else&gt;
          &lt;/if&gt;  
  
          &lt;copy todir="${build.dir}" preservelastmodified="yes" failonerror="false"&gt;
            &lt;fileset dir="${res.dir}" includes="**/*.xml" /&gt;
          &lt;/copy&gt;
  
          &lt;tstamp /&gt;
          &lt;!-- create a jar file for distribution --&gt;
          &lt;jar destfile="${dist.dir}/${project.name}.jar"&gt;
  
            &lt;fileset refid="class.files" /&gt;
            &lt;manifest&gt;
              &lt;attribute name="Implementation-Title" value="${project.name}" /&gt;
              &lt;attribute name="Implementation-Version" value="${metadataVersion}_${DSTAMP}${TSTAMP}" /&gt;        
              &lt;attribute name="Build-By" value="${user.name}" /&gt;
            &lt;/manifest&gt;
          &lt;/jar&gt;
        &lt;/target&gt;
  
  
        &lt;target name="build.jar" depends="build, prepare, build.class.jar"&gt;
          &lt;!--&lt;jar destfile="${dist.dir}/${project.name}-src.jar" basedir="${src.dir}" includes="**/*.java" /&gt;--&gt;
  
          &lt;copy file="${src.dir}/${project.name}-Context.xml" todir="${dist.dir}" preservelastmodified="yes" failonerror="false" /&gt;
  
          &lt;copy todir="${dist.dir}" preservelastmodified="yes" failonerror="false"&gt;
            &lt;fileset dir="${src.dir}"&gt;
              &lt;include name="*.xsd" /&gt;
              &lt;include name="${project.name}*.xml" /&gt;
            &lt;/fileset&gt;
          &lt;/copy&gt;
  
  
          &lt;copy todir="${dist.dir}/web" preservelastmodified="yes" failonerror="false"&gt;
            &lt;fileset dir="${web.dir}" /&gt;
          &lt;/copy&gt;
        &lt;/target&gt;
  </code></pre>