# How can I solve the error "mvn -B -DskipTests clean package 6 info 11/10/2022 18:52:19 sh: mvn: not found" while building an java application? ### Module - Harness CI ### Environment - Infrastructure: Google Kubernetes Engine | OS: Linux ### Issue Failing to integrate Maven in harness. Pipline fails with the following error. ``` mvn -B -DskipTests clean package 6 info 11/10/2022 18:52:19 sh: mvn: not found ``` ### Resolution Fetch the maven image from DockerHub as a agent or a machine to run maven commands. ### Diagnostic Steps - Create a Docker Connector to establish communication between DockerHub & Harness CI - Add a Run Step to pull the Maven Image from the official DockerHub Registry. Specify the image name under the Run Step configuration settings - For Ex: Image - ```rvancea/maven-chrome-jdk8``` & Connector - ```(Docker Connector created by you)```