Skip to content

Instantly share code, notes, and snippets.

@ZenLiuCN
Created March 10, 2021 06:11
Show Gist options
  • Save ZenLiuCN/b52b536e3ae0fb5b3436d1215c34068d to your computer and use it in GitHub Desktop.
Save ZenLiuCN/b52b536e3ae0fb5b3436d1215c34068d to your computer and use it in GitHub Desktop.

Common Maven Config properties

File Encode

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

<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Java Versions

<java.version>1.8</java.version>

<maven.compiler.source>1.8</maven.compiler.source>

<maven.compiler.target>1.8</maven.compiler.target>

Lifecycle

  1. skip main compile: <maven.main.skip>true</maven.main.skip>
  2. skip test compile: <maven.test.skip>true</maven.main.skip>
  3. skip install : <maven.install.skip>true</maven.install.skip>
  4. skip deploy: <maven.deploy.skip>true</maven.deploy.skip>
  5. skip source generate: <maven.source.skip>false</maven.source.skip>
  6. deploy after all module compiled: true
  7. skip resources: <maven.resources.skip>true</maven.resources.skip>
  8. skip java doc: <maven.javadoc.skip>true</maven.javadoc.skip>
  9. skip assembly: <assembly.skipAssembly>true</assembly.skipAssembly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment