maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (Jira)" <j...@apache.org>
Subject [jira] [Commented] (MNG-6939) ITs fail when MAVENCODEBASE is relative
Date Wed, 10 Jun 2020 18:31:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17132609#comment-17132609
] 

Robert Scholte commented on MNG-6939:
-------------------------------------

I'll add a fix for {{cmd}}.
While at it, let's add another improvement in this ticket:
In case the build of maven core fails, it should exit the script.
Again, I'll fix it for {{cmd}}, that's something I can verify.

> ITs fail when MAVENCODEBASE is relative
> ---------------------------------------
>
>                 Key: MNG-6939
>                 URL: https://issues.apache.org/jira/browse/MNG-6939
>             Project: Maven
>          Issue Type: Bug
>          Components: Integration Tests
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>            Priority: Major
>
> Reproducer:
> {noformat}
> 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
> {noformat}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message