Spring - mvnw not recognised - I have Maven installed!

Hello! I’m struggling to build the Spring project - help is appreciated!

https://www.codecademy.com/paths/create-rest-apis-with-spring-and-java/tracks/spring-apis-web-and-spring-basics/modules/how-spring-works/articles/spring-project-layout-and-running-locally

STEP 4
PS C:\Users\Matt\Downloads\mySpringProject> mvnw sprint-boot:run
mvnw : The term ‘mvnw’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:1

  • mvnw sprint-boot:run
  •   + CategoryInfo          : ObjectNotFound: (mvnw:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

I couldn’t get that command to work either,
I just did stuff the old way …
compiling using javac JavaFileName.java
and running using java JavaFileName
(I had to do it for the file that had the main method in it, in the correct directory/folder)

I used the website mentioned for Spring Boot to download the relevant files, and I moved the files to the appropriate folder.)

1 Like

Thanks Jan - I’ve downloaded the .jar for the spring-boot-maven-plugin (which seems to be the problem)
But do you know which is the folder for those files??

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.