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
2
votes
0 answers

SPRING NPE building docker image using spring-boot-maven-plugin and Buildpacks

I'm facing a problem building a spring project resulting in a NullPointerException when running mvn spring-boot:build-image -e running simple "mvn package" directive results in successful build without issues. here is the full stack trace: $ mvn…
2
votes
2 answers

spring boot multi module spring-boot-maven-plugin compilation failure

I have a multi module project with maven and spring boot. My main pom.xml:
emoleumassi
  • 4,881
  • 13
  • 67
  • 93
2
votes
0 answers

Can a Maven BOM contain another Maven BOM?

Can a Maven BOM(BOM1) contain another BOM(BOM2) in its dependencyManagement? If yes, how could the usage of BOM1 through inclusion in a pom.xml can use the dependencies from BOM2 in a project? Thanks in advance! To better explain the situation, the…
Charles
  • 570
  • 11
  • 29
2
votes
1 answer

running SpringBootTest using a spring profile given by maven

I got the following profile in my maven pom: local
UnnameDSoS
  • 113
  • 1
  • 12
2
votes
1 answer

spring-boot-maven-plugin build-info.properties

How can I use properties from build-info.properties in application.properties? pom.xml: org.springframework.boot spring-boot-maven-plugin
2
votes
2 answers

MVN Build Image - "dial tcp: lookup github.com: Temporary failure in name resolution"

I'm trying to build a docker image using mvn spring-boot:build-image -P command but I'm getting an error: [INFO] [creator] Paketo BellSoft Liberica Buildpack 8.1.2 [INFO] [creator] …
Aldo Inácio da Silva
  • 824
  • 2
  • 14
  • 38
2
votes
1 answer

deploy sample springboot app (WebGoat) to Azure app service

New to Azure App Service, following https://learn.microsoft.com/en-us/azure/app-service/quickstart-java?tabs=javase&pivots=platform-linux, I am trying to experiment to deploy WebGoat to Azure App, but unsuccessful. git clone…
2
votes
0 answers

Error creating bean with name 'defaultServletHandlerMapping' defined in class path resource

I am getting below error after updating spring-boot starter parent to 2.4.3. But after setting up server.servlet.register-default-servlet=true application is working as expected. But one i would like to know is, in the reference spring documentation…
2
votes
3 answers

Maven - Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.1:run

I created my project at https://start.spring.io/ Several errors on the internet are similar but did not solve my problem. when executing it I found an error return: Failed to execute goal org.springframework.boot: spring-boot-maven-plugin: 2.4.1:…
2
votes
1 answer

Building docker image with spring boot 2.4.1 failes with "Missing 'io.buildpacks.stack.id' stack label" when behind a firewall

I'm, trying to build a docker image with ./mvnw -DskipTests spring-boot:build-image using spring boot 2.4.1 and java 11 (openjdk version "11.0.9" 2020-10-20 LTS) on RHEL7. I do this on a host behind a strict firewall so I have to fetch the build-…
Kaj Hejer
  • 955
  • 4
  • 18
2
votes
0 answers

How to build Docker image automatically using Spring Boot Maven Plugin?

I want to build the Docker image of my Spring Boot application on GitLab automatically using Spring Boot Maven Plugin. I followed 6. Packaging OCI Images but I get an arror: Unable to read jar file…
dur
  • 15,689
  • 25
  • 79
  • 125
2
votes
0 answers

Spring boot maven plugin and layers

I have the following maven project setup. I have a parent module with a number of child modules one which is a spring boot application. I am trying to build a "layered" spring boot application jar for that child module but unable to. The child…
prem
  • 21
  • 1
2
votes
0 answers

Failed to connect to MBean server at port 9001 - health check after ApplicationReadyEvent

I get the error Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:start (pre-integration-test) Could not figure out if the application has started: Failed to connect to MBean server at port 9001: Could not invoke…
2
votes
1 answer

where does jpa picks up the method userbyusername as i have not given any implementation and i have checked the inner classes too

In my spring boot project, I am using this starter jpa . i have done all the db related thing in appliction.properties. Project is working fine . I fail to undestand where is this methods defination. We have just defined a abstract method how is…
2
votes
3 answers

An internal error occurred during: "Importing Maven projects" and "building Maven Projects"

I'm getting the below error while importing an maven project from git repositories of STS. An internal error occurred during: "Importing Maven projects". No enum constant org.eclipse.m2e.core.lifecyclemapping.model.PluginExecutionAction.items Please…
Vedha
  • 43
  • 2
  • 8