Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6939

ITs fail when MAVENCODEBASE is relative

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Integration Tests
    • None

    Description

      Reproducer:

      osipovmi@deblndw011x:~/var/Projekte/maven-integration-testing
      $ export MAVENCODEBASE=../maven
      $ ./run-its.sh
      ...
      [INFO] Maven Core ITs suite 2.1-SNAPSHOT .................. FAILURE [  5.221 s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 57.130 s
      [INFO] Finished at: 2020-06-10T11:09:06+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.0.0:run (unpack-mav                                                                                                                  en-distro) on project core-it-suite: An Ant BuildException has occured: src '/var/osipovmi/Projek                                                                                                                  te/maven-integration-testing/maven/apache-maven/target/apache-maven-bin.zip' doesn't exist.
      [ERROR] around Ant part ...<unzip src="../maven/apache-maven/target/apache-maven-bin.zip" dest="/                                                                                                                  var/osipovmi/Projekte/maven-integration-testing/core-it-suite/target/apache-maven">... @ 5:158 in                                                                                                                   /var/osipovmi/Projekte/maven-integration-testing/core-it-suite/target/antrun/build-main.xml
      [ERROR] -> [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 a                                                                                                                  rticles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :core-it-suite
      

      It is apparently not obvious that the env var is is normalized, nested or cannot be relative.

      rfscholte, olamy, can you both have a look? We either should fail properly or support it.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: