You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by pkbhavani <pk...@gmail.com> on 2008/11/07 23:00:33 UTC
${localRepository} property not recognized in Maven2
<echo>
settings.localRepository=${settings.localRepository}
</echo>
I have maven-antrun-plugin task that needs location of the local Repository,
but ${settings.localRepository} is not recognizing, I have
<localRepository> defined in the conf/settings.xml file in maven
installation.
-praveen
--
View this message in context: http://www.nabble.com/%24%7BlocalRepository%7D-property-not-recognized-in-Maven2-tp20389692p20389692.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ${localRepository} property not recognized in Maven2
Posted by Gregory BOISSINOT <gr...@gmail.com>.
It's strange.
${settings.localRepository} prints the local repository location defined in
the settings.xml.
There is a settings.xml file in $M2_HOME/conf directory but it can be have
an another settings.xml in $USER_HOME/.m2 that takes precedence.
May be you have a settings.xml file in this last directory with a
<localRepository> section and this value that is printed.
--
View this message in context: http://www.nabble.com/%24%7BlocalRepository%7D-property-not-recognized-in-Maven2-tp20389692p20405677.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ${localRepository} property not recognized in Maven2
Posted by pkbhavani <pk...@gmail.com>.
Yes I am sure, ${settings.localRepository} does'nt print the local repo
location, I am running Maven 2.0.9 latest download.
-Praveen
--
View this message in context: http://www.nabble.com/%24%7BlocalRepository%7D-property-not-recognized-in-Maven2-tp20389692p20402755.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ${localRepository} property not recognized in Maven2
Posted by Gregory BOISSINOT <gr...@gmail.com>.
Are you sure?
Its works for me. A configuration example :
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<echo>
settings.localRepository=${settings.localRepository}
</echo>
</tasks>
</configuration>
</plugin>
pkbhavani wrote:
>
> <echo>
> settings.localRepository=${settings.localRepository}
> </echo>
>
>
> I have maven-antrun-plugin task that needs location of the local
> Repository, but ${settings.localRepository} is not recognizing, I have
> <localRepository> defined in the conf/settings.xml file in maven
> installation.
>
> -praveen
>
--
View this message in context: http://www.nabble.com/%24%7BlocalRepository%7D-property-not-recognized-in-Maven2-tp20389692p20401273.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org