question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mvnw can't run on Windows

See original GitHub issue

Hi,when i build the project using mvnw ,get the error following: image

Couldn't` find "G:\JDYUN\eclipse-jdt-ls\.mvn\wrapper\maven-wrapper.jar", downloading it ...
Downloading from: "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.0/maven-wrapper-0.4.0.jar"
Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."
At line:1 char:1
+ (New-Object Net.WebClient).DownloadFile('https://repo.maven.apache.or ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Finished downloading "G:\JDYUN\eclipse-jdt-ls\.mvn\wrapper\maven-wrapper.jar"
Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
humbertocgcommented, Nov 13, 2020

Hi, i’m still getting this error on windows 10. everything is updated.

0reactions
dbnex14commented, Jun 7, 2021

I am having the very same problem in 2021, VSC 1.56.2 on Windows 10. Could this have to do something with being behind a proxy?


C:\Windows>"\\path-to-my-project\mvnw.cmd" clean -f "\\path-to-my-project\pom.xml"
Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
At line:1 char:282
+ ... pe]::Tls12; $webclient.DownloadFile('https://repo.maven.apache.org/ma ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
 
Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
Read more comments on GitHub >

github_iconTop Results From Across the Web

EDIT - Stack Overflow
Unable to run './mvnw clean install' when building docker image based on "openjdk:8-jdk-alpine" for Spring Boot app. Save this question. Show ...
Read more >
WSL and maven wrapper? - windows - Server Fault
I'm trying to run my ./mvnw from a Spring Boot project in a WSL (Ubuntu) with Windows 10 Enterprise Build 1803. But I...
Read more >
Maven on Windows
You run Maven by invoking a command-line tool: mvn.cmd from the bin directory of the Maven. To do this conveniently, ${maven.home}\bin must be...
Read more >
Using JHipster in development
General configuration; Running the Java server; Working with Angular/React; Using a database ... mvnw (on Mac OS X/Linux) of mvnw (on Windows).
Read more >
Why my maven commands don't work in PowerShell but the ...
Microsoft Q&A is the best place to get answers to all your technical questions on Microsoft products and services. Community. Forum.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found