${settings.localRepository} should work IIRC.
-----Original Message-----
From: Brewster, Richard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2008 9:57 AM
To: Maven Users List
Subject: RE: maven.repo.local, again
Does Maven provide a property with the path to the local repo? I think
the answer is 'no'. I define a real property in my settings.xml,
redundantly with <localRepository>.
<localRepository>c:/m2/repository</localRepository>
<profile>
<id>my-profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<local.repository>c:/m2/repository</local.repository>
</properties>
...
<localRepository> tells Maven where the repo is, but it is NOT a
property. You can access it like a property with ${localRepository},
but this does not resolve to the value you expect.
Richard Brewster
Senior Associate
Perrin Quarles Associates
[EMAIL PROTECTED]
(434) 817-2640
-----Original Message-----
From: Beelen, M. - SPLXL [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2008 3:42 AM
To: Maven Users List
Subject: RE: maven.repo.local, again
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, May 05, 2008 6:59 PM
To: [email protected]
Subject: maven.repo.local, again
Is there any property set by maven that tells me where the local build
repository is?
I.e., once it resolves where it is going to build, will it tell me?
I think the answer is just plain no, but I want to re-confirm.
tia,
-Russ
---------------------------------------------------------------------
Hello Russ,
You local repository is in %USER_HOME%\.m2\repository unless your
specified otherwise in your settings.xml (located in %USER_HOME%\.m2) or
your maven config (settings.xml in %MAVEN_HOME%\conf)
When I run mvn install near the end the output shows:
[INFO] [jar:jar]
[INFO] Building jar:
%PROJECT_HOME%\target\${artifactId}-${pom-version}.jar
[INFO] [install:install]
[INFO] Installing %PROJECT_HOME%\target\${artifactId}-${pom-version}.jar
to
%LOCAL_M2_REPO%\${groupId}\${artifactId}\${pom-version}\${artifactId}-${
pom-version}.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
It doesn't set any environment settings, which is a good thing IMHO.
With regards,
Marco
**********************************************************************
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee only. If
you are not the addressee, you are notified that no part of the e-mail
or any attachment may be disclosed, copied or distributed, and that any
other action related to this e-mail or attachment is strictly
prohibited, and may be unlawful. If you have received this e-mail by
error, please notify the sender immediately by return e-mail, and delete
this message.
Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or
its employees shall not be liable for the incorrect or incomplete
transmission of this e-mail or any attachments, nor responsible for any
delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch
Airlines) is registered in Amstelveen, The Netherlands, with registered
number 33014286
**********************************************************************
---------------------------------------------------------------------
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]