Tag : maven

I’m trying to Dockerize my Maven Java 11 project but I’m having some issues with it. My parent pom modules look like this: <modules> <module>api</module> <module>domain</module> <module>services</module> </modules> And they have dependencies between them (services -> domain). I want to download everything except my own dependencies, which I haven’t compiled yet <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.1.2</version> ..

Read more

In my DockerFile I have my FROM line like so : FROM openjdk:11-jdk-alpine as build Previously it was on java 8 and everything was working fine. Now I get this error : C:devshape-shop-back-end>docker build . [+] Building 2.0s (5/5) FINISHED => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 1.31kB 0.0s => ..

Read more

My project has the structure like this [1]: https://i.stack.imgur.com/vH8ab.png I want to build a docker image including the sunhomo_admin.jar. So I add dockerfile-maven-plugin plugin in sunhomo_admin/pom.xml and create a dockerfile (sunhomo_admin/Dockerfile)。 [2]: https://i.stack.imgur.com/nuD2j.png [3]: https://i.stack.imgur.com/vd6TO.png When I execute "mvn clean package", I get the docker image. But the image contains all files in sunhomo_admin/target, not ..

Read more

i installed jenkins on docker via command docker run -p 8080:8080 -p 50000:50000 -d -v jenkins_home:/var/lib/docker/volumes/jenkins_home/_data jenkins/jenkins:lts I specified the jenkins_home: /var/lib/docker/volumes/jenkins_home/_data but i did not understand why so jenkins it displays : Home directory /var/jenkins_home image here image here and what is weird is that this directory (/var/jenkins_home) is empty: /var/jenkins_home# ll total 0 ..

Read more

I am trying a maven pipeline in jenkins on my windows machine. I am running the jenkins container through below command: docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins My Jenkinsfile is as follows: pipeline { agent { docker { image ‘maven:3.8.1-adoptopenjdk-11’ args ‘-v /root/.m2:/root/.m2’ } } stages { stage(‘Build’) { steps { sh ‘mvn -B ..

Read more

I have a number of spring boot microservices dependent on local library projects (jars) Consider the following logical_app_folder –microservice A –microservice B –microservice C –local-lib-X –local-lib-Y Microservices A, B and C have dependencies on lib-X and lib-Y (through pom.xml) Local development flow First mvn clean install local-lib-X and mvn clean install local-lib-Y. This makes the ..

Read more

We migrate "Artifactory" under https, I have included certification file with with keytool into my docker in which include maven for building the project, all thing goes well right now , but i’m facing an issue in a particular jar with the next error : [ERROR] Failed to execute goal on project companyName: Could not ..

Read more

Previously my build is running fine but all of a sudden it’s failing with the below error. Failed to collect dependencies at ar.com.fdvs:DynamicJasper:jar:5.3.0 -> net.sf.jasperreports:jasperreports:jar:6.8.0 -> com.lowagie:itext:jar:2.1.7.js6: Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js6: Could not transfer artifact com.lowagie:itext:pom:2.1.7.js6 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jaspersoft-third-party (http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/, default, releases+snapshots), jr-ce-releases (http://jaspersoft.jfrog.io/jaspersoft/jr-ce-releases, default, releases+snapshots)] -> ..

Read more

I am trying to build a huge docker image in an optimized way by applying the principles of incremental building explained here https://www.docker.com/blog/intro-guide-to-dockerfile-best-practices/ . Unfortunately each time I run the build command docker restarts building the image from scratch, and so I have to download again all the maven dependencies. Here is the build command: ..

Read more