{"id":16652160,"url":"https://github.com/jdcasey/build-migration-maven-plugin","last_synced_at":"2025-07-21T12:39:30.660Z","repository":{"id":3156723,"uuid":"4187029","full_name":"jdcasey/build-migration-maven-plugin","owner":"jdcasey","description":"Maven plugin to aid in migration from other build systems","archived":false,"fork":false,"pushed_at":"2016-05-25T21:11:10.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T10:49:02.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdcasey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-2.0.html","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-30T21:15:03.000Z","updated_at":"2016-09-21T20:10:00.000Z","dependencies_parsed_at":"2022-08-24T17:51:28.163Z","dependency_job_id":null,"html_url":"https://github.com/jdcasey/build-migration-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jdcasey/build-migration-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fbuild-migration-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fbuild-migration-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fbuild-migration-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fbuild-migration-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdcasey","download_url":"https://codeload.github.com/jdcasey/build-migration-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fbuild-migration-maven-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266303647,"owners_count":23908373,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-12T09:27:49.768Z","updated_at":"2025-07-21T12:39:30.636Z","avatar_url":"https://github.com/jdcasey.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Build Migration Maven Plugin\n============================\n\nThis plugin is meant to be a small collection of helpers to smooth the migration path from another build system, like Ant, to Maven. The plugins will probably all be very simple, yet they will address use cases that are currently not supported by any plugin, or are excessively complicated to configure.\n\nThe `main-artifact` Goal\n------------------------\n\nThe `main-artifact` goal can set the file of the project's main artifact and main pom file. It can also attach auxillary artifacts to be deployed (in the same way as the build-helper-maven-plugin)\n\n| Parameters | Type | Required | Description |\n| ---------- | ---- | -------- | ----------- |\n| mainArtifact | String | No | File path to the new main artifact to deploy |\n| mainPom | String | No | File path to the replacement main pom to deploy |\n| artifacts | Artifact[] | No | Attach an array of artifacts to the project |\n\nThis can be useful if you're wrapping another build system's output with Maven pom.xml files, and need to get Maven to recognize the build output for purposes of installation or deployment. Its use is very simple:\n\n    \u003cproject\u003e\n      [...]\n      \u003cbuild\u003e\n        \u003cplugins\u003e\n          \u003cplugin\u003e\n            \u003cartifactId\u003emaven-antrun-plugin\u003c/artifactId\u003e\n            \u003cexecutions\u003e\n              \u003cexecution\u003e\n                \u003cid\u003ebuild-ant\u003c/id\u003e\n                \u003cgoals\u003e\n                  \u003cgoal\u003erun\u003c/goal\u003e\n                \u003c/goals\u003e\n                \u003cconfiguration\u003e\n                  \u003ctarget\u003e\n                      \u003cant antfile=\"build.xml\" inheritAll=\"true\" inheritRefs=\"true\" target=\"all\"/\u003e\n                  \u003c/target\u003e\n                \u003c/configuration\u003e\n              \u003c/execution\u003e\n            \u003c/executions\u003e\n          \u003c/plugin\u003e\n\n          \u003cplugin\u003e\n            \u003cgroupId\u003eorg.commonjava.maven.plugins\u003c/groupId\u003e\n            \u003cartifactId\u003ebuild-migration-maven-plugin\u003c/artifactId\u003e\n            \u003cversion\u003e0.4\u003c/version\u003e\n            \u003cexecutions\u003e\n              \u003cexecution\u003e\n                \u003cid\u003emain-artifact\u003c/id\u003e\n                \u003cgoals\u003e\n                  \u003cgoal\u003emain-artifact\u003c/goal\u003e\n                \u003c/goals\u003e\n                \u003cconfiguration\u003e\n                  \u003cmainArtifact\u003ebuild/project-1.1.jar\u003c/mainArtifact\u003e\n                  \u003cmainPom\u003eresources/myproject.pom\u003c/mainPom\u003e\n                  \u003cartifacts\u003e\n                    \u003cartifact\u003e\n                      \u003cfile\u003emyproject-sources.jar\u003c/file\u003e\n                      \u003ctype\u003ejar\u003c/type\u003e\n                      \u003cclassifier\u003esources\u003c/classifier\u003e\n                    \u003c/artifact\u003e\n                  \u003c/artifacts\u003e\n                \u003c/configuration\u003e\n              \u003c/execution\u003e\n            \u003c/executions\u003e\n          \u003c/plugin\u003e\n        \u003c/plugins\u003e\n      \u003c/build\u003e\n    \u003c/project\u003e\n\nBy default, the `main-artifact` goal will run in the `package` phase, which means it will normally run after the `jar:jar` goal has run. If you want to disable the `jar:jar` goal, one way to do that is with something like the following:\n\n    \u003cplugin\u003e\n      \u003cartifactId\u003emaven-jar-plugin\u003c/artifactId\u003e\n      \u003cconfiguration\u003e\n        \u003cexcludes\u003e\n          \u003cexclude\u003e**/*\u003c/exclude\u003e\n        \u003c/excludes\u003e\n        \u003cskipIfEmpty\u003etrue\u003c/skipIfEmpty\u003e\n      \u003c/configuration\u003e\n    \u003c/plugin\u003e\n\nThis tells the jar plugin to skip all classes, and then skip building the jar (since it would be empty).\n\nAnother way would be to bind the maven-jar-plugin to a disabled phase:\n\n    \u003cplugin\u003e\n      \u003cartifactId\u003emaven-jar-plugin\u003c/artifactId\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cid\u003edefault-jar\u003c/id\u003e\n          \u003cphase\u003eDISABLED\u003c/phase\u003e\n         \u003c/execution\u003e\n       \u003c/executions\u003e\n     \u003c/plugin\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdcasey%2Fbuild-migration-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdcasey%2Fbuild-migration-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdcasey%2Fbuild-migration-maven-plugin/lists"}