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

File not found when running maven pom.xml in sub directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Maven 3.0.3 on RHEL5

      when running `top level maven target` with POM in subdirectory such as 1/2/3/pom.xml i get the error

      $ /export/home/jenkins/jenkins-ci/tools/maven_3.0.3/bin/mvn -f 1/2/3/pom.xml clean
      [INFO] Scanning for projects...
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   
      [ERROR]   The project  (/export/home/jenkins/jenkins-ci/jobs/myproject/workspace/1/2/3/1/2/3/pom.xml) has 1 error
      [ERROR]     Non-readable POM /export/home/jenkins/jenkins-ci/jobs/myproject/workspace/1/2/3/1/2/3/pom.xml: /export/home/jenkins/jenkins-ci/jobs/myproject/workspace/1/2/3/1/2/3/pom.xml (No such file or directory)
      [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.
      

      for some strange reason jenkins's maven looks for 1/2/3/1/2/3/pom.xml instead of 1/2/3/pom.xml and thus build fails

      when running

      /export/home/jenkins/jenkins-ci/tools/maven_3.0.3/bin/mvn -f 1/2/3/pom.xml clean

      from command line, build is successful !

      not sure, but is it related to https://issues.jenkins-ci.org/browse/JENKINS-5044 ?

            Unassigned Unassigned
            miked michael d
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: