Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69121

Maven Integration plugin cannot find POM.xml

XMLWordPrintable

      Hi Jenkins

      It seems like a bug within the Maven Integration Plugin, can't find the POM.XML location even though the POM exists in the correct place, how to sole this here is the console output
      Started by user
      bechir bejaoui
      Running as SYSTEM
      Building in workspace /var/lib/jenkins/workspace/Maven_Project
      The recommended git tool is: NONE
      using credential Jenkins
      > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Maven_Project/.git # timeout=10
      Fetching changes from the remote Git repository
      > /usr/bin/git config remote.origin.url git@gitlab.com:me780411/j2ee.git # timeout=10
      Fetching upstream changes from git@gitlab.com:me780411/j2ee.git
      > /usr/bin/git --version # timeout=10
      > git --version # 'git version 2.25.1'
      using GIT_SSH to set credentials Jenkins
      > /usr/bin/git fetch --tags --force --progress – git@gitlab.com:me780411/j2ee.git +refs/heads/:refs/remotes/origin/ # timeout=10
      > /usr/bin/git rev-parse refs/remotes/origin/main^{commit} # timeout=10
      Checking out Revision a6a3d2f86837656cde1dfe1f29075463b1b99b5d (refs/remotes/origin/main)
      > /usr/bin/git config core.sparsecheckout # timeout=10
      > /usr/bin/git checkout -f a6a3d2f86837656cde1dfe1f29075463b1b99b5d # timeout=10
      Commit message: "chargement du projet"
      > /usr/bin/git rev-list --no-walk a6a3d2f86837656cde1dfe1f29075463b1b99b5d # timeout=10
      Parsing POMs
      ERROR: Failed to parse POMs
      org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [FATAL] Non-resolvable parent POM for com.example.maven-project:server:1.0-SNAPSHOT: Could not find artifact com.example.maven-project:maven-project:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 6, column 11
      [FATAL] Non-resolvable parent POM for com.example.maven-project:webapp:1.0-SNAPSHOT: Could not find artifact com.example.maven-project:maven-project:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 6, column 11

      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:397)
      at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:370)
      at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:340)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1330)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1124)
      at hudson.FilePath.act(FilePath.java:1200)
      at hudson.FilePath.act(FilePath.java:1183)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:985)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:689)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
      at hudson.model.Run.execute(Run.java:1897)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:101)
      at hudson.model.Executor.run(Executor.java:442)
      Finished: FAILURE

            Unassigned Unassigned
            bechir888 bechir bejaoui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: