Skip to content

Instantly share code, notes, and snippets.

@mattmccarty
Created March 8, 2017 00:40
Show Gist options
  • Save mattmccarty/104e15839f538a47ffebf05840782b80 to your computer and use it in GitHub Desktop.
Save mattmccarty/104e15839f538a47ffebf05840782b80 to your computer and use it in GitHub Desktop.
Maven Build System for Sublime Text 3
#
# Tools -> Build System -> New Build System
# Paste the snippet below in the file that opens
# Save as "Maven.sublime-build" in ~/.config/sublime-text-3/Packages/User
# Ctrl+Shift+P will show all maven commands in snippet below if you start to type "Maven"
# Open a pom.xml file and execute a command
#
{
"working_dir": "$file_path",
"shell_cmd":"mvn clean install",
"variants": [
{
"name": "mvn clean install",
"shell_cmd": "mvn clean install"
},
{
"name": "mvn full build",
"shell_cmd": "mvn -P full-build clean install"
},
{
"name": "mvn clean",
"shell_cmd": "mvn clean"
},
{
"name": "mvn skipTests",
"shell_cmd": "mvn clean install -DskipTests"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment