zhongliang zhang schrieb:
So,if I did not create manually,it will use the
${MAVEN_HOME}\conf\settings.xml by default,is it right?
It is used even when you create a private settings.xml in ~/.m2. The content of the two files is merged, with settings in your private one taking precedence.
In addition,I set the following property in the settings.xml <localRepository>C:/maven-2.0.7/sample/.m2/repository</localRepository> so,the local repository will be changed to the directory specified.
Yes.
BTW,I have set the <offline>true</offline> but it still does not work when I run mvn with no connection to the Internet(at home),unless I add the -o option that to make it work.why the settings not work? thanks again.
I have personally never used one of mavens offline features. Try searching the archives of this mailinglist ([1], [2]), there are many threads about this topic. If you still have questions after reading the existing threads ask them in a new thread.
-Tim [1] http://www.nabble.com/Maven---Users-f178.html [2] http://mail-archives.apache.org/mod_mbox/maven-users/
On 29/09/2007, Tim Kettler <[EMAIL PROTECTED]> wrote:Hi, You have to create it by hand if you want to configure something. As it would be empty by default it is just not created automatically. -Tim zhongliang zhang schrieb:I get the information from the maven site like the following: You can specify your user configuration in ${user.home}/.m2/settings.xml . But I can not find such file in my system,the os of my system is windows,so it should be located at c:\document and settings\administrator\.m2\settings.xml when I start the maven turorial,I run the command: mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app and then maven generates the .\m2\reposity direcotry automatically,and download some files into it. I think the file ${MAVEN_HOME}\conf\settings.xml is on work,because I need a proxy to connect to the Internet to download dependency files,I configured the proxy in the ${MAVEN_HOME}\conf\settings.xml,and it works. But I still can not find the settings.xml file in the ~\.m2 folder. Am I setting something wrong? Thanks for any advice and instructions. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
