From 4e7507b29d68b8fc2d99667bfd35f318ac8a0de2 Mon Sep 17 00:00:00 2001 From: dzikoysk Date: Sat, 30 May 2020 02:12:07 +0200 Subject: [PATCH] GH-92 Add info about ssl bug in Java 12 --- README.md | 4 ++++ pom.xml | 7 +++++++ reposilite-backend/pom.xml | 8 +------- .../reposilite/ReposiliteHttpServer.java | 4 +++- .../panda-lang/reposilite/maven-metadata.xml | 17 +---------------- .../reposilite/maven-metadata.xml.md5 | 1 + .../reposilite/maven-metadata.xml.sha1 | 2 +- .../src/test/workspace/stats.yml | 18 ++++++++++++++++++ 8 files changed, 36 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 9f4a2ae8d..5545cf335 100644 --- a/README.md +++ b/README.md @@ -91,3 +91,7 @@ To use generated token add a new server in your `~/m2/settings.xml` {token} ``` + +#### FAQ +**Q:** Maven randomly interrupts deploy and throws socket write error
+**A:** It is a common issue on Java 12 due to the bug related to SSL. To resolve this problem, just change Java version used by Maven build, e.g. 8 or 14. \ No newline at end of file diff --git a/pom.xml b/pom.xml index e5cb0853d..47d5ff638 100644 --- a/pom.xml +++ b/pom.xml @@ -47,4 +47,11 @@ UTF-8 + + + panda-repository + https://repo.panda-lang.org/releases + + + diff --git a/reposilite-backend/pom.xml b/reposilite-backend/pom.xml index 0940e142a..f494344e5 100644 --- a/reposilite-backend/pom.xml +++ b/reposilite-backend/pom.xml @@ -22,6 +22,7 @@ 4.0.0 + reposilite-backend reposilite @@ -146,13 +147,6 @@ - - - panda-repository - https://repo.panda-lang.org/releases - - - clean install diff --git a/reposilite-backend/src/main/java/org/panda_lang/reposilite/ReposiliteHttpServer.java b/reposilite-backend/src/main/java/org/panda_lang/reposilite/ReposiliteHttpServer.java index 718dd1f37..d517b1eb6 100644 --- a/reposilite-backend/src/main/java/org/panda_lang/reposilite/ReposiliteHttpServer.java +++ b/reposilite-backend/src/main/java/org/panda_lang/reposilite/ReposiliteHttpServer.java @@ -18,6 +18,8 @@ import io.javalin.Javalin; import io.javalin.core.JavalinConfig; +import io.javalin.core.compression.Brotli; +import io.javalin.core.compression.Gzip; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.panda_lang.reposilite.api.IndexApiController; @@ -66,7 +68,7 @@ void start(Configuration configuration, Runnable onStart) { private void config(JavalinConfig config) { config.server(() -> new Server(new QueuedThreadPool(2 * Runtime.getRuntime().availableProcessors()))); config.showJavalinBanner = false; - // config.enableCorsForOrigin("http://localhost:8080/"); + config.enableCorsForOrigin("http://localhost:8080/"); } void stop() { diff --git a/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml b/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml index 5bf25243b..fdc6ecd21 100644 --- a/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml +++ b/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml @@ -1,16 +1 @@ - - +org.panda-langreposilite2.5.02.5.0202005292244302.5.02.4.02.3.4 \ No newline at end of file diff --git a/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.md5 b/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.md5 index e69de29bb..e781305e5 100644 --- a/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.md5 +++ b/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.md5 @@ -0,0 +1 @@ +d41d8cd98f00b204e9800998ecf8427e \ No newline at end of file diff --git a/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.sha1 b/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.sha1 index 6ac4dcfb2..7b5b92a77 100644 --- a/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.sha1 +++ b/reposilite-backend/src/test/workspace/repositories/releases/org/panda-lang/reposilite/maven-metadata.xml.sha1 @@ -1 +1 @@ -6c8bd5b088898788a2cd3ce3edf275b5f51905f4 \ No newline at end of file +42d4d7d48a8fd8be03ddde823b417dd126b51855 \ No newline at end of file diff --git a/reposilite-backend/src/test/workspace/stats.yml b/reposilite-backend/src/test/workspace/stats.yml index c5bad73ba..f4cb607fe 100644 --- a/reposilite-backend/src/test/workspace/stats.yml +++ b/reposilite-backend/src/test/workspace/stats.yml @@ -1,10 +1,28 @@ !!org.panda_lang.reposilite.stats.StatsEntity "records": + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0-sources.jar.md5": !!int "1" + "/releases/org/panda-lang/reposilite-parent/2.5.0/reposilite-parent-2.5.0.pom.sha1": !!int "1" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0-sources.jar": !!int "1" "/releases/brianbb/jpastebin/1.0.0/jpastebin-1.0.0.jar": !!int "4" + "/releases/org/panda-lang/reposilite/maven-metadata.xml": !!int "3" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0.jar.md5": !!int "1" "/favicon.ico": !!int "2" "/": !!int "7" + "/releases/org/panda-lang/reposilite-parent/maven-metadata.xml": !!int "3" + "/releases/org/panda-lang/reposilite-parent/2.5.0/reposilite-parent-2.5.0.pom.md5": !!int "1" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0.pom": !!int "1" "/api/x": !!int "1" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0.pom.sha1": !!int "1" + "/releases/org/panda-lang/reposilite/maven-metadata.xml.md5": !!int "1" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0.pom.md5": !!int "1" "/xd": !!int "2" + "/releases/org/panda-lang/reposilite/maven-metadata.xml.sha1": !!int "3" "/org/panda-lang/reposilite/latest": !!int "1" "/org/panda-lang/reposilite-test/x/maven-metadata.xml": !!int "1" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0.jar.sha1": !!int "1" "/org/panda-lang/reposilite/2.4.0/reposilite-2.4.0.jar": !!int "1" + "/releases/org/panda-lang/reposilite-parent/maven-metadata.xml.sha1": !!int "3" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0.jar": !!int "1" + "/releases/org/panda-lang/reposilite-parent/2.5.0/reposilite-parent-2.5.0.pom": !!int "2" + "/releases/org/panda-lang/reposilite-parent/maven-metadata.xml.md5": !!int "1" + "/releases/org/panda-lang/reposilite/2.5.0/reposilite-2.5.0-sources.jar.sha1": !!int "1"