Skip to content

Instantly share code, notes, and snippets.



Last active Aug 26, 2019
What would you like to do?
Take this and save it as pom.xml in your project directory.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi="" xsi:schemaLocation="">
<!-- none yet -->
<!-- use UTF-8 for everything -->
<!-- compile for Java 1.7 -->

This comment has been minimized.

Copy link

@asgs asgs commented Aug 22, 2015

Nice. Is there a way we can pass things like groupId, artifactId as arguments and make it even more generic? Java source and target versions can be made generic too.


This comment has been minimized.

Copy link

@estsauver estsauver commented Oct 9, 2015

This is maybe a dumb question, but if I want to use java-8 can I just bump the version in the configuration block to 1.8?


This comment has been minimized.

Copy link

@sah2ed sah2ed commented Oct 13, 2015

Yes, but keep in mind that by targeting Java 8, others who may wish to run your compiler output but only have version 1.7 of the JDK installed will not be able to do so without recompilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment