RE: MAVEN_INSTALL_DIR/conf/settings.xml

2007-02-02 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
Hi, Wendy.

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 06, 2006 10:07 AM
 To: Maven Users List
 Subject: Re: MAVEN_INSTALL_DIR/conf/settings.xml
 
 On 12/5/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at 
 Cisco) [EMAIL PROTECTED]
  Please note, the documentation for antlib specifically 
 calls out the 
  authors' desire to be able to share the local repository 
 between Maven 
  and ant.  They just overlooked the fact that, just as Maven has 
  provision for alternative settings.xml files, so should antlib.
 
 Okay, I see MNG-2684 now.
 
 I haven't worked with the Ant tasks, but I still think 
 multiple remote repos could work... why do you *have* to pull 
 the files from a local repo?
 
 Declaring Repositories seems to hint that you can specify a 
 local repository... All of the tasks can optionally take one 
 or more remote repositories to download from and upload to, 
 and a local repository to store downloaded and installed archives to.
 
 Can you construct a simple project that demonstrates the 
 problem and attach it to the issue?  I might like to play 
 with it a bit, but I'm not sure I remember enough Ant to set 
 it up... :)
 
 --
 Wendy

It's been a while since I filed this JIRA bug. I thought I had the
problem licked, but it turns out not to be so. I've just uploaded a
testcase.  It
consists of the small application from BBwM book, a driver, and five
ant scripts.  The driver will run one ant script on each invocation, or
will clean up everything.

You can also read the comments I just added to MNG-2684.

thanks,
--Marilyn 
 
 -
 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: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-06 Thread Wendy Smoak

On 12/5/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)
[EMAIL PROTECTED]

Please note, the documentation for antlib specifically calls out the
authors' desire
to be able to share the local repository between Maven and ant.  They
just overlooked
the fact that, just as Maven has provision for alternative settings.xml
files,
so should antlib.


Okay, I see MNG-2684 now.

I haven't worked with the Ant tasks, but I still think multiple remote
repos could work... why do you *have* to pull the files from a local
repo?

Declaring Repositories seems to hint that you can specify a local
repository... All of the tasks can optionally take one or more remote
repositories to download from and upload to, and a local repository to
store downloaded and installed archives to.

Can you construct a simple project that demonstrates the problem and
attach it to the issue?  I might like to play with it a bit, but I'm
not sure I remember enough Ant to set it up... :)

--
Wendy

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



RE: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-05 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
 

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 04, 2006 2:15 PM
 To: Maven Users List
 Subject: Re: MAVEN_INSTALL_DIR/conf/settings.xml
 
 On 12/4/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at 
 Cisco) [EMAIL PROTECTED]
  Perhaps I mis-stated a bit.  There is not a time dependency.  There 
  are two ways that we invoke maven.  The first is with the 
 mvn command, 
  to do the java build.
  The second is later, after the mvn build has created the local 
  repository, where we invoke a maven copy ant task to fetch some 
  artifacts from the local repository.
  The fetching from the local repository is so we can build 
 an install 
  file using a commercial tool for building a GUI installer.
 
 The local repository is intended to be used by a single 
 developer.  If you need to share artifacts, then deploy them 
 to a remote internal corporate repository.
 
 The snapshot and release deployment urls are set in 
 distributionManagement for each project.

The point here is that a single developer who works on multiple products
or
product releases may need one local repository per product or release.
This is
particularly true if the different releases need to be built
simultaneously, because
the build puts artifacts compiled/created during the build into the
local repository.
Simultaneous builds using the same local repository would clobber each
others' files.

This is all run under a single top-level ant script, and therefore all
in one run
by the same user.  The top ant script runs maven for the java build.
Then it
runs some Makefiles for modules written in C/C++.  Then it runs another
ant
script, build_installer.xml, which collects artifacts from the build and
creates
an install file for shipment to customers.  It is build_installer.xml
that uses
the copy ant task from antlib to fetch artifacts from the local
repository for
inclusion in the install file.
One solution we've contemplated, and probably will implement, is that
build_installer.xml
will no longer use antlib nor the local repository, but will fetch
artifacts from the
source directories where they were created.  

Please note, the documentation for antlib specifically calls out the
authors' desire
to be able to share the local repository between Maven and ant.  They
just overlooked
the fact that, just as Maven has provision for alternative settings.xml
files, 
so should antlib.

--Marilyn
 
 --
 Wendy
 
 -
 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: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-04 Thread Peter . Pilgrim



 -Original Message-
 From: Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) 
====
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, December 01, 2006 2:53 AM
  To: users@maven.apache.org
  Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml
  
   -Original Message-
   From: Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) 
   [mailto:[EMAIL PROTECTED]
   Sent: 01 December 2006 00:15
   To: Maven Users List
   Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml
   
   I tried the suggestion below for invoking Maven and it
  worked.  I also
   defined the maven.repo.local property in the ant script for
  our mixed
   build, hoping antlib would pick up on it and use the same local 
   repository for the Maven ant tasks.  No such luck.
   
   It seems there is no way to pass the location of the local
  repository
   to antlib except through ~/.m2/settings.xml or
  ~/.m2/ant/settings.xml.  
   Thus there is no way to have multiple repositories per user 
   simultaneously.  I will file a JIRA request for an enhancement.
  
  Hi Jason et Al
  
  We need to export some important system variables through Maven 2 
  Ant[Run] and Exec similar plugins. Perhaps the developer 
 can devise a 
  way to create or export system variables as environment variables 
  generally through Maven core.
  
  Marilyn
  
  I also worked around this problem by using `sed' on UNIX 
 with a simple 
  placeholder inside `settings.xml.in'.
  
  I did it in a shell script that called Maven like this
  
  /bin/rm -rf ${XYZ_M2_LOCAL}/settings.xml sed -e 
  's,@BUILD_REPO@,'${XYZ_M2_LOCAL_REPO}',g'
  src/release-control/settings.xml.in   ${XYZ_M2_LOCAL}/settings.xml
  
  The settings.xml.in looks like this, of course:
  
  settings xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 

 http://maven.apache.org/xsd/settings-1.0.0.xsd;
  
localRepository@BUILD_REPO@/localRepository
  
interactiveMode/
usePluginRegistry/
...
  /setting
 
 Peter,
 Thanks for your reply and for this suggestion.  We are 
 already doing something like that in order to keep the 
 repositories for different builds separate.  But we still 
 have the problem that each build must be allowed to complete 
 before another one can run for the same user , because the 
 ant tasks that use Maven can run very late in the build.
 

(Where are the gears grinding?)

I see: You have a build that has a dependency that relates to
build-time.
Despite the fact that Maven creates it artifacts and install them 
in a local repository, there is some other thing in your 
corporate environment that it is time conscience.

If this is the case then what would be case if you are build with Apache
Ant, then this build-time dependency will still exist regardless of the
infrastructure technology.

I am not sure, then, if Maven can solve this, especially f you cannot 
isolate the build-time dependency.

Having said, I think a user-profile related dependency can be a problem 
for you. If you a user-profile that shared between teams, divisions,
departments
then the environment variables can be changed ad hoc. Therefore again
Maven cannot 

 I've filed the JIRA request.  I got the automated 
 acknowledgment (MNG-2684), but that's all so far.
 --Marilyn
  
   
   Meantime, our mixed builds are not scalable at all.  We 
 can do only 
   one build per user per machine at a time.  I hope the
  enhancement will
   come through fairly quickly.
  
  
   
  ====
  
  --
  Peter Pilgrim
  UBS Investment Bank,
  PTS Portal / IT FIRC OPS LDN,
  100 Liverpool Street, London EC2M 2RH, United Kingdom
  +44 (0) 20 75 75692
  :: Java EE / E-Commerce / Enterprise Integration / Development ::
  
  Visit our website at http://www.ubs.com
  
  This message contains confidential information and is intended only 
  for the individual named.  If you are not the named addressee you 
  should not disseminate, distribute or copy this e-mail.  
 Please notify 
  the sender immediately by e-mail if you have received this 
 e-mail by 
  mistake and delete this e-mail from your system.
  
  E-mail transmission cannot be guaranteed to be secure or 
 error-free as 
  information could be intercepted, corrupted, lost, 
 destroyed, arrive 
  late or incomplete, or contain viruses.  The sender 
 therefore does not 
  accept liability for any errors or omissions in the 
 contents of this 
  message which arise as a result of e-mail transmission.  If 
  verification is required please request a hard-copy version.  This 
  message is provided for informational purposes and should not be 
  construed as a solicitation or offer to buy or sell any 
 securities or 
  related financial instruments.
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED

RE: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-04 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
 See below.  I've deleted much of the thread, but the relevant bit
remains.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 04, 2006 6:13 AM
 To: users@maven.apache.org
 Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml
 
 
 
[ some stuff deleted ]
 
 (Where are the gears grinding?)
 
 I see: You have a build that has a dependency that relates to 
 build-time.
 Despite the fact that Maven creates it artifacts and install 
 them in a local repository, there is some other thing in your 
 corporate environment that it is time conscience.
 
 If this is the case then what would be case if you are build 
 with Apache Ant, then this build-time dependency will still 
 exist regardless of the infrastructure technology.
 
 I am not sure, then, if Maven can solve this, especially f 
 you cannot isolate the build-time dependency.
 
 Having said, I think a user-profile related dependency can be 
 a problem for you. If you a user-profile that shared between 
 teams, divisions, departments then the environment variables 
 can be changed ad hoc. Therefore again Maven cannot 

Perhaps I mis-stated a bit.  There is not a time dependency.  There are
two
ways that we invoke maven.  The first is with the mvn command, to do the
java build.
The second is later, after the mvn build has created the local
repository, where we 
invoke a maven copy ant task to fetch some artifacts from the local
repository.  
The fetching from the local repository is so we can build an install
file using a 
commercial tool for building a GUI installer.

We have no problem specifying a repository when initially calling mvn.
We just use
the mvn command line either to directly specify the repository location
using -D, or
use the -s argument to specify the location of the settings.xml file
that in turn
specifies the location of the local repository.  The trouble is, the
copy task will only
look in ~/.m2/settings.xml.  If we are limited to use of
~/.m2/settings.xml for specifying
the location of the local repository, then a second build of a different
product, BY THE SAME
USER before the first build is finished, will clobber the local
repository of the first build.

Thus we are stuck with using the same settings.xml file for all builds
done by one user, and 
therefore also the same local repository for all builds done by one
user.  The only way to 
have one user do multiple builds at the same time is to put the local
repository on a local partition such as /tmp or /var/tmp or some such.
Then, at least, we can do one build per 
machine per user.  This is really wasteful of machine resources,
however. 

--Marilyn
 
  I've filed the JIRA request.  I got the automated acknowledgment 
  (MNG-2684), but that's all so far.
  --Marilyn
   

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



Re: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-04 Thread Wendy Smoak

On 12/4/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)
[EMAIL PROTECTED]

Perhaps I mis-stated a bit.  There is not a time dependency.  There are
two
ways that we invoke maven.  The first is with the mvn command, to do the
java build.
The second is later, after the mvn build has created the local
repository, where we
invoke a maven copy ant task to fetch some artifacts from the local
repository.
The fetching from the local repository is so we can build an install
file using a
commercial tool for building a GUI installer.


The local repository is intended to be used by a single developer.  If
you need to share artifacts, then deploy them to a remote internal
corporate repository.

The snapshot and release deployment urls are set in
distributionManagement for each project.

--
Wendy

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



RE: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-01 Thread Peter . Pilgrim
 -Original Message-
 From: Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) 
 [mailto:[EMAIL PROTECTED] 
 Sent: 01 December 2006 00:15
 To: Maven Users List
 Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml
 
 I tried the suggestion below for invoking Maven and it 
 worked.  I also defined the maven.repo.local property in the 
 ant script for our mixed build, hoping antlib would pick up 
 on it and use the same local repository for the Maven ant 
 tasks.  No such luck. 
 
 It seems there is no way to pass the location of the local 
 repository to antlib except through ~/.m2/settings.xml or 
 ~/.m2/ant/settings.xml.  Thus there is no way to have 
 multiple repositories per user simultaneously.  I will file a 
 JIRA request for an enhancement.

Hi Jason et Al

We need to export some important system variables through Maven 2
Ant[Run] 
and Exec similar plugins. Perhaps the developer can devise a way to
create 
or export system variables as environment variables generally through 
Maven core. 

Marilyn

I also worked around this problem by using `sed' on UNIX with a simple
placeholder inside `settings.xml.in'.

I did it in a shell script that called Maven like this

/bin/rm -rf ${XYZ_M2_LOCAL}/settings.xml
sed -e 's,@BUILD_REPO@,'${XYZ_M2_LOCAL_REPO}',g'
src/release-control/settings.xml.in   ${XYZ_M2_LOCAL}/settings.xml

The settings.xml.in looks like this, of course:

settings xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
  http://maven.apache.org/xsd/settings-1.0.0.xsd;

  localRepository@BUILD_REPO@/localRepository

  interactiveMode/
  usePluginRegistry/
  ...
/setting

 
 Meantime, our mixed builds are not scalable at all.  We can 
 do only one build per user per machine at a time.  I hope the 
 enhancement will come through fairly quickly.


 
====

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



RE: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-01 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, December 01, 2006 2:53 AM
 To: users@maven.apache.org
 Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml
 
  -Original Message-
  From: Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) 
  [mailto:[EMAIL PROTECTED]
  Sent: 01 December 2006 00:15
  To: Maven Users List
  Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml
  
  I tried the suggestion below for invoking Maven and it 
 worked.  I also 
  defined the maven.repo.local property in the ant script for 
 our mixed 
  build, hoping antlib would pick up on it and use the same local 
  repository for the Maven ant tasks.  No such luck.
  
  It seems there is no way to pass the location of the local 
 repository 
  to antlib except through ~/.m2/settings.xml or 
 ~/.m2/ant/settings.xml.  
  Thus there is no way to have multiple repositories per user 
  simultaneously.  I will file a JIRA request for an enhancement.
 
 Hi Jason et Al
 
 We need to export some important system variables through 
 Maven 2 Ant[Run] and Exec similar plugins. Perhaps the 
 developer can devise a way to create or export system 
 variables as environment variables generally through Maven core. 
 
 Marilyn
 
 I also worked around this problem by using `sed' on UNIX with 
 a simple placeholder inside `settings.xml.in'.
 
 I did it in a shell script that called Maven like this
 
 /bin/rm -rf ${XYZ_M2_LOCAL}/settings.xml sed -e 
 's,@BUILD_REPO@,'${XYZ_M2_LOCAL_REPO}',g'
 src/release-control/settings.xml.in   ${XYZ_M2_LOCAL}/settings.xml
 
 The settings.xml.in looks like this, of course:
 
 settings xmlns=http://maven.apache.org/POM/4.0.0;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
   http://maven.apache.org/xsd/settings-1.0.0.xsd;
 
   localRepository@BUILD_REPO@/localRepository
 
   interactiveMode/
   usePluginRegistry/
   ...
 /setting

Peter,
Thanks for your reply and for this suggestion.  We are already doing
something 
like that in order to keep the repositories for different builds
separate.  But 
we still have the problem that each build must be allowed to complete
before 
another one can run for the same user , because the ant tasks that use
Maven 
can run very late in the build.

I've filed the JIRA request.  I got the automated acknowledgment
(MNG-2684), but 
that's all so far.
--Marilyn
 
  
  Meantime, our mixed builds are not scalable at all.  We can do only 
  one build per user per machine at a time.  I hope the 
 enhancement will 
  come through fairly quickly.
 
 
  
 ====
 
 --
 Peter Pilgrim
 UBS Investment Bank,
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 +44 (0) 20 75 75692
 :: Java EE / E-Commerce / Enterprise Integration / Development ::
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is 
 intended only for the individual named.  If you are not the 
 named addressee you should not disseminate, distribute or 
 copy this e-mail.  Please notify the sender immediately by 
 e-mail if you have received this e-mail by mistake and delete 
 this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or 
 error-free as information could be intercepted, corrupted, 
 lost, destroyed, arrive late or incomplete, or contain 
 viruses.  The sender therefore does not accept liability for 
 any errors or omissions in the contents of this message which 
 arise as a result of e-mail transmission.  If verification is 
 required please request a hard-copy version.  This message is 
 provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any 
 securities or related financial instruments.
 
 
 -
 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: MAVEN_INSTALL_DIR/conf/settings.xml

2006-11-30 Thread Tom Huybrechts

-Dmaven.repo.local=...

On 11/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi All

Is there a property to define the location of the Maven local
repository?

Reading the notes from the installation configuration ``settings.xml''
in the
``MAVEN_INSTALL_DIR/conf''. There are two system properties

 |  1. User Level. This settings.xml file provides configuration for a
single user,
 | and is normally provided in $HOME/.m2/settings.xml.
 |
 | NOTE: This location can be overridden with the system
property:
 |
 |
-Dorg.apache.maven.user-settings=/path/to/user/settings.xml
 |
 |  2. Global Level. This settings.xml file provides configuration for
all maven
 | users on a machine (assuming they're all using the
same maven
 | installation). It's normally provided in
 | ${maven.home}/conf/settings.xml.
 |
 | NOTE: This location can be overridden with the system
property:
 |
 |
-Dorg.apache.maven.global-settings=/path/to/global/settings.xml


Is there an equivalent system property to set the location of the
local repository?

If it exists I would like to specify it on the command line in order to
generate
a build on a severly isolated machine.

Alternatively can Maven settings.xml substitute system properties?

settings
  !-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ~/.m2/repository
  --


localRepository${user.home}/non-sharable/maven-repository/localReposi
tory
  ...
/settings


TIA

--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
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: MAVEN_INSTALL_DIR/conf/settings.xml

2006-11-30 Thread Peter . Pilgrim

 -Original Message-
 From: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
====
 
 -Dmaven.repo.local=...
 
 On 11/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Unfortunately, in Maven 2.0.4 this system property does not work to
override
the default local repository location. e.g.

% mvn -Dorg.apache.maven.user-setting=~/ptsp/m2/settings.xml
-Dmaven.repo.local=~/ptsp/m2/repository -X compile


  Hi All
 
  Is there a property to define the location of the Maven local 
  repository?
 
  Reading the notes from the installation configuration 
 ``settings.xml''
  in the
  ``MAVEN_INSTALL_DIR/conf''. There are two system properties
 
   |  1. User Level. This settings.xml file provides 
 configuration for a 
  single user,
   | and is normally provided in 
 $HOME/.m2/settings.xml.
   |
   | NOTE: This location can be overridden 
 with the system
  property:
   |
   |
  -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
   |
   |  2. Global Level. This settings.xml file provides 
 configuration for 
  all maven
   | users on a machine (assuming they're all 
 using the
  same maven
   | installation). It's normally provided in
   | ${maven.home}/conf/settings.xml.
   |
   | NOTE: This location can be overridden 
 with the system
  property:
   |
   |
  -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
 
 
  Is there an equivalent system property to set the location of the 
  local repository?
 
  If it exists I would like to specify it on the command line 
 in order 
  to generate a build on a severly isolated machine.
 
  Alternatively can Maven settings.xml substitute system properties?

====

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: MAVEN_INSTALL_DIR/conf/settings.xml

2006-11-30 Thread Tom Huybrechts

I just tried this on my machine, and it did work.

C:\mvn clean -Dmaven.repo.local=x:\ -X
+ Error stacktraces are turned on.
Maven version: 2.0.4
.
[DEBUG] Exception
org.apache.maven.wagon.TransferFailedException: Specified destination
directory cannot be created:
x:\org\apache\maven\plugins\maven-clean-plugin



On 11/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 -Original Message-
 From: Tom Huybrechts [mailto:[EMAIL PROTECTED]
====

 -Dmaven.repo.local=...

 On 11/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Unfortunately, in Maven 2.0.4 this system property does not work to
override
the default local repository location. e.g.

% mvn -Dorg.apache.maven.user-setting=~/ptsp/m2/settings.xml
-Dmaven.repo.local=~/ptsp/m2/repository -X compile


  Hi All
 
  Is there a property to define the location of the Maven local
  repository?
 
  Reading the notes from the installation configuration
 ``settings.xml''
  in the
  ``MAVEN_INSTALL_DIR/conf''. There are two system properties
 
   |  1. User Level. This settings.xml file provides
 configuration for a
  single user,
   | and is normally provided in
 $HOME/.m2/settings.xml.
   |
   | NOTE: This location can be overridden
 with the system
  property:
   |
   |
  -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
   |
   |  2. Global Level. This settings.xml file provides
 configuration for
  all maven
   | users on a machine (assuming they're all
 using the
  same maven
   | installation). It's normally provided in
   | ${maven.home}/conf/settings.xml.
   |
   | NOTE: This location can be overridden
 with the system
  property:
   |
   |
  -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
 
 
  Is there an equivalent system property to set the location of the
  local repository?
 
  If it exists I would like to specify it on the command line
 in order
  to generate a build on a severly isolated machine.
 
  Alternatively can Maven settings.xml substitute system properties?

====

--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
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: MAVEN_INSTALL_DIR/conf/settings.xml

2006-11-30 Thread Peter . Pilgrim
 -Original Message-
 From: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
 Sent: 30 November 2006 13:24
 To: Maven Users List
 Subject: Re: MAVEN_INSTALL_DIR/conf/settings.xml
 
 I just tried this on my machine, and it did work.
 
 C:\mvn clean -Dmaven.repo.local=x:\ -X
 + Error stacktraces are turned on.
 Maven version: 2.0.4
 .
 [DEBUG] Exception
 org.apache.maven.wagon.TransferFailedException: Specified 
 destination directory cannot be created:
 x:\org\apache\maven\plugins\maven-clean-plugin

It works for me too. 
Ah! The Tilde (~) symbol and the BASH command line

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::  

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



RE: MAVEN_INSTALL_DIR/conf/settings.xml

2006-11-30 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
I tried the suggestion below for invoking Maven and it worked.  I also
defined 
the maven.repo.local property in the ant script for our mixed build,
hoping antlib 
would pick up on it and use the same local repository for the Maven ant
tasks.  No such luck. 

It seems there is no way to pass the location of the local repository to
antlib except through
~/.m2/settings.xml or ~/.m2/ant/settings.xml.  Thus there is no way to
have multiple repositories per user simultaneously.  I will file a JIRA
request for an enhancement.

Meantime, our mixed builds are not scalable at all.  We can do only one
build per user per machine at a time.  I hope the enhancement will come
through fairly quickly.

Thanks,
--Marilyn Sander



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 30, 2006 10:15 AM
 To: users@maven.apache.org
 Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml
 
  -Original Message-
  From: Tom Huybrechts [mailto:[EMAIL PROTECTED]
  Sent: 30 November 2006 13:24
  To: Maven Users List
  Subject: Re: MAVEN_INSTALL_DIR/conf/settings.xml
  
  I just tried this on my machine, and it did work.
  
  C:\mvn clean -Dmaven.repo.local=x:\ -X
  + Error stacktraces are turned on.
  Maven version: 2.0.4
  .
  [DEBUG] Exception
  org.apache.maven.wagon.TransferFailedException: Specified 
 destination 
  directory cannot be created:
  x:\org\apache\maven\plugins\maven-clean-plugin
 
 It works for me too. 
 Ah! The Tilde (~) symbol and the BASH command line
 
 --
 Peter Pilgrim
 UBS Investment Bank,
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 +44 (0) 20 75 75692
 :: Java EE / E-Commerce / Enterprise Integration / Development ::  
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is 
 intended only for the individual named.  If you are not the 
 named addressee you should not disseminate, distribute or 
 copy this e-mail.  Please notify the sender immediately by 
 e-mail if you have received this e-mail by mistake and delete 
 this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or 
 error-free as information could be intercepted, corrupted, 
 lost, destroyed, arrive late or incomplete, or contain 
 viruses.  The sender therefore does not accept liability for 
 any errors or omissions in the contents of this message which 
 arise as a result of e-mail transmission.  If verification is 
 required please request a hard-copy version.  This message is 
 provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any 
 securities or related financial instruments.
 
 
 -
 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]