diff --git a/packages/@jsii/java-runtime-test/package.json b/packages/@jsii/java-runtime-test/package.json index 3dfc33c368..b848243a00 100644 --- a/packages/@jsii/java-runtime-test/package.json +++ b/packages/@jsii/java-runtime-test/package.json @@ -24,7 +24,7 @@ "types": "lib/index.d.ts", "scripts": { "build": "bash ./generate.sh", - "test": "node ./user.xml.t.js > ./project/user.xml && cd project && mvn -B test --settings=user.xml", + "test": "node ./user.xml.t.js > ./project/user.xml && cd project && mvn -B test --settings=user.xml -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false", "test:update": "UPDATE_DIFF=1 npm run test" }, "devDependencies": { diff --git a/packages/@jsii/java-runtime/package.json b/packages/@jsii/java-runtime/package.json index fbdad1428e..a0fbd0b12b 100644 --- a/packages/@jsii/java-runtime/package.json +++ b/packages/@jsii/java-runtime/package.json @@ -25,7 +25,7 @@ "types": "lib/index.d.ts", "scripts": { "gen": "bash ./generate.sh", - "build": "tsc --build && npm run gen && cd project && mvn -version && mvn -B deploy -D altDeploymentRepository=local::default::file://${PWD}/../maven-repo --settings=user.xml", + "build": "tsc --build && npm run gen && cd project && mvn -version && mvn -B deploy -D altDeploymentRepository=local::default::file://${PWD}/../maven-repo --settings=user.xml -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false", "dist-clean": "rm -rf dist maven-repo && cd project && mvn -B clean --settings=user.xml", "test": "echo 'Tests are run as part of the build target'", "test:update": "UPDATE_DIFF=1 npm run test",