Re: [m2] bootstrap build from scratch
It's not required... there was a bug in MBoot I just fixed. - Brett On 5/7/05, Simon Matic Langford <[EMAIL PROTECTED]> wrote: > hi, > > this didn't seem to do much, so I did some digging in the code and found > I was missing this from settings.xml: > > > > true > c:/Documents and > Settings/langfors/.m2/repository > > > > alpha-1 didn't require this, might be handy to put into the readme? > > simon > > > > -Original Message- > > From: Kenney Westerhof [mailto:[EMAIL PROTECTED] > > Sent: 06 May 2005 15:56 > > To: Maven Users List > > Subject: Re: [m2] bootstrap build from scratch > > > > > > On Fri, 6 May 2005, Simon Matic Langford wrote: > > > > Try using forward slashes for M2_HOME, or leave that > > environment variable > > empty. M2 will then be built in target/ somewhere. > > > > (btw, are there any directories/files created in %M2_HOME% ?) > > > > Further, maven.properties is not required to exist; and if you must > > specify the local repository, try to use the path without > > spaces (use a > > dos box and dir /x to get the shortname for the C:\Documents > > and Settings\ > > directory (probably DOCUME~1). > > > > Success! > > > > -- Kenney > > > > > > > hi, > > > > > > I'm trying to do a bootstrap build from latest svn code, and I've > > > followed the contents of the Readme, and it don't seem to > > be working: > > > > > > F:\m2-svn>md m2-latest > > > > > > F:\m2-svn>md m2-latest\bin > > > > > > F:\m2-svn>set M2_HOME=f:\m2-svn\m2-latest > > > > > > F:\m2-svn>set PATH=%M2_HOME%\bin;%PATH% > > > > > > F:\m2-svn>cd maven\components\trunk > > > > > > F:\m2-svn\maven\components\trunk>m2-bootstrap-all.bat > > > 1 file(s) copied. > > > Exception in thread "main" java.lang.NullPointerException > > > at MBoot.run(MBoot.java:157) > > > at MBoot.main(MBoot.java:117) > > > Rebuilding maven2 plugins > > > > > > ERROR: M2_HOME is set to an invalid directory. > > > M2_HOME = f:\m2-svn\m2-latest > > > Please set the M2_HOME variable in your environment to match the > > > location of the Maven installation > > > > > > Running integration tests > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > > org/apache/maven/it/Verifier > > > > > > my maven.properties has the following: > > > > > > F:\m2-svn\maven\components\trunk>cat "C:\Documents and > > > Settings\langfors\.m2\maven.properties" > > > maven.repo.local=c:/Documents and Settings/langfors/.m2/repository > > > > > > any ideas? apart from the null pointers and errors, it > > seems to complain > > > about the location of M2_HOME, yet the readme says to set > > this to where > > > you want m2 to be installed. > > > > > > > > > thanks > > > > > > simon > > > > > > > > > > > > The information contained in this e-mail is intended only > > for the person > > > or > > > entity to which it is addressed and may contain confidential and/or > > > privileged material. If You are not the intended recipient of this > > > e-mail, > > > the use of this information or any disclosure, copying or > > distribution > > > is > > > Prohibited and may be unlawful. If you received this in > > error, please > > > contact the sender and delete the material from any > > computer. The views > > > expressed in this e-mail may not necessarily be the views > > of The PCMS > > > Group > > > plc and should not be taken as authority to carry out any > > instruction > > > contained. > > > > > > > > > > > > > -- > > Kenney Westerhof > > http://www.neonics.com > > GPG public key: http://www.gods.nl/~forge/kenneyw.key > > > > - > > 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] bootstrap build from scratch
hi, this didn't seem to do much, so I did some digging in the code and found I was missing this from settings.xml: true c:/Documents and Settings/langfors/.m2/repository alpha-1 didn't require this, might be handy to put into the readme? simon > -Original Message- > From: Kenney Westerhof [mailto:[EMAIL PROTECTED] > Sent: 06 May 2005 15:56 > To: Maven Users List > Subject: Re: [m2] bootstrap build from scratch > > > On Fri, 6 May 2005, Simon Matic Langford wrote: > > Try using forward slashes for M2_HOME, or leave that > environment variable > empty. M2 will then be built in target/ somewhere. > > (btw, are there any directories/files created in %M2_HOME% ?) > > Further, maven.properties is not required to exist; and if you must > specify the local repository, try to use the path without > spaces (use a > dos box and dir /x to get the shortname for the C:\Documents > and Settings\ > directory (probably DOCUME~1). > > Success! > > -- Kenney > > > > hi, > > > > I'm trying to do a bootstrap build from latest svn code, and I've > > followed the contents of the Readme, and it don't seem to > be working: > > > > F:\m2-svn>md m2-latest > > > > F:\m2-svn>md m2-latest\bin > > > > F:\m2-svn>set M2_HOME=f:\m2-svn\m2-latest > > > > F:\m2-svn>set PATH=%M2_HOME%\bin;%PATH% > > > > F:\m2-svn>cd maven\components\trunk > > > > F:\m2-svn\maven\components\trunk>m2-bootstrap-all.bat > > 1 file(s) copied. > > Exception in thread "main" java.lang.NullPointerException > > at MBoot.run(MBoot.java:157) > > at MBoot.main(MBoot.java:117) > > Rebuilding maven2 plugins > > > > ERROR: M2_HOME is set to an invalid directory. > > M2_HOME = f:\m2-svn\m2-latest > > Please set the M2_HOME variable in your environment to match the > > location of the Maven installation > > > > Running integration tests > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/maven/it/Verifier > > > > my maven.properties has the following: > > > > F:\m2-svn\maven\components\trunk>cat "C:\Documents and > > Settings\langfors\.m2\maven.properties" > > maven.repo.local=c:/Documents and Settings/langfors/.m2/repository > > > > any ideas? apart from the null pointers and errors, it > seems to complain > > about the location of M2_HOME, yet the readme says to set > this to where > > you want m2 to be installed. > > > > > > thanks > > > > simon > > > > > > > > The information contained in this e-mail is intended only > for the person > > or > > entity to which it is addressed and may contain confidential and/or > > privileged material. If You are not the intended recipient of this > > e-mail, > > the use of this information or any disclosure, copying or > distribution > > is > > Prohibited and may be unlawful. If you received this in > error, please > > contact the sender and delete the material from any > computer. The views > > expressed in this e-mail may not necessarily be the views > of The PCMS > > Group > > plc and should not be taken as authority to carry out any > instruction > > contained. > > > > > > > > -- > Kenney Westerhof > http://www.neonics.com > GPG public key: http://www.gods.nl/~forge/kenneyw.key > > - > 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] bootstrap build from scratch
I've just fixed MBoot's error handling. I'll take a look at the batch file too... it's not exiting on errors. The M2_HOME error is due to attempting to run M2 when nothing was installed, so the directory doesn't exist. Anyway... you are missing true on your "profile" tag in settings.xml. Cheers, Brett On 5/7/05, Simon Matic Langford <[EMAIL PROTECTED]> wrote: > hi, > > I'm trying to do a bootstrap build from latest svn code, and I've > followed the contents of the Readme, and it don't seem to be working: > > F:\m2-svn>md m2-latest > > F:\m2-svn>md m2-latest\bin > > F:\m2-svn>set M2_HOME=f:\m2-svn\m2-latest > > F:\m2-svn>set PATH=%M2_HOME%\bin;%PATH% > > F:\m2-svn>cd maven\components\trunk > > F:\m2-svn\maven\components\trunk>m2-bootstrap-all.bat > 1 file(s) copied. > Exception in thread "main" java.lang.NullPointerException > at MBoot.run(MBoot.java:157) > at MBoot.main(MBoot.java:117) > Rebuilding maven2 plugins > > ERROR: M2_HOME is set to an invalid directory. > M2_HOME = f:\m2-svn\m2-latest > Please set the M2_HOME variable in your environment to match the > location of the Maven installation > > Running integration tests > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/maven/it/Verifier > > my maven.properties has the following: > > F:\m2-svn\maven\components\trunk>cat "C:\Documents and > Settings\langfors\.m2\maven.properties" > maven.repo.local=c:/Documents and Settings/langfors/.m2/repository > > any ideas? apart from the null pointers and errors, it seems to complain > about the location of M2_HOME, yet the readme says to set this to where > you want m2 to be installed. > > thanks > > simon > > The information contained in this e-mail is intended only for the person > or > entity to which it is addressed and may contain confidential and/or > privileged material. If You are not the intended recipient of this > e-mail, > the use of this information or any disclosure, copying or distribution > is > Prohibited and may be unlawful. If you received this in error, please > contact the sender and delete the material from any computer. The views > expressed in this e-mail may not necessarily be the views of The PCMS > Group > plc and should not be taken as authority to carry out any instruction > contained. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] bootstrap build from scratch
On Fri, 6 May 2005, Simon Matic Langford wrote: Try using forward slashes for M2_HOME, or leave that environment variable empty. M2 will then be built in target/ somewhere. (btw, are there any directories/files created in %M2_HOME% ?) Further, maven.properties is not required to exist; and if you must specify the local repository, try to use the path without spaces (use a dos box and dir /x to get the shortname for the C:\Documents and Settings\ directory (probably DOCUME~1). Success! -- Kenney > hi, > > I'm trying to do a bootstrap build from latest svn code, and I've > followed the contents of the Readme, and it don't seem to be working: > > F:\m2-svn>md m2-latest > > F:\m2-svn>md m2-latest\bin > > F:\m2-svn>set M2_HOME=f:\m2-svn\m2-latest > > F:\m2-svn>set PATH=%M2_HOME%\bin;%PATH% > > F:\m2-svn>cd maven\components\trunk > > F:\m2-svn\maven\components\trunk>m2-bootstrap-all.bat > 1 file(s) copied. > Exception in thread "main" java.lang.NullPointerException > at MBoot.run(MBoot.java:157) > at MBoot.main(MBoot.java:117) > Rebuilding maven2 plugins > > ERROR: M2_HOME is set to an invalid directory. > M2_HOME = f:\m2-svn\m2-latest > Please set the M2_HOME variable in your environment to match the > location of the Maven installation > > Running integration tests > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/maven/it/Verifier > > my maven.properties has the following: > > F:\m2-svn\maven\components\trunk>cat "C:\Documents and > Settings\langfors\.m2\maven.properties" > maven.repo.local=c:/Documents and Settings/langfors/.m2/repository > > any ideas? apart from the null pointers and errors, it seems to complain > about the location of M2_HOME, yet the readme says to set this to where > you want m2 to be installed. > > > thanks > > simon > > > > The information contained in this e-mail is intended only for the person > or > entity to which it is addressed and may contain confidential and/or > privileged material. If You are not the intended recipient of this > e-mail, > the use of this information or any disclosure, copying or distribution > is > Prohibited and may be unlawful. If you received this in error, please > contact the sender and delete the material from any computer. The views > expressed in this e-mail may not necessarily be the views of The PCMS > Group > plc and should not be taken as authority to carry out any instruction > contained. > > > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] bootstrap build from scratch
hi, I'm trying to do a bootstrap build from latest svn code, and I've followed the contents of the Readme, and it don't seem to be working: F:\m2-svn>md m2-latest F:\m2-svn>md m2-latest\bin F:\m2-svn>set M2_HOME=f:\m2-svn\m2-latest F:\m2-svn>set PATH=%M2_HOME%\bin;%PATH% F:\m2-svn>cd maven\components\trunk F:\m2-svn\maven\components\trunk>m2-bootstrap-all.bat 1 file(s) copied. Exception in thread "main" java.lang.NullPointerException at MBoot.run(MBoot.java:157) at MBoot.main(MBoot.java:117) Rebuilding maven2 plugins ERROR: M2_HOME is set to an invalid directory. M2_HOME = f:\m2-svn\m2-latest Please set the M2_HOME variable in your environment to match the location of the Maven installation Running integration tests Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/maven/it/Verifier my maven.properties has the following: F:\m2-svn\maven\components\trunk>cat "C:\Documents and Settings\langfors\.m2\maven.properties" maven.repo.local=c:/Documents and Settings/langfors/.m2/repository any ideas? apart from the null pointers and errors, it seems to complain about the location of M2_HOME, yet the readme says to set this to where you want m2 to be installed. thanks simon The information contained in this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If You are not the intended recipient of this e-mail, the use of this information or any disclosure, copying or distribution is Prohibited and may be unlawful. If you received this in error, please contact the sender and delete the material from any computer. The views expressed in this e-mail may not necessarily be the views of The PCMS Group plc and should not be taken as authority to carry out any instruction contained.