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

Spring Boot Maven Plugin - Test fail

I'm having trouble running my application's unit tests. The environment is Spring Boot + JUnit 5 + Maven. I have a Maven multi-module Spring Boot application. Tests are in a dedicated module: parent - moduleArch - moduleApp (SpringBoot) …
Jose A. Matarán
  • 1,044
  • 3
  • 13
  • 33
0
votes
1 answer

Parameter 0 of constructor in controller required a bean of type repository class from another package

although i have added the package containing my GemDaoImpl repository class in pom.xml, it is giving error: Parameter 0 of constructor in com.bfm.accounting.portfolio.controller.PortfolioApiController required a bean of type…
neha
  • 1
0
votes
1 answer

Flyway db migrate first for Dependent Jar - Spring boot

I have a spring boot base project built as a jar. This jar base-0.0.1-SNAPSHOT.jar file has flyway migration scripts in db/migration/*.sql This base-0.0.1-SNAPSHOT.jar is added as dependency in impl-0.0.1-SNAPSHOT-boot.jar . Again, this impl boot…
Sel_va
  • 588
  • 5
  • 25
0
votes
1 answer

microservice showing errors on Dev environment

I have no idea what kind of errors are these and how it is related to microservice when i m not using any message converting in the code. Any help would be grateful. Thanks in advance! Any idea on below errors? 2020-09-08 04:13:54.304 ERROR…
0
votes
0 answers

Maven add spring boot project as dependency in another project. why it needs classifier "exec"?

I understand for adding spring boot project as dependency into another project it needs to be repackaged with classifier as "exec". Then it creates following two artifacts and i am able to import Test-project in another…
suraj bahl
  • 2,864
  • 6
  • 31
  • 42
0
votes
1 answer

Communication Containers in a local machine via Rest in php and Spring boot

I am new in docker and spring boot.So,I created 1 docker-compose.yml for my app version: '3' services: zookeeper: image: wurstmeister/zookeeper container_name: zookeeper ports: - "2181:2181" kafka: image:…
0
votes
1 answer

how to get the values that were sent from axios.post in the backend

I am using react for the frontend and springboot for the backend. I am not able to retrieve the data that I sent using axios in the backend. The first code below is the frontend where I make post and send 3 objects that I want to use in the backend.…
0
votes
2 answers

Spring Boot Property Launcher + EhCache Failed to read schema document

I am working on a Spring Boot(2.3.0.RELEASE) project where there is a need to use a external loader to load few proprietary libraries. Hence we are using Spring's Property Launcher as follows, org.springframework.boot
Srini
  • 420
  • 1
  • 5
  • 17
0
votes
1 answer

json Array to bean ( object mapper )

Read the json object and store into the bean by creating the new getter n setter. I want to read the bold value from below json object received as…
0
votes
0 answers

How to connect two mongo database in spring boot without using MongoRepository

Hi I have to connect two different mongoDB database in spring boot . I mentioned in application properties file as…
Sakura
  • 7
  • 3
0
votes
5 answers

Port already in use 8080 error prompts in Eclipse but it does work on port 8080 in web browser when running

Used to run Spring MVC project is Eclipse Version: 2020-03 (4.15.0) using Tomcat 8.5. When I run the project it displays "port already in use error" in console, but when I run on browser localhost:8080/ it works. But when I look in to the 'Servers'…
0
votes
3 answers

Spring Boot Application managed with maven: Error starting ApplicationContext

I have spring boot application that is being managed with maven.No matter which port I choose, the application fails to run giving the following error: 2020-04-23 17:24:16.316 INFO 7684 --- [ restartedMain]…
A.Demiraj
  • 51
  • 5
0
votes
1 answer

Exclude files from src/main/java and src/main/resources spring boot jar

I am trying to exclude some java files from src/main/java and also some yml files from src/main/resources folder while building the jar using spring boot maven plugin. I have tried the following options: Option 1 in maven-jar-plugin
0
votes
1 answer

spring-boot-maven-plugin repackage vs executable configuration

It seems there are two ways of making the jar produced by maven executable. One way is to set a goal in executions org.springframework.boot
curiousdev
  • 626
  • 8
  • 24
0
votes
0 answers

I can't map the Rest Endpoint with Spring Boot

I'm starting work with SpringBoot in a new project, and I'm trying create a environment like a base. So, I'm mappping the endpoins, but when I iniciality the server, I can see that those endpoint don't load. My Rest…