{"id":23498200,"url":"https://github.com/vpro/magnolia-jetty","last_synced_at":"2025-04-22T23:22:58.390Z","repository":{"id":46282290,"uuid":"165815613","full_name":"vpro/magnolia-jetty","owner":"vpro","description":"class loader for jetty.","archived":false,"fork":false,"pushed_at":"2022-11-22T12:16:17.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-16T15:17:08.129Z","etag":null,"topics":["magnolia-cms"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vpro.png","metadata":{"files":{"readme":"README.adoc","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}},"created_at":"2019-01-15T08:42:20.000Z","updated_at":"2021-11-05T14:43:00.000Z","dependencies_parsed_at":"2022-08-25T20:41:51.747Z","dependency_job_id":null,"html_url":"https://github.com/vpro/magnolia-jetty","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-jetty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-jetty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-jetty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-jetty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vpro","download_url":"https://codeload.github.com/vpro/magnolia-jetty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338595,"owners_count":21414213,"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":["magnolia-cms"],"created_at":"2024-12-25T05:29:00.090Z","updated_at":"2025-04-22T23:22:58.371Z","avatar_url":"https://github.com/vpro.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= magnolia-jetty\n\nimage:https://github.com/vpro/magnolia-jetty/workflows/build/badge.svg?[Build Status,link=https://github.com/vpro/magnolia-jetty/actions?query=workflow%3Abuild]\nimage:https://img.shields.io/maven-central/v/nl.vpro.magnolia/magnolia-jetty.svg?label=Maven%20Central[Maven Central,link=https://search.maven.org/search?q=g:nl.vpro.magnolia%20a:magnolia-jetty]\nimage:https://img.shields.io/nexus/s/https/oss.sonatype.org/nl.vpro.magnolia/magnolia-jetty.svg[snapshots,link=https://oss.sonatype.org/content/repositories/snapshots/nl/vpro/magnolia/magnolia-jetty/]\n\n\n\nClass loader for jetty. We use this to run magnolia via mvn jetty:run.\n\nThere is no actual dependency on magnolia, this may be generalized to something like 'jetty-classloader'\n\n\nCreate a Contex.xml for jetty with something like this:\n[source,xml]\n.Context.xml\n----\n\u003cConfigure id=\"context\" class=\"org.eclipse.jetty.webapp.WebAppContext\"\u003e\n\n  \u003cSet name=\"classLoader\"\u003e\n    \u003cNew class=\"nl.vpro.jetty.MagnoliaWebAppClassLoader\"\u003e\n      \u003cArg\u003e\n        \u003cRef id=\"context\"/\u003e\n      \u003c/Arg\u003e\n     \u003c!-- Which jars need to be touched in case some change in resources is detected.\n          Usefull when adding decorations\n      --\u003e\n      \u003cSet name=\"touchJars\"\u003e^magnolia(?!\\-lang).*$\u003c/Set\u003e\n    \u003c/New\u003e\n  \u003c/Set\u003e\n\n\u003c/Configure\u003e\n----\n\nAnd configure the jetty plugin something like so:\n[source,xml]\n.pom.xml\n----\n....\n      \u003cplugin\u003e\n        \u003cgroupId\u003eorg.eclipse.jetty\u003c/groupId\u003e\n        \u003cartifactId\u003ejetty-maven-plugin\u003c/artifactId\u003e\n        \u003cconfiguration\u003e\n          \u003csystemProperties\u003e\n          \u003c/systemProperties\u003e\n          \u003cscanIntervalSeconds\u003e0\u003c/scanIntervalSeconds\u003e\n          \u003chttpConnector\u003e\n            \u003cport\u003e${public.port}\u003c/port\u003e\n          \u003c/httpConnector\u003e\n          \u003cwebAppConfig\u003e\n            \u003ccontextPath\u003e/${public.context}\u003c/contextPath\u003e\n            \u003cdescriptor\u003e${project.build.directory}/jetty-webxmls/web-public.xml\u003c/descriptor\u003e\n          \u003c/webAppConfig\u003e\n          \u003ccontextXml\u003e${basedir}/Context.xml\u003c/contextXml\u003e\n          \u003cjettyXml\u003e${basedir}/jetty.xml,${basedir}/jetty-ssl-context.xml,${basedir}/jetty-ssl.xml\u003c/jettyXml\u003e\n        \u003c/configuration\u003e\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpro%2Fmagnolia-jetty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvpro%2Fmagnolia-jetty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpro%2Fmagnolia-jetty/lists"}