You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2020/07/17 19:08:00 UTC

[jira] [Commented] (SUREFIRE-1819) MAVEN_OPTS=-Dmaven.repo.local env variable not used when running tests

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

Tibor Digana commented on SUREFIRE-1819:
----------------------------------------

[~jorsol]
It is under the control of Maven and not the Surefire. If it was this problem then we would have such problems in the Apache. It is hardly probable case. Anyway investigate your lost, run the tests with debug level {{mvn -X test}} and see all the paths for the *classpaths* and you should see the expected paths pointing to the artifacts in your local repo.

> MAVEN_OPTS=-Dmaven.repo.local env variable not used when running tests
> ----------------------------------------------------------------------
>
>                 Key: SUREFIRE-1819
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1819
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 3.0.0-M5
>            Reporter: Jorge Solorzano
>            Priority: Major
>
> The local repo configuration using:
>  {color:#569cd6}MAVEN_OPTS{color}={color:#ce9178}-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository{color}
>   
> Is not working when running the tests, it downloads all the dependencies again in the $HOME directory.



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