[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-573357-105":3,"detail-sidebar-cat-1-en-105":80,"doc-detail-573357-en":126},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","all-cheat-sheets-maven-git-java-collections","All Cheat Sheets - Maven & Git & Java Collections","","Quick-reference cheat sheets covering Maven build essentials, useful command-line options, and commonly used Maven plugins, including compiler configuration and dependency analysis. Includes a Git cheat sheet with core workflows for repository creation, status/diff viewing, commit inspection, and branching operations like checkout, merge, tagging, staging, reset, fetch/pull, and push. Also lists notable Java collections libraries such as Fastutil and Guava, with brief usage-oriented descriptions.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/presentations/","Presentations",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/all-cheat-sheets-maven-git-java-collections/573357/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/all-cheat-sheets-maven-git-java-collections/573357.png","ImageObject",442,249,{"name":42,"@type":43},"Himbo","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-18","2026-10-14",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What are the main Maven lifecycle phases listed in the cheat sheet?","Question",{"text":62,"@type":63},"The cheat sheet lists clean, validate, compile, test, package, verify, install, and deploy, describing what each phase does.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Which Maven command-line options are provided for skipping tests and speeding up builds?",{"text":67,"@type":63},"It includes -DskipTests=true to skip running tests and -T (e.g., -T 4, -T 2C) to use multiple threads for parallel builds.",{"name":69,"@type":60,"acceptedAnswer":70},"What core Git commands are included for repository setup and reviewing changes?",{"text":71,"@type":63},"It provides git init, git clone, git status, git diff, git diff --cached, and git log, plus commands like git blame and git show for deeper inspection.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},573357,1792014490,{"code":4,"msg":81,"data":82},"success",[83,87,92,97,102,107,112,117,122],{"id":84,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":85,"slug":86},11,90,"presentations",{"id":88,"doc_module":22,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},12,"Resumes",80,"resumes",{"id":93,"doc_module":22,"doc_module_name":25,"category_name":94,"show_sort_weight":95,"slug":96},14,"Invoices",70,"invoices",{"id":98,"doc_module":22,"doc_module_name":25,"category_name":99,"show_sort_weight":100,"slug":101},15,"Posters",60,"posters",{"id":103,"doc_module":22,"doc_module_name":25,"category_name":104,"show_sort_weight":105,"slug":106},16,"Social Media",50,"social-media",{"id":108,"doc_module":22,"doc_module_name":25,"category_name":109,"show_sort_weight":110,"slug":111},17,"Forms",40,"forms",{"id":113,"doc_module":22,"doc_module_name":25,"category_name":114,"show_sort_weight":115,"slug":116},18,"Letters",30,"letters",{"id":118,"doc_module":22,"doc_module_name":25,"category_name":119,"show_sort_weight":120,"slug":121},21,"Paper Templates",5,"papers-templates",{"id":123,"doc_module":22,"doc_module_name":25,"category_name":124,"show_sort_weight":4,"slug":125},158,"General","general-158",{"code":4,"msg":81,"data":127},{"doc_id":78,"user_id":128,"nickname":42,"user_avatar":129,"doc_module":22,"category_id":84,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":88,"language":135,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":12,"update_tm":139,"read_time":33},687197100911,"https://ap-avatar.wpscdn.com/avatar/a000239b6f1da00475?x-image-process=image/resize,m_fixed,w_180,h_180&k=1785132997149421697","# cheat sheet\n\nFor  \nmore awesome cheat sheetsvisit rebellabs.org!  \n| Getting started with Maven  \u003Cbr>Create Java project  \u003Cbr>mvn archetype:generate  \u003Cbr>-DgroupId=org.yourcompany.project  \u003Cbr>-DartifactId=application  \u003Cbr>Create web project  \u003Cbr>mvn archetype:generate  \u003Cbr>-DgroupId=org.yourcompany.project  \u003Cbr>-DartifactId=application  \u003Cbr>-DarchetypeArtifactId=maven-archetype-webapp  \u003Cbr>Create archetype from existing project  \u003Cbr>mvn archetype:create-from-project  \u003Cbr>Main phases  \u003Cbr>clean — delete target directory  \u003Cbr>validate — validate, if the project is correctcompile — compile source code, classes storedin target/classes  \u003Cbr>test — run tests  \u003Cbr>package — take the compiled code and package it in itsdistributable format, e.g. JAR, WAR  \u003Cbr>verify — run any checks to verify the package is validand meets quality criteria  \u003Cbr>install — install the package into the local repositorydeploy — copies the final package to the remote repository   | Useful command line options  \u003Cbr>-DskipTests=true compiles the tests, but skipsrunning them  \u003Cbr>-Dmaven . test . skip=true skips compiling the testsand does not run them  \u003Cbr>-T - number of threads:  \u003Cbr>-T 4 is a decent default  \u003Cbr>-T 2C - 2 threads per CPU  \u003Cbr>-rf, --resume-from resume build from thespecified project  \u003Cbr>-pl, --projects makes Maven build only specifiedmodulesand not the whole project  \u003Cbr>-am, --also-make makes Maven figure out whatmodules out target depends on and build them too  \u003Cbr>-o, --offline work offline  \u003Cbr>-X, --debug enable debug output  \u003Cbr>-P, --activate-profiles comma-delimited listof profiles to activate  \u003Cbr>-U, --update-snapshots forces a check for updateddependencies on remote repositories  \u003Cbr>-ff, --fail-fast stop at first failure   |\n| --- | --- |\n\n\n| | \u003Cbr>Local Repository  \u003Cbr>~/.m2/settings.xml  \u003Cbr>\u003Cbr>\u003Cbr>     Plugins  \u003Cbr>Central  Dependencies   | | \u003Cbr>\u003Cbr>compile  \u003Cbr>\u003Cbr>\u003Cbr>test  \u003Cbr>\u003Cbr>\u003Cbr>package   | \u003Cbr>\u003Cbr>maven-compiler-plugin  \u003Cbr>\u003Cbr>\u003Cbr>\u003Cbr>\u003Cbr>\u003Cbr>maven-jar-plugin   | \u003Cbr>\u003Cbr>| \u003Cbr>\u003Cbr>compiler:compile  \u003Cbr>\u003Cbr>\u003Cbr>\u003Cbr>\u003Cbr>\u003Cbr>jar:jar   |\n| --- | --- | --- | --- | --- | --- | --- |\n\n## Essential plugins\n\nHelp plugin — used to get relative information about aproject or the system.  \nmvn help:describe describes the attributesof a pluginmvn help:effective-pom displays the effective POMas an XML forthe current build, with the active profilesfactored in.  \nDependency plugin — provides the capability tomanipulate artifacts.  \nmvn dependency:analyze analyzes the dependenciesof this project  \nmvn dependency:tree prints a tree of dependencies  \nCompiler plugin — compiles your java code.  \nSet language level with the following configuration:  \n### \u003Cplugin>\n\n\u003CgroupId>org.apache.maven.plugins\u003C/groupId>  \n\u003CartifactId>maven-compiler-plugin\u003C/artifactId>  \n\u003Cversion>3 .6 . 1\u003C/version>  \n\u003Cconfiguration>\u003Csource>1 . 8\u003C/source>\u003Ctarget>1 . 8\u003C/target>  \n\u003C/configuration>  \n### \u003C/plugin> \n\nVersion plugin — used when you want to managethe versions of artifacts in a project's POM.  \nWrapper plugin — an easy way to ensurea user of your Maven build has everythingthat is necessary.  \nSpring Boot plugin — compiles yourSpring Boot app, build an executable fat jar.  \nExec — amazing general purpose plugin,can run arbitrary commands :)  \n##   Git Cheat Sheet\n\n### Create a Repository\n\nFrom scratch -- Create a new localrepository  \n$ git init [project name]  \nDownload from an existing repository  \n$ git clone my_url  \n### Observe your Repository\n\nList new or modified files not yetcommitted  \n$ git status  \nShow the changes to files not yet staged  \n$ git diff  \nShow the changes to staged files  \n$ git diff --cached  \nShow all staged and unstagedfile changes  \n$ git diff HEAD  \nShow the changes between twocommit ids  \n$ git diff commit1 commit2  \nList the change dates and authorsfor a file  \n$ git blame [file]  \nShow the file changes for a commitid and/or file  \n$ git show [commit]:[file]  \nShow full change history  \n$ git log  \nShow change history for","cbCaigaiXcBodEs2","https://ap.wps.com/l/cbCaigaiXcBodEs2","pdf",2500649,"English","# Cheat Sheets\n## Getting Started with Maven\n## Useful Command Line Options\n## Essential Plugins\n## Git Cheat Sheet\n### Create a Repository\n### Observe your Repository\n### Working with Branches\n### Make a Change\n### Synchronize\n## Java Collections Cheat Sheet\n### Notable Java collection libraries","[{\"question\":\"What are the main Maven lifecycle phases listed in the cheat sheet?\",\"answer\":\"The cheat sheet lists clean, validate, compile, test, package, verify, install, and deploy, describing what each phase does.\"},{\"question\":\"Which Maven command-line options are provided for skipping tests and speeding up builds?\",\"answer\":\"It includes -DskipTests=true to skip running tests and -T (e.g., -T 4, -T 2C) to use multiple threads for parallel builds.\"},{\"question\":\"What core Git commands are included for repository setup and reviewing changes?\",\"answer\":\"It provides git init, git clone, git status, git diff, git diff --cached, and git log, plus commands like git blame and git show for deeper inspection.\"}]","All Cheat Sheets - Maven & Git & Java Collections | PDF",1791937856]