Skip to content

Commit

Permalink
GH-92 Add info about ssl bug in Java 12
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed May 30, 2020
1 parent 630fd57 commit 4e7507b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 25 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ To use generated token add a new server in your `~/m2/settings.xml`
<password>{token}</password>
</server>
```

#### FAQ
**Q:** Maven randomly interrupts deploy and throws socket write error <br>
**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.
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,11 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<distributionManagement>
<repository>
<id>panda-repository</id>
<url>https://repo.panda-lang.org/releases</url>
</repository>
</distributionManagement>

</project>
8 changes: 1 addition & 7 deletions reposilite-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<name>reposilite-backend</name>
<artifactId>reposilite</artifactId>

<properties>
Expand Down Expand Up @@ -146,13 +147,6 @@
</repository>
</repositories>

<distributionManagement>
<repository>
<id>panda-repository</id>
<url>https://repo.panda-lang.org/releases</url>
</repository>
</distributionManagement>

<build>
<defaultGoal>clean install</defaultGoal>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
<!--
~ Copyright (c) 2020 Dzikoysk
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<metadata><groupId>org.panda-lang</groupId><artifactId>reposilite</artifactId><versioning><release>2.5.0</release><latest>2.5.0</latest><lastUpdated>20200529224430</lastUpdated><versions><version>2.5.0</version><version>2.4.0</version><version>2.3.4</version></versions></versioning></metadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d41d8cd98f00b204e9800998ecf8427e
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6c8bd5b088898788a2cd3ce3edf275b5f51905f4
42d4d7d48a8fd8be03ddde823b417dd126b51855
18 changes: 18 additions & 0 deletions reposilite-backend/src/test/workspace/stats.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4e7507b

Please sign in to comment.