Using Retrotranslator to Generate Deploy and Install 1.4-Compatible Jars

In your pom.xml, include the following:

<build>
  <plugins>
...
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
        <artifactId>retrotranslator-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>translate-project</goal>
            </goals>
            <configuration>
              <classifier>jdk14</classifier>
              <attach>true</attach>
            </configuration>
          </execution>
        </executions>
      </plugin>
...
  </plugins>
</build>

The attach parameter attaches the new retrotranslated artifact to be included in install and deploy operations.

More information can be found at the Retrotranslator Maven Plugin page

It's only fair to share...
Share on FacebookGoogle+Tweet about this on TwitterShare on LinkedIn

Leave a Reply