So,if I did not create manually,it will use the ${MAVEN_HOME}\conf\settings.xml by default,is it right? 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. 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.
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]