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

Sending parameters to a maven plugin

In my pom file I execute a build plugin with this configuration. Can I access customProp from inside the plugin code? ... useTags=true
JNF
  • 3,696
  • 3
  • 31
  • 64
2
votes
1 answer

Spring Boot Maven Plugin and requiresUnpack target directory

I have a case where I need to unpack the library using the: spring-boot:repackage:requiresUnpack Otherwise, the other library from the project is not able to work properly. As stated in the link, the selected libraries are unpacked and copied over…
Grzegorz Gajos
  • 2,253
  • 19
  • 26
2
votes
1 answer

Repackage failed creating uber jar with spring-boot-maven-plugin

I want to run create an uber jar to create a docker image of that. I am using spring-boot-maven-plugin to create the uber jar. My pom file looks like this : org.springframework.boot
2
votes
1 answer

How to create executable jar file from springboot - maven application?

When I tried to create a jar file using maven plugin in eclipse, I got thus error while trying to execute that jar: Exception in thread "main" java.lang.IllegalStateException: Failed to get nested archive for entry …
2
votes
3 answers

Password encrypt and decrypt using Spring-security

Preface: I have a JAR which is developed by making use of spring-boot (maven project). Then, I will access my JAR folder and run the below command to execute it: java -server -jar ${jarName} --spring.config.location=classpath:config.properties So…
2
votes
1 answer

Spring Boot causes WebAppContext error when deployed to GAE

I'm building out a REST API for a personal project, using Spring Boot to do so, and deploying onto Google App Engine. The project compiles and runs locally with no issues, and I can deploy to GAE with no build errors. However, when I navigate to my…
2
votes
1 answer

Why is run.profiles getting ignored with spring-boot:run?

Using spring-boot-maven-plugin version 1.5.9.RELEASE. The documentation states using -Drun.profiles to activate the active profiles. But running on the command line the profile is not activated: mvn spring-boot:run -Drun.profiles=development Using…
timomeinen
  • 3,101
  • 3
  • 33
  • 46
2
votes
0 answers

Difference between spring-boot:run and java -jar

What is the difference between running application using mvn spring-boot:run and java -jar executable.jar
2
votes
0 answers

Spring Boot repackage: exclude artifact with dependencies

My application use annotation processor querydsl: com.querydsl querydsl-apt ${querydsl.version}
michaldo
  • 4,195
  • 1
  • 39
  • 65
2
votes
1 answer

Add maven build time to jar name build with Spring Boot Maven Plugin

How can add maven build time to jar file name using Spring Boot Maven plugin? I want to achieve something like: jar_name-build_time.jar
2
votes
0 answers

Executable Spring Boot ClassNotFound

if I set my jar as executable (via) org.springframework.boot spring-boot-maven-plugin ${springboot.version}
GreeBo
  • 31
  • 5
2
votes
1 answer

How to resolve spring-boot-devtools dependency issue?

I added spring-boot-devtools dependency in pom.xml. When I run my application I got following exceptions. I am using spring-boot-parent-1.53.RELEASE version. How to resolve this issue? Exception in thread "main" java.lang.IllegalStateException:…
Kumaresh Babu N S
  • 1,648
  • 5
  • 23
  • 39
2
votes
0 answers

"No auto configuration classes found in META-INF/spring.factories" Trying to build Spring standalone

I am trying to build a standalone .jar from a multi-module Maven project. The project structure is ema-server/ shared/ # To share with Java clients rest-api/ # Spring REST API server/ # Provides the main() for the standalone and bundles…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
2
votes
4 answers

spring-boot:RSA premaster secret error: SunTls12RsaPremasterSecret KeyGenerator not available

I am running A spring-boot application started by jetty. I used to start succeesfully. but now something was just wrong, very strange. Here is my pom.xml:
2
votes
1 answer

Sprint-boot executable same sources multiple jars

I did the following steps in order to run 2 instances of my spring-boot application on the same host: build jar with spring-boot maven plugin repackage goal copy application.jar to application-0.jar on my remote server created a application-0.conf…
louis gueye
  • 215
  • 1
  • 2
  • 8