Category : pom.xml

I have a simple Spring boot application for which I want to build docker image using Jenkins but getting error : Jenkins Error: + /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/M3/bin/mvn clean package -DreleaseVersion=main.39.4c278b3.102 -DdevelopmentVersion=0.0.1-SNAPSHOT -DskipTests -Pdocker docker:push [INFO] Scanning for projects… Progress (2): 20 kB | 14 kB Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 37 kB/s) Downloaded from central: ..

Read more

I have a multi-module maven project. The parent folder contains a pom.xml and a docker-compose file. The two children folders(two different services) contain a pom.xml and e Dockerfile each one. The parent folder is calculatorws and the two children folders are calculatorws-rest and calculatorws-calculator. I want to launch these two children services at the same ..

Read more

I have a multi-module maven project. The parent folder contains a pom.xml and a docker-compose file. The two children folders(two different services) contain a pom.xml and e Dockerfile each one. The parent folder is calculatorws and the two children folders are calculatorws-rest and calculatorws-calculator. I want to launch these two children services at the same ..

Read more

I’m trying to run a project from a docker-compose file. When it tries to build one of the services I get the error: Non-resolvable parent POM for com.company:calculatorws-rest:0.0.1: Could not find artifact com.company:calculatorws:pom:0.0.1 in central (https://repo.maven.apache.org/maven2) and ‘parent.relativePath’ points at wrong local POM @ line 6, column 10 -> [Help 2] The pom.xml file of ..

Read more

I have a pom.xml file which I managed to use the above command to extract and assign data to a variable. The data is extracted form <version>1.1.99-THIRD-PARTY-CARD-SNAPSHOT</version> Tested locally and it works fine When I do the same inside my Dockerfile, the variable is not assigned to anything i.e its blank What is the behavior ..

Read more

I am currently in the process of migrating the artifact repository from Nexus to AWS ECR. Here is my plugin details in pom, <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.4.13</version> <executions> <execution> <id>clean-local</id> <phase>clean</phase> <goals> <goal>removeImage</goal> </goals> <configuration> <imageName>${project.build.finalName}:latest</imageName> <skipDocker>${skip.docker}</skipDocker> </configuration> </execution> <execution> <id>clean-nexus</id> <phase>clean</phase> <goals> <goal>removeImage</goal> </goals> <configuration> <imageName>${docker.image.prefix}/${project.build.finalName}:${project.version}</imageName> <skipDocker>${skip.docker}</skipDocker> </configuration> </execution> <execution> <id>build-image</id> <phase>package</phase> <goals> <goal>build</goal> ..

Read more

I have the following multi-stage dockerfile that attempts to copy each module of my multi-module java maven project and build my ear file using mvn clean install. dockerfile: # Copy files from local to maven image and build ear FROM maven:3.5-jdk-8 AS build COPY module1 /usr/src/app/src COPY module2 /usr/src/app/src COPY module3 /usr/src/app/src COPY pom.xml /usr/src/app ..

Read more