title: how to downgrade spring boot project?
body: <p>I have a spring boot project build on 2.1.0.RELEASE.
  I want to run this project on Weblogic server which is running on a java1.7 version.
  I tried to change the java version in my pom.xml to 
  <strong>1.7</strong> 
  but it didn't work.</p>
  
  <p>when I create an executable jar from my project it still showing build_jdk as 1.8 so I decided to switch to spring boots older version 1.4.0 expecting it to run on Java 7. However, when I build my project again I don't see any change in the manifest file of the generated jar. It is still showing spring boot version as 2.1.0.RELEASE.</p>
  
  <p>can anyone suggest regarding one of the 2 things?</p>
  
  <ol>
  <li>Build project with spring boot 2.1.0 and Java version 7</li>
  <li>Downgrade spring boot to 1.4.0 and build with java 7</li>
  </ol>
  
  <p>here is my pom.xml</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
      &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
          http://maven.apache.org/xsd/maven-4.0.0.xsd" 
          xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
        &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
            &lt;parent&gt;
              &lt;groupId&gt;parent-XYZ-package&lt;/groupId&gt;
              &lt;artifactId&gt;parent-XYZ-project&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
            &lt;/parent&gt;
  
        &lt;artifactId&gt;myProject&lt;/artifactId&gt;
  
        &lt;name&gt;myProject&lt;/name&gt;
        &lt;url&gt;http://maven.apache.org&lt;/url&gt;
        &lt;properties&gt;
          &lt;java.version&gt;1.7&lt;/java.version&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;/properties&gt;
  
        &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt; 
                  &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;repackage&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;classifier&gt;exec&lt;/classifier&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;            
                  &lt;configuration&gt; 
                    &lt;archive&gt; 
                      &lt;mainClass&gt;MyMainClass&lt;/mainClass&gt;
                    &lt;/archive&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
        &lt;/build&gt;
  
        &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;3.8.1&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          **&lt;dependency&gt;
              &lt;groupId&gt;DependentUserProjec&lt;/groupId&gt;
              &lt;artifactId&gt;DependentUserProject&lt;/artifactId&gt;
              &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;/dependency&gt;**
  
          &lt;dependency&gt;
              &lt;groupId&gt;weblogic&lt;/groupId&gt;
              &lt;artifactId&gt;wlfullclient&lt;/artifactId&gt;
              &lt;version&gt;12.1.2.0.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;commons-logging&lt;/groupId&gt;
              &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
            &lt;!-- https://mvnrepository.com/artifact/commons-io/commons-io --&gt;
            &lt;dependency&gt;
                &lt;groupId&gt;commons-io&lt;/groupId&gt;
                &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
                &lt;version&gt;2.4&lt;/version&gt;
            &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;2.8.2&lt;/version&gt;
          &lt;/dependency&gt;
  
  
            &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
             &lt;/dependency&gt;
  
        &lt;/dependencies&gt;
  
  
        &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                 &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
                  &lt;version&gt;1.4.0.RELEASE&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
          &lt;/dependencyManagement&gt;
      &lt;/project&gt;
  </code></pre>
  
  <p>one more thing to note that I already have a parent pom in my pom.xml
  Hence I am specifying my springboot parent dependency through  tag.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Which ever springboot version I specify in pom.xml its always building my project with Springboot <strong>2.1.1.RELEASE</strong></p>
  
  <p>Below is the snapshot from my menifest file generated</p>
  
  <pre><code>Manifest-Version: 1.0
  Archiver-Version: Plexus Archiver
  Built-By: SID    
  Start-Class: myMainClass  **This line is I have edited just to post on this site**
  Spring-Boot-Classes: BOOT-INF/classes/
  Spring-Boot-Lib: BOOT-INF/lib/
  Spring-Boot-Version: 2.1.1.RELEASE
  Created-By: Apache Maven 3.5.3
  Build-Jdk: 1.8.0_181
  Main-Class: org.springframework.boot.loader.JarLauncher
  </code></pre>