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
Tag: maven
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 force Maven to use external repos to retrieve artifacts?
I got following error while trying to build the project. The project is spring project and use IntelliJ with java 8. Is there a way to fix it through setting.xml? I have not access to any configuration on http://maven:8081/nexus/content/groups/public This is my setting. Answer If you set then you send every request to this repository, regardless of the rest of
Spring Boot Log4j2 configuration issue with log size maintenance
I have a spring boot application and using log4j2 to generate console and persists logs in a centos linux. I wanted to maintain only 5mb of log files in archive. But the problem is, my archived log files are 5mb in total. but my main console log which is saving in the main log file i.e wc-notification.out is going beyond
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
How to compile spark-testing-base in Java project built with maven?
I don’t have a lot of experience with Java, but I built a Spark application using Java. I want to write some unit tests for my Spark application. I saw that spark-testing-base is very useful for that purpose. I have added the following to my pom.xml: I’m using Junit framework and my tests fail when trying to reach jsc(). My
zip some modules including target directory from multi-module maven project
I have a multi-module maven project with the below hierarchy and wanted to create a zip after the mvn build and curl or upload it to one private repository. I am using the maven-assembly-plugin but it is not including the required directory. Please can you suggest something? I wanted to create a zip with subproject1 includes src, resources, and target
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