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
75
votes
8 answers

SpringBoot no main manifest attribute (maven)

When running my jar file: java -jar target/places-1.0-SNAPSHOT.jar I'm getting the next error : no main manifest attribute, in target/places-1.0-SNAPSHOT.jar The pom.xml contains the spring-boot-maven-plugin:
JeyJ
  • 3,582
  • 4
  • 35
  • 83
71
votes
12 answers

How to add a dependency to a Spring Boot Jar in another project?

I have a Spring Boot application and I have created a Jar out of that. Following is my pom.xml: org.springframework.boot spring-boot-starter-web
sparrow
  • 1,825
  • 6
  • 24
  • 35
46
votes
3 answers

Using Maven properties in application.properties in Spring Boot

I'm trying to load properties from pom.xml into application.properties. I want to create two profiles: dev and prod to use different database urls. I'm using Jenkins as CI, in all my apps (Spring MVC mainly, without Boot project) are using maven…
Jakub Pomykała
  • 2,082
  • 3
  • 27
  • 58
20
votes
5 answers

"cannot find symbol" error in maven

I see a lot of questions on stackoverflow on this. But still I'm not able to know what is the issue in my way of building projects. I've two spring boot projects: we-data and we-web. we-web is dependent on we-data. we-data compiles fine on maven.…
User1230321
  • 1,435
  • 4
  • 23
  • 39
20
votes
3 answers

resources in a Spring Boot application are missing from jar file when using Spring Boot Maven Plugin

I am using Spring-Boot v1.3.0.M5 with Maven v3.3.3. I used to be able to run my Spring Boot (boot) application from the console with this command. mvn clean package spring-boot:run However, I've had to revise my pom.xml to account for different…
Jane Wayne
  • 8,205
  • 17
  • 75
  • 120
19
votes
4 answers

Springboot not loading application.dev.properties file

In my project I want to use environment specific property file. For example if I am running it into development it should use application.dev.properties, for production it should use application.prod.properties and so on. I have below two files in…
Sam
  • 2,972
  • 6
  • 34
  • 62
14
votes
2 answers

How to run integration test of a spring-boot based application through maven-failsafe-plugin?

I have a spring-boot based application, and the pom.xml file is configured as below.
14
votes
5 answers

Spring Boot + Elastic Beanstalk .ebextensions in JAR

I have a very standard Spring Boot application (with a application.properties properties file located in standard /src/main/resources folder) which I'm deploying on AWS Elastic Beanstalk as a "fat JAR". It works quite nicely but there is an issue…
14
votes
3 answers

spring-boot-devtools reload of multi-module maven project changes

Reload of multi-module maven project changes Setting Imagine a multi-module maven-project. The project structure is: pom.xml //parentpom | pom.xml //submodule_1 | pom.xml //submodule_2 . . . pom.xml //submodule_7 For example…
13
votes
2 answers

How to prevent lombok from being packaged into Spring Boot jar?

If you visit official Lombok Maven guide, you will see that it's scope should be provided. When I create a new project from scratch using start.spring.io and add Lombok, it gets only true in resulting pom. Then I package Spring…
Kirill
  • 6,762
  • 4
  • 51
  • 81
13
votes
2 answers

SpringBoot fully executable jar without dependencies inside

NOTE: Please, before marking this question as a duplicate make sure you know the difference between executable JAR and fully executable SpringBoot JAR. The official Spring Boot documentation describes how to build fully executable JAR. Then…
humkins
  • 9,635
  • 11
  • 57
  • 75
13
votes
5 answers

Spring Boot Maven Plugin - No BOOT-INF directory

Between version 1.3.8.RELEASE of the spring-boot-maven-plugin and version 1.4.0.RELEASE - there has been a change in the generated package structure (if you extract the uber jar file) 1.3.8.RELEASE com, lib, META-INF and org…
Damien
  • 4,081
  • 12
  • 75
  • 126
12
votes
1 answer

How to solve Memory issues with Paketo buildpack used to build a spring-boot app?

I am building Docker image with the spring-boot-maven-plugin that is deployed to AWS BeanStalk. I use the plugin through the 2.4.3 spring boot starter dependency) However, when the container is started, I get the error below. I am a bit new in the…
12
votes
2 answers

spring-boot-maven-plugin doesn't create fat jar

I'm using spring-boot-maven-plugin to package my REST service. I'm building the jar using mvn clean install or mvn clean package. After I decompile the jar, I don't find any of the dependencies added (I was expecting it to be a fat jar with all…
Pankaj
  • 3,512
  • 16
  • 49
  • 83
12
votes
1 answer

Import spring boot app into another project

So I am attempting to add a spring boot executable jar as a dependency in another project (Testing framework). However once added to the pom and imported. Java imports don't work properly. If I look inside the jar all packages are prepended with:…
Michael W
  • 3,515
  • 8
  • 39
  • 62
1
2 3
34 35