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
4
votes
2 answers

Spring Boot requiresUnpack is not upacking at runtime

I'm building an executable jar via the spring-boot maven plugin. I need to unpack one of the dependent jar so that xml files can be properly read at runtime. I followed the documentation regarding unpacking libs. My plugin config is as follows: …
Andrew Hall
  • 153
  • 1
  • 7
3
votes
1 answer

How to access user defined List<> values from another class?

I am developing an API with spring-boot.Basically I want to get all the values from PortedNumber class from Service class and store them to a text file. public class Service { PortedNumber portedNumber = new PortedNumber(); public…
3
votes
2 answers

How to pass --illegal-access JVM argument to spring boot maven plugin

I have an application that runs just fine when running this from the command prompt : java -jar --illegal-access=permit target/Something.jar However, configuring my spring boot maven plugin in my pom.xml as such gives me the same error as if I ran…
Martin
  • 1,977
  • 5
  • 30
  • 67
3
votes
2 answers

Error trying to run "Hello World" in Vaadin 14 when using proxied repositories

I downloaded the project from "start.vaadin.com". Then I did "mvn install", everything worked fine. When I run "mvn spring-boot:run", it generates an error when trying to compile the frontend: "com.vaadin.flow.server.BootstrapException: Unable to…
Manuel
  • 31
  • 7
3
votes
1 answer

Deploying Spring boot App, to Heroku With Docker using github

I have a Spring-Boot App, that I am hosting on Heroku and is soon going on production. Currently I am using free tier version of Heroku, but will buy standard paid tier before production. The problem I am facing is that, when packaged with all…
Qasim
  • 101
  • 2
  • 10
3
votes
0 answers

Springboot statc content : None of the document roots [src/main/webapp, public, static] point to a directory

I'm running a springboot jar application, and I'm facing some issues accessing static content from it. I placed my static content under src/main/resources/static and it is getting copied to the jar as BOOT-INF/classes/static . But I see this log…
3
votes
1 answer

Since 2.2.0 spring-boot-maven-plugin create 2 java process (may cause CreateProcess error=206). Need workaround to fix it

Since Spring Boot 2.2.0.RELEASE spring-boot-maven-plugin mvn spring-boot:run -Drun.profiles=prod create two java process (see https://github.com/spring-projects/spring-boot/issues/17766). In my case: 14811 ? Sl 1:34…
Grigory Kislin
  • 16,647
  • 10
  • 125
  • 197
3
votes
1 answer

Spring Boot Maven plugin: What does it actually do?

Can someone give me an understanding of what the Spring Boot Maven plugin actually does? I have been Googling, but most of what I find doesn't give a clear picture. The impression I have so far is that it can create a "fully executable" jar that…
Joseph Gagnon
  • 1,731
  • 3
  • 30
  • 63
3
votes
0 answers

Repackaging with Spring-boot-gradle-plugin v2.x

The spring-boot-maven-plugin has a goal that allows you to repackage an existing jar. This helped me in repackaging my obfuscated jar: com.github.wvengen
3
votes
2 answers

Spring boot maven plugin - BOOT-INF directory causing AWS Lambda application to fail

There has been a change in the generated package structure (if you extract the uber jar file) in SpringBoot 2.1.0.RELEASE. The 1.5.9.RELEASE jar file has com, lib, META-INF, and org directories 2.1.0.RELEASE has a BOOT-INF, META-INF and org…
3
votes
3 answers

Failed to get nested archive for entry BOOT-INF/lib for jar created with maven-shaded-plugin

I am using spring-boot-maven-plugin:2.1.0.RELEASE to package my main line application. This application has all common dependencies etc packaged In a separate project, I am building a shaded jar using maven-shade-plugin:2.4.3 and injecting into my…
SJunejo
  • 1,316
  • 4
  • 23
  • 39
3
votes
1 answer

How Can One Include Resources From Another Module In A Spring Boot Maven Multi Module Project

I have a spring boot mavel multi-module project. If the spring boot module depends on module A and in the src/main/resources folder of module A there is a properties file or some other resource that I want bundled in the final spring boot app, how…
David
  • 7,652
  • 21
  • 60
  • 98
3
votes
2 answers

How to package custom class along with Spring Boot loader?

I am using spring boot maven plugin that creates a jar for me with dependencies in it. The problem is, I need to start as a Windows service and WinSW needs a start class. Thing is all dependecies are hidden in BOOT-INF/lib and classes in…
Mejmo
  • 2,363
  • 9
  • 35
  • 54
3
votes
2 answers

ClassNotFoundException when running fat JAR configured by spring-boot-maven-plugin

I am trying to create executable JAR file for my spring boot application. To achieve this spring-boot-maven-plugin has been used with main class specified and packaging to jar. Unfortunately after running output JAR file i receive…
3
votes
2 answers

After successful login, the url redirect to /login again

I am new in Spring boot, I have a small application use Spring Boot and Spring Security. After successful login, the page redirect to /login again. I don't know how to fix it. After Successful login: This is Security…
Xin_Law
  • 33
  • 3