Tag : maven

“`[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ranger-presto-plugin-shim: Compilation failure: Compilation failure: [ERROR] /ranger/ranger-presto-plugin-shim/src/main/java/org/apache/ranger/authorization/presto/authorizer/RangerSystemAccessControlFactory.java:[24] error: cannot find symbol [ERROR] symbol: static throwIfUnchecked [ERROR] location: class [ERROR] /ranger/ranger-presto-plugin-shim/src/main/java/org/apache/ranger/authorization/presto/authorizer/RangerSystemAccessControlFactory.java:[57,6] error: cannot find symbol [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ranger-presto-plugin-shim: Compilation failure at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) ..

Read more

I use docker to run my Spring Boot application with IntelliJ IDEA. I can build my image of my application, but, if I run my image, I’ll get the message as below: Failed to deploy ‘centre Image id: some/centre:latest’: java.lang.NullPointerException Several days ago I can use same actions to run my docker image which is ..

Read more

I can run the following line from the command line with correct results: docker run –rm -v $PWD/java-app:/app -v /root/.m2/:/root/.m2/ -w /app maven:3-alpine mvn -B -DskipTests clean package Based on the previous command, I created the following script: echo "******************" echo "***Building jar***" echo "******************" docker run –rm -v $PWD/java-app:/app -v /root/.m2/:/root/.m2/ -w /app maven:3-alpine ..

Read more

I’m trying to build a docker image using maven plugin.I’m using Spotify docker plugin in my spring boot application. Here is the plugin section of my pom.xml <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.spotify</groupId> <artifactId>dockerfile-maven-plugin</artifactId> <version>1.4.13</version> <configuration> <repository>${docker.image.prefix}/${docker.image.name}</repository> <tag>${project.version}</tag> </configuration> </plugin> </plugins> When I run my mvn dockerfile:build i have the following error: Could not ..

Read more

I am new to docker, and I am trying to setup docker for spring boot project. Here is my Dockerfile FROM maven:3.6.3-jdk-11-slim AS build WORKDIR usr/src/springboot COPY . ./ RUN mvn install RUN mvn clean package # # Package stage # FROM openjdk:11-jre-slim ARG JAR_NAME="springboot-0.0.1-SNAPSHOT" WORKDIR /usr/src/springboot EXPOSE 8080 COPY –from=build /usr/src/springboot/target/${JAR_NAME}.jar ./springboot.jar CMD ["java","-jar", ..

Read more