add ./mvn/ config files support #3096
Replies: 7 comments 3 replies
You can try to add to your settings.json |
Could you attach a project example, user and workspace settings.json? |
workspace settings{
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "automatic",
"java.jdt.ls.vmargs": "-Dmaven.resolver.transport=wagon -Dhttp.proxyHost=10.126.132.142 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=10.126.132.142 -Dhttps.proxyPort=3128 -Djavax.net.ssl.trustStoreType=Windows-ROOT -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable",
"java.debug.settings.vmArgs": "-Dmaven.resolver.transport=wagon -Dhttp.proxyHost=10.126.132.142 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=10.126.132.142 -Dhttps.proxyPort=3128 -Djavax.net.ssl.trustStoreType=Windows-ROOT -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable",
}user settings{
"terminal.integrated.fontFamily": "CaskaydiaCove NFM",
"terminal.integrated.fontWeight": "normal",
"terminal.integrated.fontWeightBold": "bold",
"editor.formatOnPaste": true,
"http.systemCertificates": true,
"gitlab.ignoreCertificateErrors": true,
"java.configuration.maven.userSettings": "C:/Users/scarlonr/.m2/settings.xml",
"explorer.copyRelativePathSeparator": "/",
"java.configuration.runtimes": [
{
"default": true,
"name": "JavaSE-17",
"path": "C:/Program Files/Microsoft/jdk-17.0.7.7-hotspot",
"sources": "C:/Program Files/Microsoft/jdk-17.0.7.7-hotspot/lib/src.zip"
},
{
"name": "JavaSE-11",
"path": "C:/Program Files/Microsoft/jdk-11.0.19.7-hotspot",
"sources": "C:/Program Files/Microsoft/jdk-11.0.19.7-hotspot/lib/src.zip"
},
{
"name": "JavaSE-1.8",
"path": "C:/Program Files/Eclipse Adoptium/jdk-8.0.362.9-hotspot",
"sources": "C:/Program Files/Eclipse Adoptium/jdk-8.0.362.9-hotspot/src.zip"
}
],
"grunt.autoDetect": "on",
"gulp.autoDetect": "on",
"jake.autoDetect": "on",
"redhat.telemetry.enabled": true,
"git.autofetch": true,
"git.confirmSync": false,
"apicurio.http.port": 8093,
"apicurio.tools.preview.OPENAPI": false,
"apicurio.http.host": "10.126.132.142",
"apicurio.http.path": "/",
"apicurio.tools.preview.format": false,
"http.proxySupport": "fallback",
"openapi.defaultPreviewRenderer": "swaggerui",
"openapi.approvedHostnames": [
"contractserver-micro-server-1.pro.int.srv.blablabank.com"
],
"yaml.maxItemsComputed": 10000,
"sonarlint.connectedMode.connections.sonarqube": [
{
"connectionId": "blablabla",
"serverUrl": "https://sonar-a3mson-sonars.pro.ap.intranet.cloud.blablabla.es",
"token": "9502a588f7676fcaf6ae660e6df9c2fb409554a3"
}
],
"diffEditor.ignoreTrimWhitespace": false,
"[java]": {
"editor.defaultFormatter": "redhat.java"
},
"plantuml.jar": "C:\\Users\\scarlonr\\herramientas\\plantuml-1.2023.4.jar",
"boot-java.rewrite.reconcile": true,
"cSpell.language": "en,es-ES,es",
"workbench.iconTheme": "material-icon-theme"
} |
|
sorry for the late reply $ref: https://contractserver-micro-server-1.pro.int.srv.famousbusiness.comwich is behind a proxy and maven resolves it well with my config, I need any way to add to the BUILD TASK the necesary proxies, |
|
@Cramer-0xbit Could you try to add or |
Uh oh!
There was an error while loading. Please reload this page.
greetings
I usually love to use vscode with java,
but when you are in a ofuscated enviroment like a bank there's a lot of manual configuration for each project
(vpn connections, proxies behind proxies and all that stuff)
hopefully I resolved that in maven with
.mvn/maven.configmaven configuration filesbut when I launch vscode, it gets mad with the inner building task,
even if launch inside
maven compilewith no errors it fails with thejava (build)task and i dont know how to add vmArgs settings in the build task(i know in launch.json and settings.json but both doesn't solve the problem)
but even if I solve i think it could be great to the build task to add support to the maven configuration files to
make the config more out of the box
thanks for reading
All reactions