<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId><%= group_id %></groupId>
  <artifactId><%= artifact_id %></artifactId>
  <version><%= version %></version>
  <name><%= artifact_id %></name>
  <% if type != 'jar' %><packaging><%= type %></packaging><% end %>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
<% dependencies.each do |d| if d %><%= render('_dependency.xml.erb', d) %><% end;
 end %>  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.7.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId><%= group_id %></groupId>
  <artifactId><%= artifact_id %></artifactId>
  <version><%= version %></version>
  <name><%= artifact_id %></name>
  <% if type != 'jar' %><packaging><%= type %></packaging><% end %>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
<% dependencies.each do |d| if d %><%= render('_dependency.xml.erb', d) %><% end;
 end %>  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

Upgrade compiler plugin to 3.8.0
Upgrade compiler plugin to 3.8.0
