Re: [m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Yeah, but in my company, we are tied down with our revision control
process that requires in short term this kind of configuration. This 
configuration aims to facilitate a local and demonstration build without many 
steps of downloading plug-in, creating, editing the settings.xml file.


- Original Message 
From: [EMAIL PROTECTED]
To: users@maven.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 4:19:49 PM
Subject: RE: [m2] How to configure the local repository

Leave the setttings xml where it is, configure the repository location
in there as described in the settings.xml file ...

Why would you have to put repository in same directory as project though
?

A


Re: [m2] How to configure the local repository

2006-07-11 Thread Wendy Smoak

On 7/11/06, Tung Nguyen <[EMAIL PROTECTED]> wrote:


Thank you, but in fact I need to do not use the 
/.m2/settings.xml and /.m2/repository 
at all. There's no way to place them in the project's folder ?


Yes, there is.

$ mvn --help
...
-s,--settings Alternate path for the user settings file
...

Define a 'settings.xml' file containing a  element,
then use -s on the command line to tell Maven to use that settings
file rather than the one it expects to find in your home directory.

HTH,
--
Wendy

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



RE: [m2] How to configure the local repository

2006-07-11 Thread EJ Ciramella
This is telling the pom where to look for the repository.  If you want
to tell maven where to store it's local repository, use the
localrepository settings in the settings.xml:

some\path\you'd\like

-Original Message-
From: Tim Kettler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 10:46 AM
To: Maven Users List
Subject: Re: [m2] How to configure the local repository

Are you talking about your local repository or a repository you want to
put 3d-party 
libraries for your project in that you want under version control
together with your project?

If the latter. I think (never tried myself) you can just define a
repository in your 
pom.xml like this:



...

   
 
   myrepo
   reponame
   file://${basedir}/repository
 
   


-Tim


Tung Nguyen schrieb:
> Hi everybody,
> 
> I'm contrained to place the repository of maven in the same folder of
my projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.
> 
> Anyone can help ? 
> Thank you in advance
> 
> 
> 
> -
> 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: [m2] How to configure the local repository

2006-07-11 Thread Andrew-A . Davies
You also have the option of setting up explicit repositories and then
using activeProfiles (or use the maven profile CLI

Rgds
Andy 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2006 16:11
To: users@maven.apache.org
Cc: Davies, Andrew-A
Subject: Re: [m2] How to configure the local repository

Yeah, but in my company, we are tied down with our revision control
process that requires in short term this kind of configuration. This
configuration aims to facilitate a local and demonstration build without
many steps of downloading plug-in, creating, editing the settings.xml
file.


- Original Message 
From: [EMAIL PROTECTED]
To: users@maven.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 4:19:49 PM
Subject: RE: [m2] How to configure the local repository

Leave the setttings xml where it is, configure the repository location
in there as described in the settings.xml file ...

Why would you have to put repository in same directory as project though
?

A


Re: [m2] How to configure the local repository

2006-07-11 Thread Tim Kettler
Are you talking about your local repository or a repository you want to put 3d-party 
libraries for your project in that you want under version control together with your project?


If the latter. I think (never tried myself) you can just define a repository in your 
pom.xml like this:




...

  

  myrepo
  reponame
  file://${basedir}/repository

  


-Tim


Tung Nguyen schrieb:

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my projet 
but I can't figure out how to do that. I tried to place the settings.xml in the 
project folder (with the pom.xml) but it doesn't work.

Anyone can help ? 
Thank you in advance




-
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: [m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Thank you, but in fact I need to do not use the 
/.m2/settings.xml and /.m2/repository 
at all. There's no way to place them in the project's folder ?


- Original Message 
From: EJ Ciramella <[EMAIL PROTECTED]>
To: Maven Users List ; Tung Nguyen <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2006 4:09:41 PM
Subject: RE: [m2] How to configure the local repository

Within the settings.xml, you should be able to have an entry like this:

some\path\you'd\like 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 9:59 AM
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
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: [m2] How to configure the local repository

2006-07-11 Thread Andrew-A . Davies
Leave the setttings xml where it is, configure the repository location
in there as described in the settings.xml file ...

Why would you have to put repository in same directory as project though
?

A


RE: [m2] How to configure the local repository

2006-07-11 Thread Mike Perham
settings.xml can only exist in two places AFAIK.  ~/.m2/settings.xml and
MAVEN_HOME/conf/settings.xml.  The latter can be used to configure all
users on the machine and is thoroughly commented.

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 8:59 AM
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
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: [m2] How to configure the local repository

2006-07-11 Thread EJ Ciramella
Within the settings.xml, you should be able to have an entry like this:

some\path\you'd\like 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 9:59 AM
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
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]



[m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Hi everybody,

I'm contrained to place the repository of maven in the same folder of my projet 
but I can't figure out how to do that. I tried to place the settings.xml in the 
project folder (with the pom.xml) but it doesn't work.

Anyone can help ? 
Thank you in advance



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