From f1f6c7931ce83f79a4f643e6dc6baab7f67b8342 Mon Sep 17 00:00:00 2001 From: shuang Date: Fri, 15 Nov 2019 20:19:00 +0800 Subject: [PATCH] bugfix/OutOfMemoryError: fix scala-maven-plugin seeings --- .gitignore | 1 + README.md | 2 +- mvn.sh | 7 ---- obp-api/pom.xml | 44 ------------------------ obp-commons/pom.xml | 32 ------------------ pom.xml | 82 ++++++++++++++++++++------------------------- 6 files changed, 38 insertions(+), 130 deletions(-) delete mode 100755 mvn.sh diff --git a/.gitignore b/.gitignore index c20e5484a..da150d3c0 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ obp-api/src/main/scripts/kafka/kafka_* obp-api/src/main/scripts/kafka/logs/ obp-api/src/main/scripts/kafka/tmp/ /obp-commons/src/main/resources/git.properties +/obp-api2/ diff --git a/README.md b/README.md index 9253f893a..977b88ec1 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ The project uses Maven 3 as its build tool. To compile and run jetty, install Maven 3, create your configuration in obp-api/src/main/resources/props/default.props and execute: - ./mvn.sh install -pl .,obp-commons && ./mvn.sh jetty:run -pl obp-api + mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api ## To run with IntelliJ IDEA diff --git a/mvn.sh b/mvn.sh deleted file mode 100755 index 43d8864e7..000000000 --- a/mvn.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Deprecated option -XX:MaxPermSize=256m is kept -# just in case someone still uses java 1.7 -export MAVEN_OPTS="-Xmx1024m -Xms1024m -Xss2048k -XX:MaxPermSize=1024m" - -mvn $1 $2 $3 $4 diff --git a/obp-api/pom.xml b/obp-api/pom.xml index 45a16cea0..f9606ede3 100644 --- a/obp-api/pom.xml +++ b/obp-api/pom.xml @@ -470,39 +470,6 @@ net.alchim31.maven scala-maven-plugin - - ${project.build.sourceEncoding} - - -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties - - ${scala.compiler} - ${scala.version} - incremental - true - - - - - compile - testCompile - - - - -dependencyfile - ${project.build.directory}/.scala_dependencies - -Xmax-classfile-name - 78 - - - - - scala-test-compile - process-test-resources - - testCompile - - - org.apache.maven.plugins @@ -559,7 +526,6 @@ / 5 - -Xmx512m -Xms512m @@ -642,16 +608,6 @@ net.alchim31.maven scala-maven-plugin - - ${project.build.sourceEncoding} - - -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties - - ${scala.version} - ${scala.compiler} - incremental - true - diff --git a/obp-commons/pom.xml b/obp-commons/pom.xml index d629bbfe3..ab268820e 100644 --- a/obp-commons/pom.xml +++ b/obp-commons/pom.xml @@ -60,38 +60,6 @@ net.alchim31.maven scala-maven-plugin - - ${project.build.sourceEncoding} - - -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties - - ${scala.compiler} - ${scala.version} - incremental - true - - - com.artima.supersafe - supersafe_${scala.compiler} - 1.1.8 - - - - - - - compile - - - - -dependencyfile - ${project.build.directory}/.scala_dependencies - -Xmax-classfile-name - 78 - - - - diff --git a/pom.xml b/pom.xml index c78f93e88..56a2bde98 100644 --- a/pom.xml +++ b/pom.xml @@ -15,8 +15,8 @@ 2.5.19 0.22 1.1.0 - 1.8.3 - 3.3.0 + 1.8.2 + 3.4.0 9.4.12.v20180830 2.6.2 2016.11-RC6-SNAPSHOT @@ -107,7 +107,40 @@ net.alchim31.maven scala-maven-plugin - 4.2.4 + 4.3.0 + + ${scala.compiler} + ${project.build.sourceEncoding} + true + + -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties + -Xms64m + -Xmx1024m + + + -unchecked + -explaintypes + + + + + + + compile + testCompile + + + + scala-test-compile + process-test-resources + + testCompile + + + org.scalatest @@ -128,39 +161,6 @@ net.alchim31.maven scala-maven-plugin - - ${project.build.sourceEncoding} - - -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties - - ${scala.compiler} - ${scala.version} - incremental - true - - - - - compile - testCompile - - - - -dependencyfile - ${project.build.directory}/.scala_dependencies - -Xmax-classfile-name - 78 - - - - - scala-test-compile - process-test-resources - - testCompile - - - org.apache.maven.plugins @@ -245,16 +245,6 @@ net.alchim31.maven scala-maven-plugin - - ${project.build.sourceEncoding} - - -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties - - ${scala.version} - ${scala.compiler} - incremental - true -