In build.sh script
MAVEN_BUILD_IMAGE=${MAVEN_BUILD_IMAGE:-${SUPP_DOCKER_REPO}paasmule/java-maven-git-alpine:3.3-jdk-8-alpine }
paasmule/java-maven-git-alpine:3.3-jdk-8-alpine is not working, if i change it to any other repo its giving below error during build.
[INFO] -------------------------< org.infosys:utils >--------------------------
[INFO] Building utils 1.0.0 [3/7]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from jenkins: http://repo.jenkins-ci.org/releases/org/jenkins-ci/main/cli/2.49/cli-2.49.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] idpservices 1.0.0 .................................. SUCCESS [ 0.932 s]
[INFO] entities ........................................... SUCCESS [ 2.655 s]
[INFO] utils .............................................. FAILURE [ 1.155 s]
[INFO] dataapi ............................................ SKIPPED
[INFO] businessapi ........................................ SKIPPED
[INFO] restapi ............................................ SKIPPED
[INFO] authservice 1.0.0 .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.219 s
[INFO] Finished at: 2022-10-20T11:45:00Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project utils: Could not resolve dependencies for project org.infosys:utils:jar:1.0.0: Failed to collect dependencies at org.jenkins-ci.main:cli:jar:2.49: Failed to read artifact descriptor for org.jenkins-ci.main:cli:jar:2.49: Could not transfer artifact org.jenkins-ci.main:cli:pom:2.49 from/to jenkins (http://repo.jenkins-ci.org/releases/): Failed to transfer file: http://repo.jenkins-ci.org/releases/org/jenkins-ci/main/cli/2.49/cli-2.49.pom. Return code is: 308 , ReasonPhrase:Permanent Redirect. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :utils
[root@idp openIDP]#
In build.sh script
MAVEN_BUILD_IMAGE=${MAVEN_BUILD_IMAGE:-${SUPP_DOCKER_REPO}paasmule/java-maven-git-alpine:3.3-jdk-8-alpine }
paasmule/java-maven-git-alpine:3.3-jdk-8-alpine is not working, if i change it to any other repo its giving below error during build.
[INFO] -------------------------< org.infosys:utils >--------------------------
[INFO] Building utils 1.0.0 [3/7]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from jenkins: http://repo.jenkins-ci.org/releases/org/jenkins-ci/main/cli/2.49/cli-2.49.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] idpservices 1.0.0 .................................. SUCCESS [ 0.932 s]
[INFO] entities ........................................... SUCCESS [ 2.655 s]
[INFO] utils .............................................. FAILURE [ 1.155 s]
[INFO] dataapi ............................................ SKIPPED
[INFO] businessapi ........................................ SKIPPED
[INFO] restapi ............................................ SKIPPED
[INFO] authservice 1.0.0 .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.219 s
[INFO] Finished at: 2022-10-20T11:45:00Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project utils: Could not resolve dependencies for project org.infosys:utils:jar:1.0.0: Failed to collect dependencies at org.jenkins-ci.main:cli:jar:2.49: Failed to read artifact descriptor for org.jenkins-ci.main:cli:jar:2.49: Could not transfer artifact org.jenkins-ci.main:cli:pom:2.49 from/to jenkins (http://repo.jenkins-ci.org/releases/): Failed to transfer file: http://repo.jenkins-ci.org/releases/org/jenkins-ci/main/cli/2.49/cli-2.49.pom. Return code is: 308 , ReasonPhrase:Permanent Redirect. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :utils
[root@idp openIDP]#