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

spring-boot-maven-plugin >= 1.4.0 jar structure changes

I have a spring-boot project where all integration tests are in separate module which starts the application module using spring-boot-maven-plugin during the integration-test phase and executes the suite against it. This construct worked fine until…
cecode
  • 21
  • 4
2
votes
0 answers

spring boot run not loading static resources from parent / aggregator module

I have struggled with the below problem for about a week and I cannot find anyone who has the same issue. I have a Maven project that is built up of several sub-modules as shown below: parent-module child A (common library) child B (spring…
2
votes
2 answers

Spring Boot Migration Issue on Packaging JAR and WAR using Maven

We are trying to migrate our existing Spring MVC applications to Spring Boot application. Our existing applications are using 3.2.9, so tons of XML configurations. All the beans are defined in the XML files. What we have done is first we have…
Krishna
  • 7,154
  • 16
  • 68
  • 80
2
votes
1 answer

Deploy Spring Boot 1.3.2 IBM WAS 8.5

I'm facing a problem deploying a simple spring boot web on IBM Websphere 8.5.5.8 using full profile WAS is by default using servlet 3.0 and java 1.7. The application does not do much, just display a page with a "Hi - [current-date]". When deploying…
2
votes
1 answer

How to generate executable scripts using spring boot maven plugin

Using spring boot maven plugin we are able to generate executable jars. And we can execute the jar using java -jar ... In spring boot there is another option for installation . This generates the jar which can be added in init.d. But is it possible…
sag
  • 5,333
  • 8
  • 54
  • 91
2
votes
1 answer

Difference between Jar and War packaging with embedded Tomcat

Spring Boot can build executable .jar or .war files. Is there any difference between them, besides the file extension? The documentation states You should configure your project to build a jar or war (as appropriate). For a Spring MVC web…
Brian Beckett
  • 4,742
  • 6
  • 33
  • 52
2
votes
1 answer

Spring Boot: change from Java Servlet 3.1 to 3.0

In Eclipse (STS) I created a project as follows: File -> New -> Spring Starter Project The settings are (among others): Type: Maven Project Packaging: War Java Version: 1.8 Language: Java Boot Version: 1.3.0 Dependencies: Web In the project facets…
2
votes
1 answer

How to enable undertow log in appication.properties in Spring boot

How to enable http server logs in an embedded tomcat server provided by spring boot in undertow? I've tried this in application.properties but it doesn't create file, neither logs to console I am looking for something similar like this Spring Boot…
user3352615
  • 119
  • 2
  • 5
  • 13
2
votes
2 answers

Spring Boot not starting HTTP listener

When I start the Spring Boot application jar I get nothing about service listening on HTTP port or any error. Posting a bit obscured pom.xml and start-up screencap:
Somasundaram Sekar
  • 5,244
  • 6
  • 43
  • 85
2
votes
2 answers

Spring MVC project as jar

I am new to Spring MVC and I have now come accross tutorials that explain how to deploy your web project as a .jar. My IDE is the Spring Tool Suite. I have always used .war + Apache Tomcat. Can someone elaborate a bit from the practical point of…
Gero
  • 12,993
  • 25
  • 65
  • 106
2
votes
1 answer

How do I get SpringLoaded to work with Maven in IntelliJ (or on the commandline)?

I have a project that will run fine with mvn spring-boot:run, and I would like the ability to hot swap automatically after compiling. I setup the dependency as follows: org.springframework.boot
end-user
  • 2,845
  • 6
  • 30
  • 56
1
vote
1 answer

Spring Boot with multiple entry points applications via Maven profiles

I'm trying to prototype a structure in which several @SpringBootApplications are segregated by means of their packaging namespaces, like so: In Maven pom.xml, to build, I'm relying on profiles, as shown below, and described here and here: …
1
vote
0 answers

How to use the fat-jar generated by mvn package when you run spring-boot:run?

In some scenarios, you need to use some elements included in the fat jar, like: MANIFEST Dependency jars But using the the command: mvn spring-boot:run doesn´t run the application using that way and it is only possible to find that elements if you…
jabrena
  • 1,166
  • 3
  • 11
  • 25
1
vote
1 answer

java.lang.NoSuchMethodError: 'java.util.Map jakarta.servlet.SessionCookieConfig.getAttributes()

I am using spring boot war file to bring up a web application. The server boots fine. When i open the url in the browser, i get this exception in the spring boot logs. The internet does not seem have solution for this problem may be because this…
1
vote
1 answer

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.6:repackage

I am trying to run a sample maven project. Below is my pom.xml file