those 2 questions don't have a real meaning in Maven 2 & 3: install doesn't 
use maven.repo.local [1]

perhaps you're looking for settings configuration [2], ie the Maven 2 & 3 way 
to configure local repository location

Regards,

Hervé

[1] http://maven.apache.org/plugins/maven-install-plugin/install-mojo.html

[2] http://maven.apache.org/ref/3.0.4/maven-settings/settings.html

Le dimanche 16 décembre 2012 23:36:28 jinwei zhu a écrit :
> thanks, and I am using maven3, and I just want to make those questions
> clear, and then I could get better to understand maven.
> Could anyone answer those two questions?
> 
> 2012/12/16 Stephen Connolly <[email protected]>:
> > Please stop looking at the maven 1.x stuff.
> > 
> > Maven 1.x was a bad design.
> > 
> > 2.0 onwards is a different methodology.
> > 
> > Looking at 1.x docs will only teach you bad patterns.
> > 
> > On Sunday, 16 December 2012, jinwei zhu wrote:
> >> Ok, and thanks again!
> >> But I still want to make the following questions clear :
> >> 1. Since maven.repo.local is not a built in property, how Maven Core
> >> itself and/or plugins will check to configure things if I use command
> >> "mvn -Dmaven.repo.local=xxx install " ?   In another words, why  Maven
> >> Core itself and/or plugins will check to config local repository if I
> >> use command "mvn -Dmaven.repo.local=xxx install " ?
> >> 2. In this page
> >> http://maven.apache.org/maven-1.x/reference/properties.html , it tells
> >> us "maven.repo.local" is Built-in Maven Properties, and it's default
> >> value is "${maven.home.local}/repository" .   So, does this conflict
> >> with your idea ?
> >> 
> >> 2012/12/16 Anders Hammar <[email protected] <javascript:;>>:
> >> >> Thanks,Hervé. I have read some maven books and the url link [1].  But
> >> >> they do not tell us where are the built-in maven properties such as
> >> >> "maven.repo.local" and do not tell us if maven3 still support built-in
> >> >> maven properties like maven1. It is confuing me much!
> >> > 
> >> > maven.repo.local is not a built in property. What you don't seems to
> >> > distinguish between is built in properties, which for example would be
> >> > settings.localRepository or project.version, and Java system
> >> > properties,
> >> > such as maven.repo.local or skipTests, which Maven Core itself and/or
> >> > plugins checks to configure things. Just because you can specify a Java
> >> > system property to configure something in the build doesn't mean that
> >> > property exists by default in a build.
> >> > 
> >> > Also, please do not start multiple mail threads about the same topic.
> >> > One
> >> > thread is enough.
> >> > 
> >> > /Anders
> >> > 
> >> >> 2012/12/16 Hervé BOUTEMY <[email protected] <javascript:;>>:
> >> >> > yes, there is interpolation in poms: see the reference [1]
> >> >> > 
> >> >> > I suppose this is treated with more explanation in any Maven book
> >> >> > 
> >> >> > Regards,
> >> >> > 
> >> >> > Hervé
> >> >> > 
> >> >> > 
> >> >> > [1] http://maven.apache.org/ref/3.0.4/maven-model-builder/
> >> >> > 
> >> >> > Le dimanche 16 décembre 2012 15:26:45 jinwei zhu a écrit :
> >> >> >> Hi, community,
> >> >> >> 
> >> >> >>       In this url
> >> >> >> 
> >> >> >> "http://maven.apache.org/maven-1.x/reference/properties.html"; , it
> >> >> >> intruduces many maven's built-in properties, for example,
> >> >> >> maven.repo.local, but it is maven 1.x ,  Do these properties still
> >> >> >> exist in maven3 ? Could we use these properties in pom.xml like
> >> >> >> ${maven.repo.local} ? It seems ${maven.repo.local} do not work if
> >> >> >> without defining "maven.repo.local" in maven command like "mvn
> >> >> >> -Dmaven.repo.local=xxx install".
> >> >> >> 
> >> >> >> Best regards!
> >> >> >> 
> >> >> >> -------------------------------------------------------------------
> >> >> >> --
> >> >> >> To unsubscribe, e-mail:
> >> >> >> [email protected]<javascript:;>
> >> >> >> For additional commands, e-mail:
> >> >> >> [email protected]<javascript:;>
> >> >> > 
> >> >> > --------------------------------------------------------------------
> >> >> > -
> >> >> > To unsubscribe, e-mail:
> >> >> > [email protected]<javascript:;>
> >> >> > For additional commands, e-mail:
> >> >> > [email protected]<javascript:;>
> >> >> 
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [email protected]
> >> >> <javascript:;>
> >> >> For additional commands, e-mail:
> >> >> [email protected]<javascript:;>
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected] <javascript:;>
> >> For additional commands, e-mail: [email protected] <javascript:;>
> 
> ---------------------------------------------------------------------
> 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