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

Package spring boot application with a light jar to run as daemon

Using Spring-boot 1.5.6 with Java 8 on Debian jessie, built with Maven. The generated jar is a big fat 70Mo jar, usage as daemon works fine. How generate a lighter jar, with dependencies jar files in a lib folder somewhere? Here the current pom.xml…
Thomas Decaux
  • 21,738
  • 2
  • 113
  • 124
0
votes
1 answer

spring boot maven plugin not includes all the files within source folder

I have a Spring boot project with below structure. But it is not including ui and static folder. below is the snippet of pom.xml plugin. How to include these folders and it's content. org.springframework.boot
Debopam
  • 3,198
  • 6
  • 41
  • 72
0
votes
1 answer

Spring boot profile sync maven profile

i have a Spring Boot application. I need to connect spring boot profile to maven profile so than when i am calling command mvn clean install -Pdev or mvn clean install -Pprod it should call spring boot to load application-dev.yml or…
0
votes
1 answer

MVN springboot plugin outputs bad tomcat deployable WAR

I am trying to make a WAR file to deploy on tomcat out of a Spring Boot project using maven from the command line. I have already made the modifications to the POM file recommended…
bredman
  • 3
  • 4
0
votes
1 answer

spring-boot-maven-plugin include other projects from workspace

I have a spring STS project which depends on two other projects in the same workspace. I have included them in my pom.xml but when I build jar they are excluded from the generated jar.Could you please let me know how to include these two dependent…
Debopam
  • 3,198
  • 6
  • 41
  • 72
0
votes
0 answers

Package Spring Boot application with Unittests JDBC connections

I'm trying to package a Spring Boot application where there are some unittests. After looking around for the last few days to find an answer I thought maybe I'd get the (probably obvious) answer here. The command that runs is mvn package The errors…
Johan Vergeer
  • 5,208
  • 10
  • 48
  • 105
0
votes
0 answers

Spring boot exception at the time of run application

I am getting below exception when tried to start application. I have added project as dependency in another maven project. I am new in spring boot pls help me. com.att.mre.utility
kiran
  • 77
  • 1
  • 11
0
votes
2 answers

Include source package and dependency only for a profile with Spring Boot maven plugin

In a Spring Boot based project of mine I want to create two different builds from the same project. The decision on which build is generated should come from a maven profile. I want to create one build (full) which includes a certain folder…
yglodt
  • 13,807
  • 14
  • 91
  • 127
0
votes
1 answer

Spring Boot JAR doesn't contain classes in src folder

I was upgrading the Spring version of our project and I noticed that the src/ folder doesn't appear as classes when I open the file as an Archive. Instead all I found was an /org folder where I found Spring. It actually looked like this, The…
Gunith D
  • 1,843
  • 1
  • 31
  • 36
0
votes
1 answer

Add VERSION_INFO to jar

How to add VERSION_INFO meta data to jar with spring boot ? I have seen the plugin org.springframework.boot spring-boot-maven-plugin with the execution "repackage" but I cannot…
psv
  • 3,147
  • 5
  • 32
  • 67
0
votes
2 answers

mvn spring-boot:run fails

Spent a lot of time on this issue. Couldn't find and way to fix this issue on my own. I tried deleting my local repo and reinstall, adding plugin repositories in my pom etc... To my surprise I have another project which uses same…
auhuman
  • 962
  • 2
  • 13
  • 34
0
votes
1 answer

Spring Boot 1.4 to 1.5, unable to deploy

I have a very large and working Spring Boot project that is running OK with Boot 1.4.2. When I try to upgrade to 1.5.3 it works from my IDE (Intellij Idea) but it does not work on deployment. It's a Maven project, so I use the "package" directive to…
0
votes
1 answer

Spring Boot -1.5.3.Release Version - Enabled with Security Features?

I use Spring Boot - 1.5.3.Release Version for my project. Simply tested my demo application with Actuator and Dev-tools plugin from spring boot initializer site. (Hence I no longer needed to share my POM, as it is default).When I launch my…
0
votes
1 answer

Shrink my huge 100MB jar file (spring boot maven plugin)

I want to build my spring boot app, but I have to transfer the files around a lot into different servers. But my "libs" folder inside my "jar" file, is too big now. It's 100MB++. What I want is to periodically update my webapp, that is like 1MB or…
Dexter
  • 6,170
  • 18
  • 74
  • 101
0
votes
1 answer

Trying to retrieve user entered values in controller and adding it to mysql database in SpringBoot application

@RestController @RequestMapping(value="addPerson", method=RequestMethod.GET) public String addPerson(@RequestParam(value="name", required=false) String Fname, @RequestParam(value="pwd", required=false) String Lname){ Person person= new…
NaveeN
  • 121
  • 6