Skip to content
Advertisement

Tag: maven

Eclipse maven EAR project not working after git share

I have a working maven project on eclipse which I made using the archetype for Jakarta EE with an ear packaging using windfly 21. (org.windfly.archetype – wildfly-jakartaee-ear-archetype). After i got a working webpage, i decided to share it on git, using the eclipse GUI. (Right click on project -> Team -> Share). This moves the project onto another folder, as

Spring Boot App does not recognize environment variables in application.yml file

there. I’m new to Java Spring Boot and I’m trying to set environment variables in application.yml. I’ve added dotenv maven dependency: I’ve set variables in the .env file: And in my application.yml: While running application I’m getting jdbc error: java.lang.RuntimeException: Driver org.postgresql.Driver claims to not accept jdbcUrl, ${SPRING_DATABASE_URL} I’ve tried some solutions like: or in application.yml: or or Am I

Get Maven Version in an AWS Lambda

I am developing an AWS Lambdas using java. It would be very useful if, in the lambda, there was a way to log the maven version of the lambda in the log file so we can track what versions of lambdas are running in different environments. Normally this could be done pretty easily using the code below: Unfortunately it always

How do I load environment variables to load application context before integration test runs

I’m working on multi-module maven project using Spring Boot 2.4.0. I have written integration tests for a module. The test class looks similar to this. To run the SpringApplicationClassWithMainMethod.class i.e., in order to load the Application context I need few environment variables that I set in eclipse. So, in order to run the above integration test while loading the SpringApplicationClassWithMainMethod.class

Spring boot dependency error for some of the dependencies in maven

Below is my pom.xml Error message i am getting is But in most of the cases what I observed most of them wont declare any version for spring-boot-starter-data-jpa and spring-boot-starter-web but i am getting these errors I am getting errors for all the dependencies where i had not declared version So i want to know how to resolve these errors

Spring Boot Fails while maven test …jdk8 and aws-sdk-bom 1.11

This is my pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASE com.dummy lattt 0.0.1-SNAPSHOT war lattt lattt I have 2 junit test and these are failing repeatedly 1.Installed and Using jdk 8 2.But aws-sdk-bom runs with 1.11.618 and downloads&executes test with 1.11.618 3.And throws the error Test file How to execute the mvn test with errors Authentication Provider ->Yes Answer “Could not find

Advertisement