You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2019/07/25 07:51:00 UTC

[jira] [Commented] (MSITE-837) use an embedded http server that is light and requires just Java 7

    [ https://issues.apache.org/jira/browse/MSITE-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16892508#comment-16892508 ] 

Hervé Boutemy commented on MSITE-837:
-------------------------------------

{quote}there are many options available like [https://syntaxcorrect.com/Java/5_Ultra_Lightweight_Http_Server_Implementations_in_Java_for_Blazing_Fast_Microservices_APIs_or_Even_Websites] or any other idea
{quote}
whatever option is chosen, just print the number and the size of jars = what will give us figures to define "light"

h2. Jetty 6 = our reference until now = 3 jars for roughtly 850 kB
for Jetty 6 in maven-site-plugin, for example, looking at [https://maven.apache.org/plugins-archives/maven-site-plugin-3.7.1/dependencies.html]
 it represents 3 jars (in compile scope, we don't care about test):
{quote}org.mortbay.jetty:jetty:jar:6.1.25 (compile)
 org.mortbay.jetty:servlet-api:jar:2.5-20081211 (compile)
 org.mortbay.jetty:jetty-util:jar:6.1.25 (compile)
{quote} * jetty-6.1.25.jar 538.6 kB
 * jetty-util-6.1.25.jar 177.2 kB
 * servlet-api-2.5-20081211.jar 134.1 kB

h2. Jetty 9 = the recently updated version requiring Java 8 = 8 jars for 1 400 kB
doing the same analysis for Jetty 9
{quote}org.eclipse.jetty:jetty-server:jar:9.2.28.v20190418 (compile)
    javax.servlet:javax.servlet-api:jar:3.1.0 (compile)
    org.eclipse.jetty:jetty-http:jar:9.2.28.v20190418 (compile)
    org.eclipse.jetty:jetty-io:jar:9.2.28.v20190418 (compile)
org.eclipse.jetty:jetty-servlet:jar:9.2.28.v20190418 (compile)
    org.eclipse.jetty:jetty-security:jar:9.2.28.v20190418 (compile)
org.eclipse.jetty:jetty-webapp:jar:9.2.28.v20190418 (compile)
    org.eclipse.jetty:jetty-xml:jar:9.2.28.v20190418 (compile)
org.eclipse.jetty:jetty-util:jar:9.2.28.v20190418 (compile)
{quote} * jetty-http-9.2.28.v20190418.jar 	126.9 kB
* jetty-io-9.2.28.v20190418.jar 	108.7 kB
* jetty-security-9.2.28.v20190418.jar 	96 kB
* jetty-server-9.2.28.v20190418.jar 	421.7 kB
* jetty-servlet-9.2.28.v20190418.jar 	115.7 kB
* jetty-util-9.2.28.v20190418.jar 	387.6 kB
* jetty-webapp-9.2.28.v20190418.jar 	107.9 kB
* jetty-xml-9.2.28.v20190418.jar 	44.1 kB

h2. the new target should require Java 7 only and be 3 jars or less for 800 kB or less

> use an embedded http server that is light and requires just Java 7
> ------------------------------------------------------------------
>
>                 Key: MSITE-837
>                 URL: https://issues.apache.org/jira/browse/MSITE-837
>             Project: Maven Site Plugin
>          Issue Type: Task
>          Components: site:run
>    Affects Versions: 3.8.2
>            Reporter: Hervé Boutemy
>            Priority: Major
>              Labels: up-for-grabs
>
> With {{site:run}} it is possible to view the static content as if it was hosted on a webserver. This issue is about looking for alternative implementation to do that. It should be as simple as: map the context path to a specific folder. Now you should be able to view it on a local port via a browser.
> with Jetty upgrade for security reasons in MSITE-829 (even if security reasons could be discussed in "mvn site:run" scenario: we're not in a permanent webserver, just a developer temporary one that should be limited to localhost requests handling), Java 8 is required when our target currently is Java 7
> this is perhaps the right moment to look for a light http server that would not require Java 8: there are many options available like https://syntaxcorrect.com/Java/5_Ultra_Lightweight_Http_Server_Implementations_in_Java_for_Blazing_Fast_Microservices_APIs_or_Even_Websites or any other idea



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)