[ 
https://jira.codehaus.org/browse/MNG-5790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=365478#comment-365478
 ] 

Filipe Sousa commented on MNG-5790:
-----------------------------------

It's not working
[fsousa@nostradamus smtp-governor]$ (develop) cat .mvn/maven.config
-s ${maven.multiModuleProjectDirectory}/.m2/settings-egoi.xml

[fsousa@nostradamus smtp-governor]$ (develop) mvn clean
[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: 
/Users/fsousa/Projects/egoi/smtp-governor/${maven.multiModuleProjectDirectory}/.m2/settings-egoi.xml

The file exists
[fsousa@nostradamus smtp-governor]$ (develop) file 
/Users/fsousa/.m2/settings-egoi.xml
/Users/fsousa/.m2/settings-egoi.xml: XML  document text

For this particular project I need to run maven with mvn -s 
~/.m2/settings-egoi.xml clean. But with maven 3.3.1 I'm trying to pass the "-s 
~/.m2/settings-egoi.xml" part to .mvn/maven.config


> Project specific options cannot resolve paths
> ---------------------------------------------
>
>                 Key: MNG-5790
>                 URL: https://jira.codehaus.org/browse/MNG-5790
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>         Environment: java version "1.8.0_40"
> Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
> Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
>            Reporter: Filipe Sousa
>
> I have "-s ~/.m2/settings-foo.xml" in my 
> ${maven.projectBasedir}/.mvn/maven.config and maven complains about missing 
> file.
> [ERROR] The specified user settings file does not exist: 
> /Users/fsousa/Projects/foo/governor/~/.m2/settings-foo.xml
> I tried with "-s ${user.home}/.m2/settings-foo.xml" and this time
> [ERROR] The specified user settings file does not exist: 
> /Users/fsousa/Projects/foo/governor/${user.home}/.m2/settings-foo.xml



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to