You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by YoGee <lu...@gmail.com> on 2006/08/31 13:40:32 UTC

Changing the basedir?

If I use cygwin to make a Maven 2.x project by default the basedir is -
Value: C:\cygwin\home\MyName. How can I change this? I want to set the
basedir to C:\mavenWorkspace\projects. I tried passing
-Dbasedir=C:\mavenWorkspace\projects but it just seems to be ignored?

Thanks
-- 
View this message in context: http://www.nabble.com/Changing-the-basedir--tf2196173.html#a6077711
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Changing the basedir?

Posted by YoGee <lu...@gmail.com>.
Ah, ok thanks Ian. I didn't realize mvn created new projects in the current
working directory.

Thanks again.
-- 
View this message in context: http://www.nabble.com/Changing-the-basedir--tf2196173.html#a6081877
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Changing the basedir?

Posted by ia...@jpmchase.com.
Hi YoGee,

mvn creates new projects within the current working directory.  When you
initially open the cygwin console you will start off in your home directory
(defaults to C:\cygwin\home\<userid>; you can see your current working
directory by issuing the command 'pwd' (short for 'Print Working
Directory')).  If you want to create the project in a different directory,
you need to change to that directory.  You can access drives/directories
outside of cygwin by using /cygdrive/<drive>/<path>.

So, to build a new project under C:\mavenWorkspace\projects, you would
issue the command:

$ cd /cygdrive/c/mavenWorkspace/projects
$ mvn archetype:create ...


HTH,
Ian

It's better to be hated for who you are
than loved for who you're not

Ian D. Stewart
Distributed Computing Engineer II
DSS eCommerce Engineering
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564


                                                                           
             YoGee                                                         
             <lukes.email@gmai                                             
             l.com>                                                     To 
                                       users@maven.apache.org              
             08/31/2006 07:40                                           cc 
             AM                                                            
                                                                   Subject 
                                       Changing the basedir?               
             Please respond to                                             
               "Maven Users                                                
                   List"                                                   
             <users@maven.apac                                             
                  he.org>                                                  
                                                                           
                                                                           





If I use cygwin to make a Maven 2.x project by default the basedir is -
Value: C:\cygwin\home\MyName. How can I change this? I want to set the
basedir to C:\mavenWorkspace\projects. I tried passing
-Dbasedir=C:\mavenWorkspace\projects but it just seems to be ignored?

Thanks
--
View this message in context:
http://www.nabble.com/Changing-the-basedir--tf2196173.html#a6077711
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org