Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring-boot-devtools maven jar not found

I need to use spring boot devtools to force reload of static resource during dev time.

I added follow code to my pom

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
    <scope>runtime</scope>
</dependency>

but maven did not found the dependecy,

I need to add respoitory uri?

like image 903
ciro Avatar asked Oct 24 '25 23:10

ciro


1 Answers

If you are not using a parent pom nor defined <DependencyManagement> there, then you should identify the version of jar you want to use.

likes:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <version>1.5.9.RELEASE</version>    
    <optional>true</optional>
    <scope>runtime</scope>
</dependency>

You can check out http://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools to see which version you would like to use.

like image 79
John Avatar answered Oct 27 '25 17:10

John