.gitignore file for IntelliJ projects - alexandergarbuz/maven-project-utilities GitHub Wiki

This is a template implementation of the .gitignore file that will excelude the automatically generated files and IDE files from Git tracking.

# =======================================
# Maven build output
# =======================================
target/
**/target/
!**/src/main/**/target/
!**/src/test/**/target/

# Maven wrapper
!.mvn/wrapper/maven-wrapper.jar

# =======================================
# Compiled Java class files
# =======================================
*.class
**/*.class

# =======================================
# Ignore JAR, WAR, and EAR file output
# =======================================
*.war
**/*.war
*.jar
**/*.jar
*.ear
**/*.ear

# =======================================
# Backup files
# =======================================
*.bak

# =======================================
# Eclipse / STS / MyEclipse
# =======================================
.apt_generated
.classpath
.factorypath
.project
.settings/
.springBeans
.sts4-cache
**/.classpath
**/.project
**/.settings/

# =======================================
# IntelliJ IDEA
# =======================================
.idea/
**/.idea/
*.iml
*.iws
*.ipr
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/shelf/

# =======================================
# NetBeans
# =======================================
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
**/build/
!**/src/main/**/build/
!**/src/test/**/build/

# =======================================
# Visual Studio Code
# =======================================
.vscode/

# =======================================
# Terraform
# =======================================
.terraform/

# =======================================
# Environment files
# =======================================
**/.env
**/.env.*
!**/.env.template