Questions tagged [spring-boot-maven-plugin]

Use this tag for questions related to Spring Boot Maven Plugin that allows to package executable jar or war archives and run an application “in-place”.

Maven plugin provided by the Spring Boot framework that allows you to package executable jar or war archives and run an application “in-place”.

525 questions
6
votes
4 answers

Spring Boot Multi-Module maven project repackage failed

I'm currently following John Thompson's Spring Framework Beginner to Guru course. I follow his step by step procedures on creating multi module maven project for spring pet clinic on spring boot. When I clicked package on my root module it says…
6
votes
0 answers

Resources are missing from JAR file after repackage with spring boot maven plugin

My application uses some additional files which I have inside the resource folder. When I do the regular build with Maven and package my app into JAR, I can see all my resources in case I unzip this archive. But when I create a docker image I use…
6
votes
2 answers

Use of spring-boot-maven-plugin

While creating a spring boot project I define property in pom.xml as war with which I can create a war and thereafter deploy the war into server maybe tomcat or WAS. But I came across a plugin named spring-boot-maven-plugin…
6
votes
1 answer

Could not find artifact in a multi-module project

So basically, I have a multi-module project such as - ProjectA |- Module1 |- Module2 The relevant part (I believe) pom.xml for ProjectA…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
6
votes
2 answers

Spring Boot executable jar throws java.lang.ClassNotFoundException: org.apache.tomcat.util.descriptor.web.ServletDef

I have created a simple test case that shows the issue I'm currently facing. What I was trying to do is manually starting Tomcat embedded from a CommandLineRunner and manually deploying a war file available somewhere on the file system: package…
fabriziocucci
  • 782
  • 8
  • 20
6
votes
4 answers

Spring Boot Executable Jar File Without Dependencies

What is the easiest way to build spring boot jar file without its dependencies? Basically I should be able to keep dependency jar files in a separate folder. Currently I'm using spring boot maven plugin, however, it creates a Fat jar file with all…
Yasitha Waduge
  • 13,180
  • 5
  • 35
  • 42
5
votes
2 answers

Suddenly spring-boot-maven-plugin:2.7.1:build-image could not download spring-cloud-bindings

In the AWS CodeBuild pipeline I got this error during the build-image task: could not download https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.10.0/spring-cloud-bindings-1.10.0.jar The same build fail on my PC and…
5
votes
3 answers

Pass dockerPublisher maven properties over command line in spring-boot:build-image

I want to integrate the spring boot maven plugins capability to build and publish an OCI Image to a remote Repository My Goal I want to use the following plugin configuration: org.springframework.boot
twobiers
  • 1,057
  • 1
  • 11
  • 27
5
votes
1 answer

Maven Spring Boot Cannot Push Docker Image

Using Spring Boot 2.4.0, I'm trying to configure the spring-boot:build-image task to push an image to my private GitHub container registry. I used these instructions to configure my POM as follows:
Mike
  • 4,722
  • 1
  • 27
  • 40
5
votes
1 answer

Does flyway support sql migrations under test folder?

I am migrating a project from Spring Boot 1.5.21 to 2.2.5. I have followed all instructions in the guide. However, I have an issue with flyway (upgrading from 4.2.0 to 6). Previously, when I had sql migration files under…
5
votes
2 answers

Cannot skip repackage goal of spring-boot-maven-plugin

I have a multi-module Maven project that contains an application consisting of several Spring Boot services. I am trying to set up integration and end-to-end tests for the services and am using a combination Maven plugins to orchestrate this. I have…
Joseph Gagnon
  • 1,731
  • 3
  • 30
  • 63
5
votes
1 answer

Unpacking jersey libraries in spring boot jar

I have a project spring boot with a jersey dependency: org.springframework.boot spring-boot-starter-jersey When I do a spring-boot:run all the context gets up perfect…
Francesc Recio
  • 2,187
  • 2
  • 13
  • 26
5
votes
2 answers

Prometheus not working after upgrading to Spring Boot Version 2

I was able to use Prometheus with the Spring Boot Version 2 before without any problem. After updating Spring Boot version to 2.1.1. Release I come across with the following error. I upgraded Prometheus version from 0.2.0 to 0.6.0 but I still come…
5
votes
1 answer

mvn spring-boot:run from command lime but choose which class to run

I need to run mvn spring-boot:run from command lime but choose which main class to run. Is there a way? I need to run this in command line but not from JAR.
Prostitutor
  • 159
  • 3
  • 12
5
votes
0 answers

Spring Boot Maven/Gradle plugin: bootRun task generates very long classpath?

Components Spring Boot 1.4.3 (and have also tried with Spring Boot 1.5 RC1) Java 1.8.0_112 on Mac OS Sierra Gradle 3.3 / Maven 3.3.9 Simple Java web application configured with Spring Boot Gradle plugin (Same issue appears to be applicable to the…
1 2
3
34 35