That is what I say, definitely not, 
I have tested it, and it produces the error shown in .-2
Josef

-----Ursprüngliche Nachricht-----
Von: Ron Wheeler [mailto:rwhee...@artifact-software.com] 
Gesendet: Donnerstag, 29. November 2012 18:29
An: users@maven.apache.org
Betreff: Re: AW: MissingProjectException

I don't think M2_HOME should have the \bin at the end.


On 29/11/2012 12:18 PM, Stadelmann Josef wrote:
> I toke the NetBeans 7.2 / tool / option / java / maven / and I had to 
> browsed to E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.1\bin
>
> The I tried a clean build from NetBeans and I got
> ----------
> cd E:\Users\C770817\SW-PROJEKTE\SpezplaService;
> "JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_30"
> M2_HOME=E:\\Users\\C770817\\SW-UMGEBUNG\\apache-maven-3.1\\bin mvn.bat 
> clean install
>
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = "E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.1\bin"
> Please set the M2_HOME variable in your environment to match the 
> location of the Maven installation
> ------------
>
> maybe not with an older NetBeans version
>
> browsing to and setting in the select window to 
> E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.1\bin\..
> selects actually E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.1
> which is correct - hence it works.
>
>
> ---------------
> But
> E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.1\bin
> is a no go for NetBeans 7.2 and
> results in the error shown above.
>
> So far my NetBeans 7.2 setup for maven.
>
> the same error happens when I take the control panel and set the 
> env.variable M2_HOME to 
> E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.1\bin
>
>
> So for you to work
>
> Set MAVEN_HOME or M2_HOME to
> E:\Apps\Dev\NetBeans7\NetBeans7.2.1\java\maven
> but not
> E:\Apps\Dev\NetBeans7\NetBeans7.2.1\java\maven\bin or vice versa, 
> (even the 2 dots may make it potentially work go up one level to be 
> correct) and have a greater chance . . . it will all work :-) if not tell me 
> and I try it myself with this setups.
>
>
> NetBeans 7.2 allows only to brows for the maven location, and it takes 
> out the last dir when it is followed by hacked in "\.."
> while older NetBeans give you access and allows to enter what you want.
>
> Josef
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Froggerbin [mailto:frogger...@gmail.com]
> Gesendet: Donnerstag, 29. November 2012 15:58
> An: 'Maven Users List'
> Betreff: RE: MissingProjectException
>
> Yes, I knew that NetBeans had its own Maven on board. My external as well as 
> internal maven work nicely through Windows commandline, but not through 
> NetBeans. That's the whole problem.
>
>  From commandline here follow the internal maven and external maven 
> installations:
>
> NetBeans onboard internal Maven:
>
> C:\>mvn -version
> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: 
> E:\Apps\Dev\NetBeans7\NetBeans7.2.1\java\maven\bin\..
> Java version: 1.7.0_07, vendor: Oracle Corporation Java home: E:\Apps 
> (x86)\Dev\Java\jdk7u7\jre Default locale: en_US, platform encoding: Cp1252 OS 
> name: "windows 7", version: "6.1", arch: "x86", family: "windows"
>
> External Maven (extracted zip):
>
> E:\Apps (x86)\Dev\apachemaven\apache-maven-3.0.4\bin>mvn -version Apache 
> Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: E:\Apps 
> (x86)\Dev\apachemaven\apache-maven-3.0.4\bin\..
> Java version: 1.7.0_07, vendor: Oracle Corporation Java home: E:\Apps 
> (x86)\Dev\Java\jdk7u7\jre Default locale: en_US, platform encoding: Cp1252 OS 
> name: "windows 7", version: "6.1", arch: "x86", family: "windows"
>
> I tried using both the internal Maven and the external maven in NetBeans 
> through the options you said (options->java->maven) but it still doesn't work.
>
> -----Original Message-----
> From: Stadelmann Josef [mailto:josef.stadelm...@axa-winterthur.ch]
> Sent: woensdag 28 november 2012 9:55
> To: Maven Users List
> Subject: AW: MissingProjectException
>
> Hi
>
> Do you know that NetBeans has its own maven on board?
>       C:\Program Files\NetBeans 7.2\java\maven\bin
>
> Your EXTERNAL maven - pointed to by MAVEN_HOME or M2_HOME might work nicely, 
> i.e. USE $ mvn -version as a always first to check and tell us a bit more 
> about what you have.
>
> In order to use this external maven with NetBeans, at NetBeans goto /tools
>       /options
>               /tab to JAVA
>                       /tab to MAVEN
>
>       and enter the path to the root of your external maven i.e.
>       or the  same as you have in M2_HOME
>
> but not as a multi part path,
> only as a single path is allowed there
>       E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.0.5
>
> If you already toke notice of that, or know that, then you are on a good way.
>
> Josef
>
>
>
>   
> -----Ursprüngliche Nachricht-----
> Von: Froggerbin [mailto:frogger...@gmail.com]
> Gesendet: Mittwoch, 28. November 2012 00:03
> An: 'Maven Users List'; rwhee...@artifact-software.com
> Betreff: RE: MissingProjectException
>
> To me it simply looks like the " character is being escaped with "\ on both 
> sides: "\" sample \""
> I figure NetBeans did this because the path contains spaces, therefor if the 
> " are escaped, then the \ have to be escaped as well, hence the double \.
> That is simply supposed to be mvn.bat that resides in the Maven installation 
> directory. In that case it's an external Maven. Internal or external, I tried 
> both and the problem remained.
>
> -----Original Message-----
> From: Ron Wheeler [mailto:rwhee...@artifact-software.com]
> Sent: dinsdag 27 november 2012 23:59
> To: users@maven.apache.org
> Subject: Re: MissingProjectException
>
> On 27/11/2012 4:07 PM, Froggerbin wrote:
>> "\"E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\""
> This looks very odd and I am not sure how any normal parser is going to deal 
> with this.
> What is it supposed to be?
>
> Ron
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwhee...@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org


--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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

Reply via email to