{"id":15349371,"url":"https://github.com/gastaldi/shrinkwrap-extensions","last_synced_at":"2026-03-07T19:30:20.654Z","repository":{"id":140639473,"uuid":"72467077","full_name":"gastaldi/shrinkwrap-extensions","owner":"gastaldi","description":"A ShrinkWrap archive implementation for Maven projects","archived":false,"fork":false,"pushed_at":"2016-11-08T20:47:01.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-31T13:14:05.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/gastaldi.png","metadata":{"files":{"readme":"README.asciidoc","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-31T18:40:48.000Z","updated_at":"2016-11-08T20:47:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7cb3ce5-84b4-43b5-8f7b-13f761933fdb","html_url":"https://github.com/gastaldi/shrinkwrap-extensions","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"0aab2d704184561ffd1f65f6340ede1a955fa886"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastaldi%2Fshrinkwrap-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastaldi%2Fshrinkwrap-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastaldi%2Fshrinkwrap-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gastaldi%2Fshrinkwrap-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gastaldi","download_url":"https://codeload.github.com/gastaldi/shrinkwrap-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239898456,"owners_count":19715212,"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":[],"created_at":"2024-10-01T11:54:29.415Z","updated_at":"2026-03-07T19:30:20.489Z","avatar_url":"https://github.com/gastaldi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"ShrinkWrap Maven Project\n========================\n\nThis shrinkwrap implementation allows you to model a Maven project including its sources as a ShrinkWrap archive. It uses https://github.com/forge/roaster[Roaster] and the Apache Maven Model API.\n\n\n== Usage Example\n\n[source,java]\n----\n// This would create an Archive representation of the project\nMavenProjectArchive archive = ShrinkWrap.create(MavenProjectArchive.class);\n\n// Set the pom.xml using a org.apache.maven.model.Model instance\nModel model = new Model();\nmodel.setGroupId(\"org.example\");\nmodel.setArtifactId(\"foo\");\nmodel.setVersion(\"1.0.0-SNAPSHOT\");\narchive.setPom(mavenModel);\n\n// Add a class to src/main/java\narchive.add(Roaster.create(JavaClassSource.class).setName(\"Foo\").setPackage(\"com.example.demo\"));\n\n// Add a class to src/test/java\nMavenTestProjectArchive testArchive = archive.as(MavenTestProjectArchive.class);\ntestArchive.add(Roaster.create(JavaClassSource.class).setName(\"FooTest\").setPackage(\"com.example.demo\"));\n\n// We can export this to a ZIP file\narchive.as(ZipExporter.class).exportTo(new File(\"project.zip\"), true);\n\n// Or we can explode in a specified location\narchive.as(ExplodedExporter.class).exportExplodedInto(new File(\"/tmp/demo\")); \n---- \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgastaldi%2Fshrinkwrap-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgastaldi%2Fshrinkwrap-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgastaldi%2Fshrinkwrap-extensions/lists"}