{"id":21974018,"url":"https://github.com/yinonavraham/maven-101","last_synced_at":"2026-04-16T17:42:11.255Z","repository":{"id":79072058,"uuid":"147506322","full_name":"yinonavraham/maven-101","owner":"yinonavraham","description":"Maven examples, created as part of a Maven 101 session given at eBay","archived":false,"fork":false,"pushed_at":"2018-09-06T19:33:09.000Z","size":170,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T06:25:46.919Z","etag":null,"topics":["101","examples","maven"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yinonavraham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-05T11:18:41.000Z","updated_at":"2023-11-25T22:04:03.000Z","dependencies_parsed_at":"2023-07-06T20:32:31.644Z","dependency_job_id":null,"html_url":"https://github.com/yinonavraham/maven-101","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yinonavraham/maven-101","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinonavraham%2Fmaven-101","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinonavraham%2Fmaven-101/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinonavraham%2Fmaven-101/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinonavraham%2Fmaven-101/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yinonavraham","download_url":"https://codeload.github.com/yinonavraham/maven-101/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinonavraham%2Fmaven-101/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31897867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T17:33:00.867Z","status":"ssl_error","status_checked_at":"2026-04-16T17:32:57.401Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["101","examples","maven"],"created_at":"2024-11-29T15:36:55.244Z","updated_at":"2026-04-16T17:42:11.214Z","avatar_url":"https://github.com/yinonavraham.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maven 101\n\n[Maven](https://maven.apache.org/) examples, created as part of a Maven 101 session given at eBay.  \nSee: [The session's slide deck](Apache-Maven-101.pptx)\n\n## Examples\n\n* [Minimal Maven Project](minimal)\n* [Multi Module Project](multi-module)  \n  Also demonstrates: dependency scopes, dependency management, distribution management\n* [Dependency Conflict Debugging](dependency-conflict)\n\n## Useful Command Line Options\n\n* `-h, --help`  \n  Show the usage help page of the `mvn` command line tool\n* `-U, --update-snapshots`  \n  Force updating snapshots (overrides the once-a-day strategy)\n* `-D, --define \u003carg\u003e`    (e.g. `-DskipTests`)  \n  Define a system property, usually used for setting properties of plugins\n* `-fae, --fail-at-end`  \n  In multi module projects - fail only at the end of the run, after building all modules\n  (instead of right after the first module with error)\n* `-fn, --fail-never`  \n  Do not fail the build at all\n* `-pl, --projects \u003cmodule\u003e[,\u003cmodule\u003e]*`  \n  Run a command only for specific projects (modules)\n* `-P, --activate-profiles \u003cprofile\u003e[,\u003cprofile\u003e]*`  \n  Activate a maven profile (which is defined in the pom or in the settings)\n\n## Useful Plugins\n\n* [Help Plugin](#help-plugin)\n* [Dependency Plugin](#dependency-plugin)\n* [Versions Plugin](#versions-plugin)\n* [Build Helper Plugin](#build-helper-plugin)\n* Surefire \u0026 Failsafe\n\n### Help Plugin\n\nThe [Apache Maven Help Plugin](https://maven.apache.org/plugins/maven-help-plugin/) \nprovides goals aimed at helping to make sense out of the build environment. \nIt includes the ability to view the effective POM and settings files, \nafter inheritance and active profiles have been applied, \nas well as a describe a particular plugin goal to give usage information.\n\nStart with:\n\n```\nmvn help:help\n```\n\nA very helpful goal is the `help:describe`. \nIt helps you get usage help information for other plugins, commands and goals.  \nFor example, to see detailed help information on the `help:describe` goal itself, use:\n\n```\nmvn help:describe -Dplugin=help -Dgoal=describe -Ddetail\n```\n\nAnother example - to see which plugin corresponds to the `compile` build lifecycle phase, use:\n\n```\n$ mvn help:describe -Dcmd=compile\n...\n[INFO] --- maven-help-plugin:3.1.0:describe (default-cli) @ my-minimal-project ---\n[INFO] 'compile' is a phase corresponding to this plugin:\norg.apache.maven.plugins:maven-compiler-plugin:3.1:compile\n\nIt is a part of the lifecycle for the POM packaging 'jar'. This lifecycle includes the following phases:\n* validate: Not defined\n* initialize: Not defined\n...\n```\n\nIt also prints the other build lifecycle phases and their corresponding plugins (if any).\n\n### Dependency Plugin\n\nThe [Apache Maven Dependency Plugin](https://maven.apache.org/plugins/maven-dependency-plugin/)\nprovides the capability to manipulate artifacts. \nIt can copy and/or unpack artifacts from local or remote repositories to a specified location.\n\nThe most useful goal of the dependency plugin is the `dependency:tree`. \nAs its name implies, it prints the dependency tree of the project.\nA common use case is when you need to debug dependency issues.\n\nFor example, the following command prints a verbose dependency tree to a file named `dependencies.txt`:\n\n```\nmvn dependency:tree -Dverbose -DoutputFile=dependencies.txt\n```\n\n### Versions Plugin\n\nThe [Versions Maven Plugin](https://www.mojohaus.org/versions-maven-plugin/) \nis used when you want to manage the versions of artifacts in a project's POM.\nIt is very useful for automating several parts of the version management. \nIt is mostly useful in multi-module projects.\n\nFor example, a common use case is to set the version for all modules in a multi-module project. \nTo set the project's new version to `1.2.0-SNAPSHOT`, use:\n\n```\nmvn version:set -DnewVersion=1.2.0-SNAPSHOT\n```\n\n### Build Helper Plugin\n\nThe [Maven Build Helper Plugin](https://www.mojohaus.org/build-helper-maven-plugin/) \ncontains various small independent goals to assist with the Maven build lifecycle.\n\nSome very usefule tasks are:\n\n* Adding source folders\n* Adding resource folders\n* Adding test source folders\n* and more...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinonavraham%2Fmaven-101","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyinonavraham%2Fmaven-101","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinonavraham%2Fmaven-101/lists"}