Re: setting maven.repo.local property for all projects

2003-06-15 Thread Brett Porter
Its intended each user have their own. I originally thought thisa was a 
bad idea, but have since seen the light when people started overwriting 
each other by not changing version numbers :)

In the next release, the default repo location will be ~/.maven/repository

Cheers,
Brett
tek1 wrote:
Thanks Brett.

The MAVEN_OPTS suggestion looks great and I will give it a try.  Thank you.

For a particular Maven installation, would it be possible to specify 
build.properties in MAVEN_HOME?  Otherwise, wouldn't each user on a 
local machine have to set this to use the local repository?

Thank you again.



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


Re: setting maven.repo.local property for all projects

2003-06-13 Thread Colin Sampaleanu
There is another bug related to the repo override which I reported a 
long time ago
 http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-224
and I don't think has been fixed. Effectively, repo overrides don't work 
as far as plugins are concerned. Not necessarilly much of an issue for 
the plugins which ship with maven, since all their dependencies are on 
iBiblio, but a problem for adding in your own plugins.

Brett Porter wrote:

Its user's home (Java's ${user.home}).

Unfortunately, Cygwin doesn't figure that out properly, so you have to
put it under Window's HOME. If you do echo %HOME% in cmd.exe, you'll see
it is probably "C:\Documents And Settings\tek1".
I might investigate this and either have cygwin do a translation of the
HOME variable, or specify user.home on the command line.
You can probably bypass all of this for now and do
export MAVEN_OPTS=-Duser.home=`cygpath -pw /home/tek1`, then put
build.properties in there.
Cheers,
Brett
On Fri, 2003-06-13 at 15:50, tek1 wrote:
 

Hi Brett.

Thanks for your reply.

Is $HOME the user's home directory or MAVEN_HOME?

I tried placing build.properties in MAVEN_HOME as well as my user home 
directory (I'm using Cygwin on Win2k, so my home directory is 
"/cygwin/home/tek1").

However, neither setting worked...

Please advise.

Thank you again and have a nice evening.



At 15:10 03/06/13 +1000, you wrote:
   

put it in $HOME/build.properties instead. (this is in the same section -
showing it takes precedence).
I think driver.properties is now inside maven.jar and not loaded from
bin/. I'll submit a patch to the doco.
Cheers,
Brett
On Fri, 2003-06-13 at 14:13, tek1 wrote:
 

Hello.

According to the Maven Setup instructions:

"http://maven.apache.org/reference/user-guide.html#Maven Setup"

it seems as though if I set:

 maven.repo.local=/java/jars

in

 MAVEN_HOME/bin/driver.properties

that all projects would use the local repository at "/java/jars".

Even though I changed this setting, it doesn't seem to take effect.
Maven's still looking for the default local repository...?
I'm using maven-1.0-beta9.

Thank you.

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

--
Brett Porter <[EMAIL PROTECTED]>
f2 network
-
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]


Re: setting maven.repo.local property for all projects

2003-06-13 Thread tek1
Thanks Brett.

The MAVEN_OPTS suggestion looks great and I will give it a try.  Thank you.

For a particular Maven installation, would it be possible to specify 
build.properties in MAVEN_HOME?  Otherwise, wouldn't each user on a local 
machine have to set this to use the local repository?

Thank you again.

At 15:59 03/06/13 +1000, you wrote:
Its user's home (Java's ${user.home}).

Unfortunately, Cygwin doesn't figure that out properly, so you have to
put it under Window's HOME. If you do echo %HOME% in cmd.exe, you'll see
it is probably "C:\Documents And Settings\tek1".
I might investigate this and either have cygwin do a translation of the
HOME variable, or specify user.home on the command line.
You can probably bypass all of this for now and do
export MAVEN_OPTS=-Duser.home=`cygpath -pw /home/tek1`, then put
build.properties in there.
Cheers,
Brett
On Fri, 2003-06-13 at 15:50, tek1 wrote:
> Hi Brett.
>
> Thanks for your reply.
>
> Is $HOME the user's home directory or MAVEN_HOME?
>
> I tried placing build.properties in MAVEN_HOME as well as my user home
> directory (I'm using Cygwin on Win2k, so my home directory is
> "/cygwin/home/tek1").
>
> However, neither setting worked...
>
> Please advise.
>
> Thank you again and have a nice evening.
>
>
>
> At 15:10 03/06/13 +1000, you wrote:
> >put it in $HOME/build.properties instead. (this is in the same section -
> >showing it takes precedence).
> >
> >I think driver.properties is now inside maven.jar and not loaded from
> >bin/. I'll submit a patch to the doco.
> >
> >Cheers,
> >Brett
> >
> >On Fri, 2003-06-13 at 14:13, tek1 wrote:
> > > Hello.
> > >
> > > According to the Maven Setup instructions:
> > >
> > > "http://maven.apache.org/reference/user-guide.html#Maven Setup"
> > >
> > > it seems as though if I set:
> > >
> > >   maven.repo.local=/java/jars
> > >
> > > in
> > >
> > >   MAVEN_HOME/bin/driver.properties
> > >
> > > that all projects would use the local repository at "/java/jars".
> > >
> > > Even though I changed this setting, it doesn't seem to take effect.
> > > Maven's still looking for the default local repository...?
> > >
> > > I'm using maven-1.0-beta9.
> > >
> > > Thank you.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >--
> >Brett Porter <[EMAIL PROTECTED]>
> >f2 network
> >
> >
> >-
> >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]
--
Brett Porter <[EMAIL PROTECTED]>
f2 network
-
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]


Re: setting maven.repo.local property for all projects

2003-06-12 Thread Brett Porter
Its user's home (Java's ${user.home}).

Unfortunately, Cygwin doesn't figure that out properly, so you have to
put it under Window's HOME. If you do echo %HOME% in cmd.exe, you'll see
it is probably "C:\Documents And Settings\tek1".

I might investigate this and either have cygwin do a translation of the
HOME variable, or specify user.home on the command line.

You can probably bypass all of this for now and do
export MAVEN_OPTS=-Duser.home=`cygpath -pw /home/tek1`, then put
build.properties in there.

Cheers,
Brett

On Fri, 2003-06-13 at 15:50, tek1 wrote:
> Hi Brett.
> 
> Thanks for your reply.
> 
> Is $HOME the user's home directory or MAVEN_HOME?
> 
> I tried placing build.properties in MAVEN_HOME as well as my user home 
> directory (I'm using Cygwin on Win2k, so my home directory is 
> "/cygwin/home/tek1").
> 
> However, neither setting worked...
> 
> Please advise.
> 
> Thank you again and have a nice evening.
> 
> 
> 
> At 15:10 03/06/13 +1000, you wrote:
> >put it in $HOME/build.properties instead. (this is in the same section -
> >showing it takes precedence).
> >
> >I think driver.properties is now inside maven.jar and not loaded from
> >bin/. I'll submit a patch to the doco.
> >
> >Cheers,
> >Brett
> >
> >On Fri, 2003-06-13 at 14:13, tek1 wrote:
> > > Hello.
> > >
> > > According to the Maven Setup instructions:
> > >
> > > "http://maven.apache.org/reference/user-guide.html#Maven Setup"
> > >
> > > it seems as though if I set:
> > >
> > >   maven.repo.local=/java/jars
> > >
> > > in
> > >
> > >   MAVEN_HOME/bin/driver.properties
> > >
> > > that all projects would use the local repository at "/java/jars".
> > >
> > > Even though I changed this setting, it doesn't seem to take effect.
> > > Maven's still looking for the default local repository...?
> > >
> > > I'm using maven-1.0-beta9.
> > >
> > > Thank you.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >--
> >Brett Porter <[EMAIL PROTECTED]>
> >f2 network
> >
> >
> >-
> >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]
-- 
Brett Porter <[EMAIL PROTECTED]>
f2 network


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



Re: setting maven.repo.local property for all projects

2003-06-12 Thread tek1
Hi Brett.

Thanks for your reply.

Is $HOME the user's home directory or MAVEN_HOME?

I tried placing build.properties in MAVEN_HOME as well as my user home 
directory (I'm using Cygwin on Win2k, so my home directory is 
"/cygwin/home/tek1").

However, neither setting worked...

Please advise.

Thank you again and have a nice evening.



At 15:10 03/06/13 +1000, you wrote:
put it in $HOME/build.properties instead. (this is in the same section -
showing it takes precedence).
I think driver.properties is now inside maven.jar and not loaded from
bin/. I'll submit a patch to the doco.
Cheers,
Brett
On Fri, 2003-06-13 at 14:13, tek1 wrote:
> Hello.
>
> According to the Maven Setup instructions:
>
> "http://maven.apache.org/reference/user-guide.html#Maven Setup"
>
> it seems as though if I set:
>
>   maven.repo.local=/java/jars
>
> in
>
>   MAVEN_HOME/bin/driver.properties
>
> that all projects would use the local repository at "/java/jars".
>
> Even though I changed this setting, it doesn't seem to take effect.
> Maven's still looking for the default local repository...?
>
> I'm using maven-1.0-beta9.
>
> Thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Brett Porter <[EMAIL PROTECTED]>
f2 network
-
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]


Re: setting maven.repo.local property for all projects

2003-06-12 Thread Brett Porter
put it in $HOME/build.properties instead. (this is in the same section -
showing it takes precedence).

I think driver.properties is now inside maven.jar and not loaded from
bin/. I'll submit a patch to the doco.

Cheers,
Brett

On Fri, 2003-06-13 at 14:13, tek1 wrote:
> Hello.
> 
> According to the Maven Setup instructions:
> 
> "http://maven.apache.org/reference/user-guide.html#Maven Setup"
> 
> it seems as though if I set:
> 
>   maven.repo.local=/java/jars
> 
> in
> 
>   MAVEN_HOME/bin/driver.properties
> 
> that all projects would use the local repository at "/java/jars".
> 
> Even though I changed this setting, it doesn't seem to take effect. 
> Maven's still looking for the default local repository...?
> 
> I'm using maven-1.0-beta9.
> 
> Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Brett Porter <[EMAIL PROTECTED]>
f2 network


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



setting maven.repo.local property for all projects

2003-06-12 Thread tek1
Hello.

According to the Maven Setup instructions:

"http://maven.apache.org/reference/user-guide.html#Maven Setup"

it seems as though if I set:

	maven.repo.local=/java/jars

in

	MAVEN_HOME/bin/driver.properties

that all projects would use the local repository at "/java/jars".

Even though I changed this setting, it doesn't seem to take effect. 
Maven's still looking for the default local repository...?

I'm using maven-1.0-beta9.

Thank you.

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