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
11
votes
3 answers

Spring Boot With Maven Shade Plugin - Controllers not mapped (404 Error)

For my Spring boot application with embedded tomcat, due to some limitation I need to do away with spring-boot-maven-plugin and need to use maven-shade-plugin. With maven package command I could successfully create the jar file. However, all…
10
votes
2 answers

Maven Spring Boot Plugin : how to run spring boot from another project

https://docs.spring.io/spring-boot/docs/current/maven-plugin/usage.html I have a project, with 2 modules. [Parent] |-pom.xml | [SpringBoot2App] | |-pom.xml | [test] | |-pom.xml (start goal here!) I want to run integration tests (maven…
Filip
  • 906
  • 3
  • 11
  • 33
10
votes
1 answer

Spring Boot Maven Plugin Include Resources

Example Is it possible to somehow configure the spring boot maven plugin to include resources from a dependency. E.g. if in my spring boot project I have: co.company example
David
  • 7,652
  • 21
  • 60
  • 98
8
votes
4 answers

Build jar and run spring boot from cmd

I'm new to springboot and using springboot 2 version. I would like to run my spring boot application using : java -jar my-app-0.0.1-SNAPSHOT.jar from the command prompt. However, when i build the application using eclipse it calls…
8
votes
1 answer

Spring Boot with spring-boot-maven plug-in - unable to RESTART the application server after running integration tests

I have a Spring Boot application and that application has integration tests. Here is the relevant snippet from my pom.xml for running the integration tests. org.springframework.boot
Muthu Palanisamy
  • 765
  • 2
  • 9
  • 17
8
votes
1 answer

Spring Boot Maven plugin - spring-boot:run and graceful shutdown

I can run a Spring Boot application with a following Maven command: mvn spring-boot:run but I don't know how to do a graceful shutdown of application which was started in a such way. Please advise.
alexanoid
  • 24,051
  • 54
  • 210
  • 410
8
votes
3 answers

SIngle jar startup failed after upgrade from Spring Boot 1.3.7 to 1.4.0

After upgrading from Spring Boot 1.3.7 to 1.4.0 we can no longer start our application as a single jar build with the Spring Boot Maven plugin. Our application is a small REST interface using Jersey and Jetty. We use Maven and our pom file is pretty…
oleb
  • 83
  • 1
  • 4
7
votes
0 answers

Spring cloud config client application is failing to start with java.lang.NoClassDefFoundError

I have some problem with spring cloud config client application. When I use spring-boot-starter-parent as parent in pom.xml(shown below), my application is working fine and able to fetch properties from spring cloud config server.
7
votes
5 answers

Spring boot jpa tool is not available in STS(Spring Tool Suite) for converting tables to entities

Here i am working in Spring boot in Spring tool Suite.I want to convert an Oracle databse tables to JPA Class Entites. But i did not get any JPA tools in project_folder ->jpa tools. What i have to do can you please suggest a better solution. Thanks
karthick
  • 101
  • 1
  • 1
  • 7
7
votes
2 answers

Spring Boot add files to classpath from command line execution

I am using Netbeans 8.2 to develop Spring applications. This specific app with which I am having trouble is a Spring Boot 1.5.3 app. I have a spring xml file and an application.properties that I keep in /config under the root project directory. I…
wrslatz
  • 403
  • 2
  • 8
  • 25
6
votes
2 answers

Compilation Failure : cannot access LoggingEventAware [ERROR] class file for org.slf4j.spi.LoggingEventAware not found on mvn clean install -U

I have upgraded the spring boot version from 2.3.5 to 2.7.5 , resolved most of the dependency versions. But when i do the maven clean install , i received the compilation failure error : cannot access LoggingEventAware [ERROR] class file for…
6
votes
0 answers

Spring-Boot docker build with paketo fails on Bitbucket pipelines

My spring-boot projekts builds its docker image on bitbucket.org using the spring-boot-maven-plugin with its build-image goal. On pipelines we always get the following maven error: Docker API call to 'localhost:2375/v1.24/containers/create' failed…
6
votes
2 answers

Install package in Docker image created by Spring Boot Maven plugin

My Spring Boot project contains the Spring Boot Maven Plugin which I use for building a Docker image by running mvn spring-boot:build-image. org.springframework.boot
Robert Strauch
  • 12,055
  • 24
  • 120
  • 192
6
votes
2 answers

Running SpringBoot app from IntelliJ IDEA fails for modular project

My project is a SpringBoot application, which contains one java module. This module does not open any of its packages. module-info.java module my.somewhere { requires spring.core; requires spring.context; requires spring.boot; //…
diziaq
  • 6,881
  • 16
  • 54
  • 96
6
votes
1 answer

Red colour in spring keyword in Intellij IDEA

I couldn't solve the problem of Spring Boot leyword which is highlighted in red in IntelliJ IDEA. I used the invalidate cache and synchronise option in IntelliJ, but this did not solve the problem. POM.xml
sonam wangmo
  • 263
  • 3
  • 13
1
2
3
34 35