Can you elaborate a little on where you are trying to use
${settings.localRepository}. 

If you add the following AntRun plugin to your pom.xml to echo the
expression value, does it not display the proper path to your local
repository?


          <plugin>
              <artifactId>maven-antrun-plugin</artifactId>
              <executions>
                  <execution>
                    <phase>validate</phase>
                    <configuration>
                      <tasks>
                          <echo message="settings.localRepository: 
${settings.localRepository}"/>
                      </tasks>
                    </configuration>
                    <goals>
                        <goal>run</goal>
                    </goals>
                  </execution>
              </executions>
          </plugin>


Run 'mvn validate' to check the output.

-Brad


On Wed, 2007-02-28 at 16:25 +0100, Thomas Colin de Verdière wrote:
> Yes i downloaded Maven 2.0.5
> 
> Brad Szabo a écrit :
> > You are using Maven 2 right?
> >
> > On Wed, 2007-02-28 at 15:40 +0100, Thomas Colin de Verdière wrote:
> >   
> >> Thanks but i tried and it didn't work. You are right it is written in 
> >> the document on the maven site. ..
> >>
> >> Brad Szabo a écrit :
> >>     
> >>> The localRepository property is configured in settings.xml, therefore
> >>> you can access it using ${settings.localRepository}. (The default is
> >>> ~/.m2/repository). 
> >>>
> >>> Hope this helps,
> >>> -Brad
> >>>
> >>> References:
> >>> http://maven.apache.org/guides/mini/guide-configuring-maven.html
> >>> http://maven.apache.org/settings.html
> >>>
> >>>
> >>> On Wed, 2007-02-28 at 10:39 +0100, Thomas Colin de Verdière wrote:
> >>>   
> >>>       
> >>>> Hello,
> >>>> i try to filter resources in my project to generate a build.properties 
> >>>> file.
> >>>> I would like to have the path to the localRepository. So i use 
> >>>> ${localRepository} as it is said in "BetterBuilds with Maven" but it 
> >>>> doesn't work.
> >>>> I tried the following properties for testing :
> >>>> MAVEN_REPO=${project.class.name}
> >>>> MAVEN_REPO=${localRepository}
> >>>> MAVEN_REPO=${localRepository.class.name}
> >>>>
> >>>> and here is the result :
> >>>> MAVEN_REPO=org.apache.maven.project.MavenProject
> >>>> MAVEN_REPO=${localRepository}
> >>>> MAVEN_REPO=org.apache.maven.project.MavenProject
> >>>>
> >>>> So the localRepository seems to be a 
> >>>> org.apache.maven.project.MavenProject  ??
> >>>>
> >>>> Thanks for helping,
> >>>> Thomas
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> 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]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to