You are right;-) Thank you very much -----Original Message----- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Dienstag, 5. Oktober 2004 13:31 To: Maven Users List Subject: Re: 2nd question of RE: how to set path for repository and cache in .maven
Weining, You have become the victim of the infamous path seperator character: Try replacing in your paths in the build.properties file the character '\' with '/' (Unix style character), or with '\\' (double '\' character, escaping the single '\'). Martijn Weining Hao wrote: >Hi Martijn, > >Thank you very much ,but it seems that I still can not handle it by myself. > >1 I created the file build.properties in the C:\Documents and Settings\wh >2 In the build.properties file, I set the two path as following: > maven.plugin.unpacked.dir=C:\NovaTec\MT\Workspace\.maven\cache > maven.repo.local= C:\NovaTec\MT\Workspace\.maven\repository >3 Then I went back into the sample directory >(C:\Programs\andromda-bin-3.0M3-SNAPSHOT\samples\online-store\ is the path >of my sample)to run maven, but > - only the directory .maven is created in the position C:\Documents and >Settings\wh\.maven, it is empty > - Errors display: > > > org.apache.maven.MavenException: Unable to extract plugin: >C:\Programs\maven-1.0\plugins\maven-nsis-plugin-1.1.jar > at >org.apache.maven.plugin.PluginManager.unpackPlugin(PluginManager.java:941) > .......(Omitted) > --- Nested Exception --- > java.io.FileNotFoundException: >C:\Programs\andromda-bin-3.0M3-SNAPSHOT\samples\online-store\C:NovaTecMTWor k >space.mavencache\maven-nsis-plugin-1.1\META- INF\MANIFEST.MF (The filename, >directory name, or volume label syntax is incorrect) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.<init>(FileOutputStream.java:179) > at java.io.FileOutputStream.<init>(FileOutputStream.java:131) > at org.apache.maven.util.Expand.extractFile(Expand.java:147) > at org.apache.maven.util.Expand.expandFile(Expand.java:85) > ........ (Omitted) > > > > It seems that I set the wrong path, but how can I set it? > >Thanks again for your help and Look forward to your new feedback. > >Regards, >Weining > > > >-----Original Message----- >From: Martijn Dashorst [mailto:[EMAIL PROTECTED] >Sent: Dienstag, 5. Oktober 2004 10:53 >To: Maven Users List >Subject: Re: how to set path for repository and cache in .maven > > >Weining, > >See the User Guide on : >http://maven.apache.org/reference/user-guide.html#Behavioural_Properties > >Here you'll find maven.repo.local and maven.plugin.unpacked.dir doing >what you want. Put them in your build.properties in the > >C:\Documents and Settings\wh > >directory. > > >Martijn > > >Weining Hao wrote: > > > >>Hi, >> >>We try to use Maven to build samples of AndroMDA. We have done the >> >> >following > > >>steps: >>1. Download Maven and extract into C:\Programs\maven-1.0 >>2. Download AndroMDA and extract into >>C:\Programs\andromda-bin-3.0M3-SNAPSHOT >>3. Set JAVA_HOME; MAVEN_HOME; ANDROMDA_HOME; add the >>C:\Programs\maven-1.0\bin into the path in the system >>4. Under a sample of AndroMDA we run maven, \.maven\repository and >>\.maven\cache are created in the path C:\Documents and Settings\wh, which >> >> >is > > >>our profile. >> >>Because the size of our profile space is limited, We want to create the >>repository and cache in other place in our computer. >> >>5. To create the repository, We used this command line ==> >>"C:\Programs\maven-1.0\bin>install_repo.bat >>C:\NovaTec\MT\Workspace\.maven\repository", it works, the repository is >>created in the right position, including lots *.jar files. >>6. Under the sample run maven again >> >> >>But \.maven\repository and \.maven\cache are still created in the path >>C:\Documents and Settings\wh, and there is no change of new repository. >> >>What's the reason? How can we really create our repository and cache under >>another directory? >> >>We would be grateful if you can answer our question. We are looking forward >>to your feedback. >> >>Best Regards, >>Weining, Serafettin >> >> >>--------------------------------------------------------------------- >>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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
