Home > Net >  mvn install -P docker-buld-image is not producing an updated jar file after changes
mvn install -P docker-buld-image is not producing an updated jar file after changes

Time:09-11

I have a Spring project to which I have made two very basic changes:

  1. logger.info("testing changes made");
  2. return new ResponseEntity<>(HttpStatus.NO_CONTENT); //previously HttpStatus.OK

I then:

  1. git committed the changes (not really necessary)
  2. mvn clean install -P docker-build-image
  3. docker tag my-service:old-tag my-service:new-tag

I then used this image to install the service in a kubernetes pod as follows:

echo "           
  • Related