{"id":26463769,"url":"https://github.com/random-maven/flatten-maven-plugin","last_synced_at":"2025-03-19T07:16:17.841Z","repository":{"id":41125162,"uuid":"112406422","full_name":"random-maven/flatten-maven-plugin","owner":"random-maven","description":"Simplify maven project descriptor for artifact deployment","archived":false,"fork":false,"pushed_at":"2022-11-16T11:37:02.000Z","size":1069,"stargazers_count":9,"open_issues_count":13,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-21T06:17:28.347Z","etag":null,"topics":["flatten","maven","plugin"],"latest_commit_sha":null,"homepage":"https://random-maven.github.io/flatten-maven-plugin/flatten-mojo.html","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/random-maven.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-29T00:42:21.000Z","updated_at":"2022-01-09T19:01:24.000Z","dependencies_parsed_at":"2022-08-24T07:20:27.969Z","dependency_job_id":null,"html_url":"https://github.com/random-maven/flatten-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/random-maven%2Fflatten-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/random-maven%2Fflatten-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/random-maven%2Fflatten-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/random-maven%2Fflatten-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/random-maven","download_url":"https://codeload.github.com/random-maven/flatten-maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244375526,"owners_count":20442689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["flatten","maven","plugin"],"created_at":"2025-03-19T07:16:17.189Z","updated_at":"2025-03-19T07:16:17.836Z","avatar_url":"https://github.com/random-maven.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### Flatten Maven Plugin\n\n[![Project License][licence_icon]][licence_link]\n[![Travis Status][travis_icon]][travis_link]\n[![Appvey Status][appvey_icon]][appvey_link]\n[![Lines of Code][tokei_basic_icon]][tokei_basic_link]\n\n|         | Production Release | Development Release |\n|---------|--------------------|---------------------|\n| \u003ch5\u003eInstall\u003c/h5\u003e | [![Central][central_icon]][central_link] | [![Bintray][bintray_icon]][bintray_link] | \n\nSimilar plugins\n* [mojohaus/flatten-maven-plugin](https://github.com/mojohaus/flatten-maven-plugin)\n\nPlugin features\n* replaces published identity\n* resolves dependency version ranges\n* excludes dependencies based on scope\n* optionally includes transitive dependencies\n* removes `pom.xml` members based on xml tag names\n* switches project `pom.xml` with generated `pom.xml.flatten`  \n\nMaven goals\n* [flatten:flatten](https://random-maven.github.io/flatten-maven-plugin/flatten-mojo.html)\n\n### Plugin demo\n\nCompare results\n* original [pom.xml](https://raw.githubusercontent.com/random-maven/flatten-maven-plugin/master/demo/pom.xml)\n* generated [pom.xml.flatten](https://raw.githubusercontent.com/random-maven/flatten-maven-plugin/master/demo/pom.xml.flatten)\n\n### Usage examples\n\nTest projects\n* basic project [it/test-1](https://github.com/random-maven/flatten-maven-plugin/blob/master/src/it/test-1/pom.xml)\n* scala identity [it/test-2](https://github.com/random-maven/flatten-maven-plugin/blob/master/src/it/test-2/pom.xml)\n\n####  `flatten:flatten` - produce deployment `pom.xml.flatten`\n\n```\nmvn clean package -P flatten\n```\n\n```xml\n        \u003cprofile\u003e\n            \u003cid\u003eflatten\u003c/id\u003e\n            \u003cbuild\u003e\n                \u003cplugins\u003e\n                    \u003cplugin\u003e\n                        \u003cgroupId\u003ecom.carrotgarden.maven\u003c/groupId\u003e\n                        \u003cartifactId\u003eflatten-maven-plugin\u003c/artifactId\u003e\n                        \u003cconfiguration\u003e\n\n                            \u003c!-- Control dependency resolution. --\u003e\n                            \u003cperformDependencyResolve\u003etrue\u003c/performDependencyResolve\u003e\n                            \u003cincludeScope\u003eruntime\u003c/includeScope\u003e\n                            \u003cexcludeTransitive\u003efalse\u003c/excludeTransitive\u003e\n\n                            \u003c!-- Remove these pom.xml members. --\u003e\n                            \u003cperformRemoveMembers\u003etrue\u003c/performRemoveMembers\u003e\n                            \u003cmemberRemoveList\u003e\n                                \u003cmember\u003eparent\u003c/member\u003e\n                                \u003cmember\u003eproperties\u003c/member\u003e\n                                \u003cmember\u003edistributionManagement\u003c/member\u003e\n                                \u003cmember\u003edependencyManagement\u003c/member\u003e\n                                \u003cmember\u003erepositories\u003c/member\u003e\n                                \u003cmember\u003epluginRepositories\u003c/member\u003e\n                                \u003cmember\u003ebuild\u003c/member\u003e\n                                \u003cmember\u003eprofiles\u003c/member\u003e\n                                \u003cmember\u003ereporting\u003c/member\u003e\n                            \u003c/memberRemoveList\u003e\n\n                            \u003c!-- Change published artifact identity. --\u003e\n                            \u003cperformOverrideIdentity\u003etrue\u003c/performOverrideIdentity\u003e\n                            \u003coverrideArtifactId\u003e${project.artifactId}\u003c/overrideArtifactId\u003e\n\n                            \u003c!-- Switch project from pom.xml to pom.xml.flatten. --\u003e\n                            \u003cperformSwitchPomXml\u003etrue\u003c/performSwitchPomXml\u003e\n                            \u003cpackagingSwitchList\u003e\n                                \u003cpackaging\u003ejar\u003c/packaging\u003e\n                            \u003c/packagingSwitchList\u003e\n\n                        \u003c/configuration\u003e\n                        \u003cexecutions\u003e\n                            \u003c!-- Activate \"flatten:flatten\" during \"prepare-package\" --\u003e\n                            \u003cexecution\u003e\n                                \u003cgoals\u003e\n                                    \u003cgoal\u003eflatten\u003c/goal\u003e\n                                \u003c/goals\u003e\n                            \u003c/execution\u003e\n                        \u003c/executions\u003e\n                    \u003c/plugin\u003e\n                \u003c/plugins\u003e\n            \u003c/build\u003e\n        \u003c/profile\u003e\n```\n\n### Build yourself\n\n```\ncd /tmp\ngit clone git@github.com:random-maven/flatten-maven-plugin.git\ncd flatten-maven-plugin\n./mvnw.sh clean install -B -P skip-test\n```\n\n[licence_icon]: https://img.shields.io/github/license/random-maven/flatten-maven-plugin.svg?label=License\n[licence_link]: http://www.apache.org/licenses/\n\n[travis_icon]: https://travis-ci.org/random-maven/flatten-maven-plugin.svg\n[travis_link]: https://travis-ci.org/random-maven/flatten-maven-plugin/builds\n\n[appvey_icon]: https://ci.appveyor.com/api/projects/status/51tica25mhpu3u3l?svg=true\n[appvey_link]: https://ci.appveyor.com/project/random-maven/flatten-maven-plugin/history \n\n[tokei_basic_icon]: https://tokei.rs/b1/github/random-maven/flatten-maven-plugin\n[tokei_basic_link]: https://github.com/random-maven/flatten-maven-plugin \n\n[central_icon]: https://maven-badges.herokuapp.com/maven-central/com.carrotgarden.maven/flatten-maven-plugin/badge.svg?style=plastic\n[central_link]: https://maven-badges.herokuapp.com/maven-central/com.carrotgarden.maven/flatten-maven-plugin\n\n[bintray_icon]: https://api.bintray.com/packages/random-maven/maven/flatten-maven-plugin/images/download.svg\n[bintray_link]: https://bintray.com/random-maven/maven/flatten-maven-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandom-maven%2Fflatten-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandom-maven%2Fflatten-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandom-maven%2Fflatten-maven-plugin/lists"}