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
3
votes
1 answer

spring-boot-maven-plugin create jar with dependencies

My project is running fine in eclipse. I was using the following plugin to build my jar with dependencies. maven-assembly-plugin
Sid
  • 435
  • 4
  • 9
  • 19
3
votes
0 answers

include Spring Boot Rest Api Jar file into Another Spring project

I have Spring boot Rest api , which works fine @RequestMapping("/api/get") public PomData getPomData( ) throws IOException { PomData pd=new PomData(); pd.setName("name"); pd.setVersion("version"); return pd; } I want to call this…
3
votes
2 answers

Can spring-boot-maven-plugin be used for non spring project?

The spring-boot-maven-plugin main goal is to package spring boot application into executable jar with all dependencies. Can it be used in projects without spring or spring boot? I meen not using spring dependencies, but just classloader mechanism…
Cherry
  • 31,309
  • 66
  • 224
  • 364
3
votes
1 answer

Spring Boot web app not starting

I have a small spring boot app which exposes an API through a controller. The controller uses some services, which user mongodb repositories. My pom.xml:
Cristian
  • 417
  • 1
  • 9
  • 18
3
votes
1 answer

Microservices with Spring-Boot and Release Management

Looking for advice in how to do release management of microservices built with Spring Boot. Most projects I've worked use the release plugin (maven) to create tags as well as to release maven projects (jar, war, rpm). Usually, this relies on the…
Alberto
  • 801
  • 6
  • 10
3
votes
1 answer

Launching main class inside a nested executable jar created with spring-boot-maven-plugin

I have a simple Spring Boot class like this: @SpringBootApplication public class Starter { public static void main(String... args) { if ("foo".equals(args[0])) { SpringApplication.run(Foo.class, args); } else if…
Neloy
  • 51
  • 7
3
votes
1 answer

Spring Boot multi module Maven project deployment

We have multi module Maven project with following modules: Commons Model Repository Service Web We've googled around and we didn't found a solution how to make one executable jar when project has this kind of structure. Here is the parent…
Nikola Zarić
  • 865
  • 1
  • 9
  • 28
3
votes
3 answers

SpringBootServletInitializer not working on tomcat server

I'm trying to run my Spring Boot application on a local Tomcat 8 server, but can't get it to run. It works fine in Eclipse and mvn spring-boot:run. I added the SpringBootServletInitializer and changed the pom.xml as recommended. But it seems that it…
sverin
  • 179
  • 2
  • 13
3
votes
1 answer

Alternatives to distribute spring-boot application using maven (other than spring-boot:repackage)

As far as I know, spring-boot-maven-plugin has already provided a way to distribute the entire application in a fat executable jar file: spring-boot-maven-plugin However, sometimes we don't want a fat executable jar that encapsulates all the modules…
3
votes
1 answer

Spring Boot webserver works fine in Eclipse, fails to start on Server : missing EmbeddedServletContainerFactory bean

Following the model of the Spring Documentation I created a very simple Hello World like application. It spun right up on Eclipse and everything looked great. Sweet! I ran it and could browse to the URL. Fastest development ever. But this has to…
3
votes
1 answer

How to integrate Spring boot with servlet 3.0 container and make it work in Websphere 8.5.5 server?

I have a working project developed with Spring boot, spring boot security and spring data rest with Maven. As a standalone class working fine. WAR deployment in Tomcat also working fine. I have generated an EAR out of the WAR with Maven and…
priti
  • 41
  • 1
  • 3
3
votes
1 answer

To remove extra dependencies inherited from spring-boot-starter-parent

org.springframework.boot spring-boot-starter-parent 1.2.6.RELEASE When spring-boot-starter-parent is…
Ram Narayan
  • 49
  • 1
  • 3
2
votes
1 answer

Spring boot maven plugin build-image : how to pass docker host, bindings and other options as args to mvn spring-boot:build-image

I have the following spring-boot-maven-plugin configuration: org.springframework.boot spring-boot-maven-plugin
2
votes
1 answer

Maven test-dependency removes transitive compile-dependency from uberjar

We have splunk-library-javalogging as compile-dependency and added com.squareup.okhttp3/okhttp as a test-dependency. okhttp is also a compile-dependency of the splunk-appender. Using spring-boot-maven-plugin we realized the okhttp-Dependency is no…
2
votes
1 answer

Maven Error: Cannot find 'version' in class org.springframework.boot.maven.Exclude

I encountered a problem with running my spring-boot application using the terminal. In IDE (IntelliJ) app starts perfectly, but when I try to run it by mvn clean spring-boot:run an error occurs. shell [INFO] BUILD FAILURE [INFO]…