Skip to content

Instantly share code, notes, and snippets.

@binario200
Created January 24, 2018 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binario200/6f82a9ba5ce7ee81d95f34d22bef365d to your computer and use it in GitHub Desktop.
Save binario200/6f82a9ba5ce7ee81d95f34d22bef365d to your computer and use it in GitHub Desktop.
Maven recipes

https://maven.apache.org/guides/getting-started/

to create a maven project

mvn -B archetype:generate \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DgroupId=com.mycompany.app \
  -DartifactId=my-app
  • there is an issue where trying to compile, fix it adding this to the pom.xml
  <properties>
    <maven.compiler.source>1.6</maven.compiler.source>
    <maven.compiler.target>1.6</maven.compiler.target>
  </properties>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment