{"id":18909149,"url":"https://github.com/jruby/jruby-maven-plugins","last_synced_at":"2025-04-04T16:14:32.345Z","repository":{"id":735454,"uuid":"385406","full_name":"jruby/jruby-maven-plugins","owner":"jruby","description":"maven plugin to handle rubygems in a maven way. including support for rspec, rails, cucumber, rake, etc","archived":false,"fork":false,"pushed_at":"2025-02-15T13:46:52.000Z","size":5218,"stargazers_count":113,"open_issues_count":25,"forks_count":47,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-28T15:07:56.562Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jruby.png","metadata":{"files":{"readme":"README.md","changelog":"History.txt","contributing":null,"funding":null,"license":"license.txt","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":"2009-11-25T16:14:53.000Z","updated_at":"2024-12-11T19:36:59.000Z","dependencies_parsed_at":"2022-07-14T19:17:05.952Z","dependency_job_id":"9e231a03-6ba9-4c05-900d-4fa896fa55b3","html_url":"https://github.com/jruby/jruby-maven-plugins","commit_stats":{"total_commits":1296,"total_committers":27,"mean_commits":48.0,"dds":"0.14969135802469136","last_synced_commit":"5f7cfcc540d530125338b82420f93f04cc20fc36"},"previous_names":["jruby/jruby-maven-plugins","torquebox/jruby-maven-plugins"],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-maven-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-maven-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-maven-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjruby-maven-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jruby","download_url":"https://codeload.github.com/jruby/jruby-maven-plugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208145,"owners_count":20901570,"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-11-08T09:31:18.046Z","updated_at":"2025-04-04T16:14:32.325Z","avatar_url":"https://github.com/jruby.png","language":"Java","readme":"jruby maven plugins\n===================\n\n[![Build Status](https://buildhive.cloudbees.com/job/torquebox/job/jruby-maven-plugins/badge/icon)](https://buildhive.cloudbees.com/job/torquebox/job/jruby-maven-plugins/)\n\ngem artifacts\n-------------\n\nthere is maven repository with torquebox.org which delivers gem (only ruby and java platform) from rubygems.org as gem-artifacts. adding this repository to pom.xml (or settings.xml) enables maven to use gem-artifacts like this\n\n    \u003crepositories\u003e\n      \u003crepository\u003e\n        \u003cid\u003emavengems\u003c/id\u003e\n        \u003curl\u003emavengem:https://rubygems.org\u003c/url\u003e\n      \u003c/repository\u003e\n    \u003c/repositories\u003e\n    . . .\n    \u003cdependency\u003e\n\t  \u003cgroupId\u003erubygems\u003c/groupId\u003e\n\t  \u003cartifactId\u003ecompass\u003c/artifactId\u003e\n\t  \u003cversion\u003e0.12.2\u003c/version\u003e\n\t  \u003ctype\u003egem\u003c/type\u003e\n\t\u003c/dependency\u003e\n\t\nnow maven will resolve the transient dependencies of the compass gem and downloads the artifact (includng the gem file) into the local repository.\n\nthe next question is how to use those artfacts:\n\ninstalling gems into you project directory\n------------------------------------------\n\njust add the gem-maven-plugin in your pom and execute the 'initialize'. that will install the gem artfacts and its depdencencies into 'target/rubygems'\n\n    \u003cbuild\u003e\n\t  \u003cplugins\u003e\n        \u003cplugin\u003e\n          \u003cgroupId\u003eorg.jruby.maven\u003c/groupId\u003e\n          \u003cartifactId\u003egem-maven-plugin\u003c/artifactId\u003e\n          \u003cversion\u003e${jruby.plugins.version}\u003c/version\u003e\n          \u003cexecutions\u003e\n            \u003cexecution\u003e\n              \u003cgoals\u003e\n                \u003cgoal\u003einitialize\u003c/goal\u003e\n              \u003c/goals\u003e\n            \u003c/execution\u003e\n          \u003c/executions\u003e\n        \u003c/plugin\u003e\n      \u003c/plugins\u003e\n\t\u003c/build\u003e\n\nthe will added as test-resource in way that you can use them with ScriptingContainer (from jruby) - see [src/test/java/org/example/javasass/JavaSassTest.java](https://github.com/jruby/jruby-maven-plugins/tree/master/gem-maven-plugin/src/it/include-rubygems-in-test-resources/src/test/java/org/example/javasass/JavaSassTest.java) from integration tests.\n\nexample: execute bin/compass from the compass gem\n-------------------------------------------------\n\nadd the following to you pom\n    \n    \u003cplugin\u003e\n\t  \u003cgroupId\u003eorg.jruby.maven\u003c/groupId\u003e\n\t  \u003cartifactId\u003egem-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e@project.parent.version@\u003c/version\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003eexec\u003c/goal\u003e\n          \u003c/goals\u003e\n          \u003cphase\u003ecompile\u003c/phase\u003e\n          \u003cconfiguration\u003e\n            \u003cexecArgs\u003e${project.build.directory}/rubygems/bin/compass compile ${basedir}/src/main/webapp/resources/sass\u003c/execArgs\u003e\n          \u003c/configuration\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n\nthis will execute **compass** from the compass gem during the *compile* phase. you can further isolate the gems by moving the dependency from root level into the plugin.\n\n\n    \u003cplugin\u003e\n\t  \u003cgroupId\u003eorg.jruby.maven\u003c/groupId\u003e\n\t  \u003cartifactId\u003egem-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e@project.parent.version@\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003eexec\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cphase\u003ecompile\u003c/phase\u003e\n            \u003cconfiguration\u003e\n              \u003cexecArgs\u003e${project.build.directory}/rubygems/bin/compass compile ${basedir}/src/main/webapp/resources/sass\u003c/execArgs\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n        \u003cdependencies\u003e\n          \u003cdependency\u003e\n            \u003cgroupId\u003erubygems\u003c/groupId\u003e\n            \u003cartifactId\u003ecompass\u003c/artifactId\u003e\n            \u003cversion\u003e0.12.2\u003c/version\u003e\n            \u003ctype\u003egem\u003c/type\u003e\n          \u003c/dependency\u003e\n        \u003c/dependencies\u003e\n      \u003c/plugin\u003e\n\t  \nsee also [gem-maven-plugin/src/it/execute-compass-with-gems-from-plugin](https://github.com/jruby/jruby-maven-plugins/tree/master/gem-maven-plugin/src/it/execute-compass-with-gems-from-plugin)\n\nmore examples\n-------------\n\nfor more example look into the integration test of the various plugins\n\n* [jruby-maven-plugin/src/it](https://github.com/jruby/jruby-maven-plugins/tree/master/jruby-maven-plugin/src/it)\n* [gem-maven-plugin/src/it](https://github.com/jruby/jruby-maven-plugins/tree/master/gem-maven-plugin/src/it)\n* . . .\n\nrunning the intergration tests\n------------------------------\n\n```\nmvn clean install -Pintegration-test -Pall\n```\n\n \ncontributing\n------------\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nmeta-fu\n-------\n\nenjoy :) \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjruby-maven-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjruby%2Fjruby-maven-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjruby-maven-plugins/lists"}