Skip to content

How to specify credentials for custom maven private repo

I have used this article (https://gist.github.com/fernandezpablo85/03cf8b0cd2e7d8527063) for creating a custom maven repo, and it works. But now I have a problem with a private repo. How can I specify credentials for the private repo? Answer You can set in .m2/settings.xml file Like This: And in pom.xml:

Dataflow: string to pubsub message

I’m trying to make unit testing in Dataflow. For that test, at the begging, I will start with a simple hardcoded string. The problem is that I would need to transform that string to a pubsub message. I got the following code to do that: But I get the following error: How I should create the pubsub messa…

Change “bootJar” target directory

New to gradle, facing issues in jenkins pipeline. Entire build is successful but not able to find the bootable jar of my spring project. If you can please let me know how can I move the jar from target/lib/ to /target folder. Below is my build.gradle P.S- I tried project.buildDir but that changed the build to…

How to read csv using column name in java

I have tried reading a column with its index using below code: for eg. As I am passing col index in col1, but I am not able to store the column header text in variable to print that which column is having blank value. Is there any way I can read the column to validate blank cells and then print