You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Froggerbin <fr...@gmail.com> on 2012/11/27 12:17:29 UTC

MissingProjectException

Hello,

 

When I try to either Build, Clean and Build or Run (play button) my '
<http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' in
NetBeans, I get the following output: 



1.	cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
"M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4" "\"E:\\Apps
(x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install
-e  
2.	Error stacktraces are turned on.  
3.	Scanning for projects...  
4.
------------------------------------------------------------------------  
5.	BUILD FAILURE  
6.
------------------------------------------------------------------------  
7.	Total time: 0.138s  
8.	Finished at: Mon Oct 22 13:16:36 CEST 2012  
9.	Final Memory: 2M/15M  
10.
------------------------------------------------------------------------  
11.	The goal you specified requires a project to execute but there is no
POM in this directory (E:\). Please verify you invoked Maven from the
correct directory. -> [Help 1]  
12.	org.apache.maven.lifecycle.MissingProjectException: The goal you
specified requires a project to execute but there is no POM in this
directory (E:\). Please verify you invoked Maven from the correct directory.

13.	    at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
r.java:89)  
14.	    at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)  
15.	    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

16.	    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)  
17.	    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)  
18.	    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)  
19.	    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
20.	    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)  
21.	    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)  
22.	    at java.lang.reflect.Method.invoke(Method.java:601)  
23.	    at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.ja
va:290)  
24.	    at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

25.	    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
java:409)  
26.	    at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)  
27.	  
28.	Re-run Maven using the -X switch to enable full debug logging.  
29.	  
30.	For more information about the errors and possible solutions, please
read the following articles:  
31.	[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException   


This is what I have tried to fix the problem: 

- Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi directory (I
don't know if this belongs to NetBeans), rebooted and reinstalled NetBeans
7.2 
- Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1 
- modified the POM file of the project 
- modify the context.xml file in META-INF/ folder of my project to point it
to a different path. 
- Correctly install Maven by adding the proper environment variables (works)


My projects used to build and run perfectly with no problems when I was
using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when I started
getting this error. 
The error doesn't go away no matter what I try. 

Other strange behavior: 
- When I try to create a new Maven Webapplication in NetBeans, it always
creates it under the root of my drive E:\ in a folder even though I
explicitly tell it to install it under my projects folder. 

What works: 

-The only time when my projects successfully build and run is when I run
them in my Windows XP SP3 virtual machine. 
So I don't know what to think here. What application or configuration is at
fault? I find it very difficult to troubleshoot. 

-Running this command:
<https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException>
https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException 
thus using an explicit path to my project 
I don't want to do this every time. I want it to work like it's supposed to.


Specs: 
JDK 1.7 
Sourcecode  <http://www.javaranch.com/> java version: 1.6 
OS: Windows 7 x64 
Server used: Tomcat 7.x / GlassFish 3.1.2

Thank you,

--

William


Re: MissingProjectException

Posted by Ron Wheeler <rw...@artifact-software.com>.
If it started when you changed versions of Netbeans, that is a good 
indication that it is a Netbeans problem and very likely there are 
people in the Netbeans forum that also ran into this.

It does not look like a Maven problem since Netbeans is generating a 
Maven string that appears to be incorrect so Maven has no chance to succeed.

What do they say in the Netbeans forum?


Ron

On 27/11/2012 2:21 PM, Froggerbin wrote:
> I doubt it is a NetBeans problem since I tried different versions of NetBeans. The problem started ever since I moved from NetBeans 7.0.1 to NetBeans 7.2.1. The project builds correctly in NetBeans in the virtual machine though. We still don't know what is the cause.
>
> -----Original Message-----
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Sent: dinsdag 27 november 2012 19:37
> To: users@maven.apache.org
> Subject: Re: MissingProjectException
>
> So it is a Netbeans problem.
> You might want to ask in a Netbeans forum.
>
> Ron
>
>
> On 27/11/2012 1:01 PM, Froggerbin wrote:
>> I just  tried using (in NetBeans) the following JDK's for my project:
>> JDK1.6 (64 bit)
>> JDK7 update 7 (32 bit)
>> JDK7 update 5 (64 bit)
>> JDK6 update 23 (64 bit)
>>
>> None of them worked. Same error.
>> What is strange is that things work correctly in Windows XP 32 bit virtual machine.
>>
>> -----Original Message-----
>> From: Milos Kleint [mailto:mkleint@gmail.com]
>> Sent: dinsdag 27 november 2012 18:31
>> To: Maven Users List
>> Subject: Re: MissingProjectException
>>
>> well, you've changed everything else but the JDK. that's where the thought is coming from.
>>
>> And it has to be something with your setup, as it's working fine for the majority of users out there. So yes, it could be a netbeans issue, but most likely it's not netbeans alone, but a combination of factors.
>>
>> Milos
>>
>> On Tue, Nov 27, 2012 at 5:54 PM, Froggerbin <fr...@gmail.com> wrote:
>>> How would the JDK be at fault in this and what does it have to do with the path?
>>>
>>> -----Original Message-----
>>> From: Milos Kleint [mailto:mkleint@gmail.com]
>>> Sent: dinsdag 27 november 2012 17:48
>>> To: Maven Users List
>>> Subject: Re: MissingProjectException
>>>
>>> I would bet on the jdk then.
>>>
>>> Milos
>>>
>>> On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
>>>> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>>>>
>>>> -----Original Message-----
>>>> From: Milos Kleint [mailto:mkleint@gmail.com]
>>>> Sent: dinsdag 27 november 2012 14:11
>>>> To: Maven Users List
>>>> Subject: Re: MissingProjectException
>>>>
>>>> I suggest you move the project from root E:\ to something like
>>>> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>>>>
>>>> Milos
>>>>
>>>> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>>>>> Hello,
>>>>>
>>>>>
>>>>>
>>>>> When I try to either Build, Clean and Build or Run (play button) my '
>>>>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication'
>>>>> in NetBeans, I get the following output:
>>>>>
>>>>>
>>>>>
>>>>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>>>>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>>>>> "\"E:\\Apps
>>>>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>>>>> 2.      Error stacktraces are turned on.
>>>>> 3.      Scanning for projects...
>>>>> 4.
>>>>> ------------------------------------------------------------------------
>>>>> 5.      BUILD FAILURE
>>>>> 6.
>>>>> ------------------------------------------------------------------------
>>>>> 7.      Total time: 0.138s
>>>>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>>>>> 9.      Final Memory: 2M/15M
>>>>> 10.
>>>>> ------------------------------------------------------------------------
>>>>> 11.     The goal you specified requires a project to execute but there is no
>>>>> POM in this directory (E:\). Please verify you invoked Maven from
>>>>> the correct directory. -> [Help 1]
>>>>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>>>>> specified requires a project to execute but there is no POM in this
>>>>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>>>>
>>>>> 13.         at
>>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecy
>>>>> c
>>>>> l
>>>>> e
>>>>> Starte
>>>>> r.java:89)
>>>>> 14.         at
>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>>>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>>>
>>>>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>>>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> 20.         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>> j
>>>>> ava:57
>>>>> )
>>>>> 21.         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>>>>> e
>>>>> s
>>>>> s
>>>>> orImpl
>>>>> .java:43)
>>>>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>>>>> 23.         at
>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(La
>>>>> u
>>>>> n
>>>>> c
>>>>> her.ja
>>>>> va:290)
>>>>> 24.         at
>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.j
>>>>> a
>>>>> v
>>>>> a
>>>>> :230)
>>>>>
>>>>> 25.         at
>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>>>>> java:409)
>>>>> 26.         at
>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>>>> 3
>>>>> 52)
>>>>> 27.
>>>>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>>>>> 29.
>>>>> 30.     For more information about the errors and possible solutions, please
>>>>> read the following articles:
>>>>> 31.     [Help 1]
>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>>>>> p
>>>>> t
>>>>> i
>>>>> on
>>>>>
>>>>>
>>>>> This is what I have tried to fix the problem:
>>>>>
>>>>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi
>>>>> directory (I don't know if this belongs to NetBeans), rebooted and
>>>>> reinstalled NetBeans
>>>>> 7.2
>>>>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>>>>> - modified the POM file of the project
>>>>> - modify the context.xml file in META-INF/ folder of my project to
>>>>> point it to a different path.
>>>>> - Correctly install Maven by adding the proper environment
>>>>> variables
>>>>> (works)
>>>>>
>>>>>
>>>>> My projects used to build and run perfectly with no problems when I
>>>>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's
>>>>> when I started getting this error.
>>>>> The error doesn't go away no matter what I try.
>>>>>
>>>>> Other strange behavior:
>>>>> - When I try to create a new Maven Webapplication in NetBeans, it
>>>>> always creates it under the root of my drive E:\ in a folder even
>>>>> though I explicitly tell it to install it under my projects folder.
>>>>>
>>>>> What works:
>>>>>
>>>>> -The only time when my projects successfully build and run is when
>>>>> I run them in my Windows XP SP3 virtual machine.
>>>>> So I don't know what to think here. What application or
>>>>> configuration is at fault? I find it very difficult to troubleshoot.
>>>>>
>>>>> -Running this command:
>>>>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectEx
>>>>> c
>>>>> e
>>>>> p
>>>>> tion>
>>>>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExc
>>>>> e p t ion thus using an explicit path to my project I don't want to
>>>>> do this every time. I want it to work like it's supposed to.
>>>>>
>>>>>
>>>>> Specs:
>>>>> JDK 1.7
>>>>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>>>>> OS: Windows 7 x64
>>>>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>>>>
>>>>> Thank you,
>>>>>
>>>>> --
>>>>>
>>>>> William
>>>>>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>


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


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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
I doubt it is a NetBeans problem since I tried different versions of NetBeans. The problem started ever since I moved from NetBeans 7.0.1 to NetBeans 7.2.1. The project builds correctly in NetBeans in the virtual machine though. We still don't know what is the cause.

-----Original Message-----
From: Ron Wheeler [mailto:rwheeler@artifact-software.com] 
Sent: dinsdag 27 november 2012 19:37
To: users@maven.apache.org
Subject: Re: MissingProjectException

So it is a Netbeans problem.
You might want to ask in a Netbeans forum.

Ron


On 27/11/2012 1:01 PM, Froggerbin wrote:
> I just  tried using (in NetBeans) the following JDK's for my project:
> JDK1.6 (64 bit)
> JDK7 update 7 (32 bit)
> JDK7 update 5 (64 bit)
> JDK6 update 23 (64 bit)
>
> None of them worked. Same error.
> What is strange is that things work correctly in Windows XP 32 bit virtual machine.
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 18:31
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> well, you've changed everything else but the JDK. that's where the thought is coming from.
>
> And it has to be something with your setup, as it's working fine for the majority of users out there. So yes, it could be a netbeans issue, but most likely it's not netbeans alone, but a combination of factors.
>
> Milos
>
> On Tue, Nov 27, 2012 at 5:54 PM, Froggerbin <fr...@gmail.com> wrote:
>> How would the JDK be at fault in this and what does it have to do with the path?
>>
>> -----Original Message-----
>> From: Milos Kleint [mailto:mkleint@gmail.com]
>> Sent: dinsdag 27 november 2012 17:48
>> To: Maven Users List
>> Subject: Re: MissingProjectException
>>
>> I would bet on the jdk then.
>>
>> Milos
>>
>> On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
>>> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>>>
>>> -----Original Message-----
>>> From: Milos Kleint [mailto:mkleint@gmail.com]
>>> Sent: dinsdag 27 november 2012 14:11
>>> To: Maven Users List
>>> Subject: Re: MissingProjectException
>>>
>>> I suggest you move the project from root E:\ to something like 
>>> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>>>
>>> Milos
>>>
>>> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>>>> Hello,
>>>>
>>>>
>>>>
>>>> When I try to either Build, Clean and Build or Run (play button) my '
>>>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication'
>>>> in NetBeans, I get the following output:
>>>>
>>>>
>>>>
>>>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>>>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>>>> "\"E:\\Apps
>>>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>>>> 2.      Error stacktraces are turned on.
>>>> 3.      Scanning for projects...
>>>> 4.
>>>> ------------------------------------------------------------------------
>>>> 5.      BUILD FAILURE
>>>> 6.
>>>> ------------------------------------------------------------------------
>>>> 7.      Total time: 0.138s
>>>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>>>> 9.      Final Memory: 2M/15M
>>>> 10.
>>>> ------------------------------------------------------------------------
>>>> 11.     The goal you specified requires a project to execute but there is no
>>>> POM in this directory (E:\). Please verify you invoked Maven from 
>>>> the correct directory. -> [Help 1]
>>>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>>>> specified requires a project to execute but there is no POM in this 
>>>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>>>
>>>> 13.         at
>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecy
>>>> c
>>>> l
>>>> e
>>>> Starte
>>>> r.java:89)
>>>> 14.         at
>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>>
>>>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> 20.         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> j
>>>> ava:57
>>>> )
>>>> 21.         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>>>> e
>>>> s
>>>> s
>>>> orImpl
>>>> .java:43)
>>>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>>>> 23.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(La
>>>> u
>>>> n
>>>> c
>>>> her.ja
>>>> va:290)
>>>> 24.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.j
>>>> a
>>>> v
>>>> a
>>>> :230)
>>>>
>>>> 25.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>>>> java:409)
>>>> 26.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>>> 3
>>>> 52)
>>>> 27.
>>>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>>>> 29.
>>>> 30.     For more information about the errors and possible solutions, please
>>>> read the following articles:
>>>> 31.     [Help 1]
>>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>>>> p
>>>> t
>>>> i
>>>> on
>>>>
>>>>
>>>> This is what I have tried to fix the problem:
>>>>
>>>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi 
>>>> directory (I don't know if this belongs to NetBeans), rebooted and 
>>>> reinstalled NetBeans
>>>> 7.2
>>>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>>>> - modified the POM file of the project
>>>> - modify the context.xml file in META-INF/ folder of my project to 
>>>> point it to a different path.
>>>> - Correctly install Maven by adding the proper environment 
>>>> variables
>>>> (works)
>>>>
>>>>
>>>> My projects used to build and run perfectly with no problems when I 
>>>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's 
>>>> when I started getting this error.
>>>> The error doesn't go away no matter what I try.
>>>>
>>>> Other strange behavior:
>>>> - When I try to create a new Maven Webapplication in NetBeans, it 
>>>> always creates it under the root of my drive E:\ in a folder even 
>>>> though I explicitly tell it to install it under my projects folder.
>>>>
>>>> What works:
>>>>
>>>> -The only time when my projects successfully build and run is when 
>>>> I run them in my Windows XP SP3 virtual machine.
>>>> So I don't know what to think here. What application or 
>>>> configuration is at fault? I find it very difficult to troubleshoot.
>>>>
>>>> -Running this command:
>>>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectEx
>>>> c
>>>> e
>>>> p
>>>> tion>
>>>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExc
>>>> e p t ion thus using an explicit path to my project I don't want to 
>>>> do this every time. I want it to work like it's supposed to.
>>>>
>>>>
>>>> Specs:
>>>> JDK 1.7
>>>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>>>> OS: Windows 7 x64
>>>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>>>
>>>> Thank you,
>>>>
>>>> --
>>>>
>>>> William
>>>>
>>>

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


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



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


Re: MissingProjectException

Posted by Ron Wheeler <rw...@artifact-software.com>.
So it is a Netbeans problem.
You might want to ask in a Netbeans forum.

Ron


On 27/11/2012 1:01 PM, Froggerbin wrote:
> I just  tried using (in NetBeans) the following JDK's for my project:
> JDK1.6 (64 bit)
> JDK7 update 7 (32 bit)
> JDK7 update 5 (64 bit)
> JDK6 update 23 (64 bit)
>
> None of them worked. Same error.
> What is strange is that things work correctly in Windows XP 32 bit virtual machine.
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 18:31
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> well, you've changed everything else but the JDK. that's where the thought is coming from.
>
> And it has to be something with your setup, as it's working fine for the majority of users out there. So yes, it could be a netbeans issue, but most likely it's not netbeans alone, but a combination of factors.
>
> Milos
>
> On Tue, Nov 27, 2012 at 5:54 PM, Froggerbin <fr...@gmail.com> wrote:
>> How would the JDK be at fault in this and what does it have to do with the path?
>>
>> -----Original Message-----
>> From: Milos Kleint [mailto:mkleint@gmail.com]
>> Sent: dinsdag 27 november 2012 17:48
>> To: Maven Users List
>> Subject: Re: MissingProjectException
>>
>> I would bet on the jdk then.
>>
>> Milos
>>
>> On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
>>> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>>>
>>> -----Original Message-----
>>> From: Milos Kleint [mailto:mkleint@gmail.com]
>>> Sent: dinsdag 27 november 2012 14:11
>>> To: Maven Users List
>>> Subject: Re: MissingProjectException
>>>
>>> I suggest you move the project from root E:\ to something like
>>> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>>>
>>> Milos
>>>
>>> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>>>> Hello,
>>>>
>>>>
>>>>
>>>> When I try to either Build, Clean and Build or Run (play button) my '
>>>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication'
>>>> in NetBeans, I get the following output:
>>>>
>>>>
>>>>
>>>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>>>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>>>> "\"E:\\Apps
>>>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>>>> 2.      Error stacktraces are turned on.
>>>> 3.      Scanning for projects...
>>>> 4.
>>>> ------------------------------------------------------------------------
>>>> 5.      BUILD FAILURE
>>>> 6.
>>>> ------------------------------------------------------------------------
>>>> 7.      Total time: 0.138s
>>>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>>>> 9.      Final Memory: 2M/15M
>>>> 10.
>>>> ------------------------------------------------------------------------
>>>> 11.     The goal you specified requires a project to execute but there is no
>>>> POM in this directory (E:\). Please verify you invoked Maven from
>>>> the correct directory. -> [Help 1]
>>>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>>>> specified requires a project to execute but there is no POM in this
>>>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>>>
>>>> 13.         at
>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecyc
>>>> l
>>>> e
>>>> Starte
>>>> r.java:89)
>>>> 14.         at
>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>>
>>>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> 20.         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> j
>>>> ava:57
>>>> )
>>>> 21.         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
>>>> s
>>>> s
>>>> orImpl
>>>> .java:43)
>>>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>>>> 23.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Lau
>>>> n
>>>> c
>>>> her.ja
>>>> va:290)
>>>> 24.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.ja
>>>> v
>>>> a
>>>> :230)
>>>>
>>>> 25.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>>>> java:409)
>>>> 26.         at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>>> 3
>>>> 52)
>>>> 27.
>>>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>>>> 29.
>>>> 30.     For more information about the errors and possible solutions, please
>>>> read the following articles:
>>>> 31.     [Help 1]
>>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
>>>> t
>>>> i
>>>> on
>>>>
>>>>
>>>> This is what I have tried to fix the problem:
>>>>
>>>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi
>>>> directory (I don't know if this belongs to NetBeans), rebooted and
>>>> reinstalled NetBeans
>>>> 7.2
>>>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>>>> - modified the POM file of the project
>>>> - modify the context.xml file in META-INF/ folder of my project to
>>>> point it to a different path.
>>>> - Correctly install Maven by adding the proper environment variables
>>>> (works)
>>>>
>>>>
>>>> My projects used to build and run perfectly with no problems when I
>>>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's
>>>> when I started getting this error.
>>>> The error doesn't go away no matter what I try.
>>>>
>>>> Other strange behavior:
>>>> - When I try to create a new Maven Webapplication in NetBeans, it
>>>> always creates it under the root of my drive E:\ in a folder even
>>>> though I explicitly tell it to install it under my projects folder.
>>>>
>>>> What works:
>>>>
>>>> -The only time when my projects successfully build and run is when I
>>>> run them in my Windows XP SP3 virtual machine.
>>>> So I don't know what to think here. What application or
>>>> configuration is at fault? I find it very difficult to troubleshoot.
>>>>
>>>> -Running this command:
>>>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExc
>>>> e
>>>> p
>>>> tion>
>>>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>>>> p t ion thus using an explicit path to my project I don't want to do
>>>> this every time. I want it to work like it's supposed to.
>>>>
>>>>
>>>> Specs:
>>>> JDK 1.7
>>>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>>>> OS: Windows 7 x64
>>>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>>>
>>>> Thank you,
>>>>
>>>> --
>>>>
>>>> William
>>>>
>>>

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


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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
I just  tried using (in NetBeans) the following JDK's for my project:
JDK1.6 (64 bit)
JDK7 update 7 (32 bit)
JDK7 update 5 (64 bit)
JDK6 update 23 (64 bit)

None of them worked. Same error.
What is strange is that things work correctly in Windows XP 32 bit virtual machine.

-----Original Message-----
From: Milos Kleint [mailto:mkleint@gmail.com] 
Sent: dinsdag 27 november 2012 18:31
To: Maven Users List
Subject: Re: MissingProjectException

well, you've changed everything else but the JDK. that's where the thought is coming from.

And it has to be something with your setup, as it's working fine for the majority of users out there. So yes, it could be a netbeans issue, but most likely it's not netbeans alone, but a combination of factors.

Milos

On Tue, Nov 27, 2012 at 5:54 PM, Froggerbin <fr...@gmail.com> wrote:
> How would the JDK be at fault in this and what does it have to do with the path?
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 17:48
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> I would bet on the jdk then.
>
> Milos
>
> On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
>> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>>
>> -----Original Message-----
>> From: Milos Kleint [mailto:mkleint@gmail.com]
>> Sent: dinsdag 27 november 2012 14:11
>> To: Maven Users List
>> Subject: Re: MissingProjectException
>>
>> I suggest you move the project from root E:\ to something like 
>> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>>
>> Milos
>>
>> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>>> Hello,
>>>
>>>
>>>
>>> When I try to either Build, Clean and Build or Run (play button) my '
>>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' 
>>> in NetBeans, I get the following output:
>>>
>>>
>>>
>>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>>> "\"E:\\Apps
>>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>>> 2.      Error stacktraces are turned on.
>>> 3.      Scanning for projects...
>>> 4.
>>> ------------------------------------------------------------------------
>>> 5.      BUILD FAILURE
>>> 6.
>>> ------------------------------------------------------------------------
>>> 7.      Total time: 0.138s
>>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>>> 9.      Final Memory: 2M/15M
>>> 10.
>>> ------------------------------------------------------------------------
>>> 11.     The goal you specified requires a project to execute but there is no
>>> POM in this directory (E:\). Please verify you invoked Maven from 
>>> the correct directory. -> [Help 1]
>>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>>> specified requires a project to execute but there is no POM in this 
>>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>>
>>> 13.         at
>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecyc
>>> l
>>> e
>>> Starte
>>> r.java:89)
>>> 14.         at
>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>
>>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 20.         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> j
>>> ava:57
>>> )
>>> 21.         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
>>> s
>>> s
>>> orImpl
>>> .java:43)
>>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>>> 23.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Lau
>>> n
>>> c
>>> her.ja
>>> va:290)
>>> 24.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.ja
>>> v
>>> a
>>> :230)
>>>
>>> 25.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>>> java:409)
>>> 26.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>> 3
>>> 52)
>>> 27.
>>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>>> 29.
>>> 30.     For more information about the errors and possible solutions, please
>>> read the following articles:
>>> 31.     [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
>>> t
>>> i
>>> on
>>>
>>>
>>> This is what I have tried to fix the problem:
>>>
>>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi 
>>> directory (I don't know if this belongs to NetBeans), rebooted and 
>>> reinstalled NetBeans
>>> 7.2
>>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>>> - modified the POM file of the project
>>> - modify the context.xml file in META-INF/ folder of my project to 
>>> point it to a different path.
>>> - Correctly install Maven by adding the proper environment variables
>>> (works)
>>>
>>>
>>> My projects used to build and run perfectly with no problems when I 
>>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's 
>>> when I started getting this error.
>>> The error doesn't go away no matter what I try.
>>>
>>> Other strange behavior:
>>> - When I try to create a new Maven Webapplication in NetBeans, it 
>>> always creates it under the root of my drive E:\ in a folder even 
>>> though I explicitly tell it to install it under my projects folder.
>>>
>>> What works:
>>>
>>> -The only time when my projects successfully build and run is when I 
>>> run them in my Windows XP SP3 virtual machine.
>>> So I don't know what to think here. What application or 
>>> configuration is at fault? I find it very difficult to troubleshoot.
>>>
>>> -Running this command:
>>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExc
>>> e
>>> p
>>> tion>
>>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>>> p t ion thus using an explicit path to my project I don't want to do 
>>> this every time. I want it to work like it's supposed to.
>>>
>>>
>>> Specs:
>>> JDK 1.7
>>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>>> OS: Windows 7 x64
>>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>>
>>> Thank you,
>>>
>>> --
>>>
>>> William
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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



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


Re: MissingProjectException

Posted by Milos Kleint <mk...@gmail.com>.
well, you've changed everything else but the JDK. that's where the
thought is coming from.

And it has to be something with your setup, as it's working fine for
the majority of users out there. So yes, it could be a netbeans issue,
but most likely it's not netbeans alone, but a combination of factors.

Milos

On Tue, Nov 27, 2012 at 5:54 PM, Froggerbin <fr...@gmail.com> wrote:
> How would the JDK be at fault in this and what does it have to do with the path?
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 17:48
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> I would bet on the jdk then.
>
> Milos
>
> On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
>> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>>
>> -----Original Message-----
>> From: Milos Kleint [mailto:mkleint@gmail.com]
>> Sent: dinsdag 27 november 2012 14:11
>> To: Maven Users List
>> Subject: Re: MissingProjectException
>>
>> I suggest you move the project from root E:\ to something like
>> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>>
>> Milos
>>
>> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>>> Hello,
>>>
>>>
>>>
>>> When I try to either Build, Clean and Build or Run (play button) my '
>>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' in
>>> NetBeans, I get the following output:
>>>
>>>
>>>
>>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>>> "\"E:\\Apps
>>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>>> 2.      Error stacktraces are turned on.
>>> 3.      Scanning for projects...
>>> 4.
>>> ------------------------------------------------------------------------
>>> 5.      BUILD FAILURE
>>> 6.
>>> ------------------------------------------------------------------------
>>> 7.      Total time: 0.138s
>>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>>> 9.      Final Memory: 2M/15M
>>> 10.
>>> ------------------------------------------------------------------------
>>> 11.     The goal you specified requires a project to execute but there is no
>>> POM in this directory (E:\). Please verify you invoked Maven from the
>>> correct directory. -> [Help 1]
>>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>>> specified requires a project to execute but there is no POM in this
>>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>>
>>> 13.         at
>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
>>> e
>>> Starte
>>> r.java:89)
>>> 14.         at
>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>
>>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 20.         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> j
>>> ava:57
>>> )
>>> 21.         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> s
>>> orImpl
>>> .java:43)
>>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>>> 23.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
>>> c
>>> her.ja
>>> va:290)
>>> 24.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
>>> a
>>> :230)
>>>
>>> 25.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>>> java:409)
>>> 26.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>> 3
>>> 52)
>>> 27.
>>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>>> 29.
>>> 30.     For more information about the errors and possible solutions, please
>>> read the following articles:
>>> 31.     [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcept
>>> i
>>> on
>>>
>>>
>>> This is what I have tried to fix the problem:
>>>
>>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi
>>> directory (I don't know if this belongs to NetBeans), rebooted and
>>> reinstalled NetBeans
>>> 7.2
>>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>>> - modified the POM file of the project
>>> - modify the context.xml file in META-INF/ folder of my project to
>>> point it to a different path.
>>> - Correctly install Maven by adding the proper environment variables
>>> (works)
>>>
>>>
>>> My projects used to build and run perfectly with no problems when I
>>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when
>>> I started getting this error.
>>> The error doesn't go away no matter what I try.
>>>
>>> Other strange behavior:
>>> - When I try to create a new Maven Webapplication in NetBeans, it
>>> always creates it under the root of my drive E:\ in a folder even
>>> though I explicitly tell it to install it under my projects folder.
>>>
>>> What works:
>>>
>>> -The only time when my projects successfully build and run is when I
>>> run them in my Windows XP SP3 virtual machine.
>>> So I don't know what to think here. What application or configuration
>>> is at fault? I find it very difficult to troubleshoot.
>>>
>>> -Running this command:
>>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>>> p
>>> tion>
>>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
>>> t ion thus using an explicit path to my project I don't want to do
>>> this every time. I want it to work like it's supposed to.
>>>
>>>
>>> Specs:
>>> JDK 1.7
>>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>>> OS: Windows 7 x64
>>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>>
>>> Thank you,
>>>
>>> --
>>>
>>> William
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
When I click on the little wrench in the output window of NetBeans, it says 'Maven settings'. So I assume NetBeans uses Maven for that, not cygwin.

-----Original Message-----
From: Mikhail Kalkov [mailto:mikhail.kalkov@purplescout.se] 
Sent: woensdag 28 november 2012 11:32
To: Maven Users List
Cc: rwheeler@artifact-software.com
Subject: Re: MissingProjectException

These escapes would work in bash, but Windows batch interpreter uses ^ character for escaping, and ignores double backslashes. Additionally, in Windows you cannot set variables with VAR=VALUE syntax. What is the interpreter this command is being passed to? Do you run it in Cygwin bash?

Kind regards, 
Mikhail Kalkov 

Purple Scout AB 
Software Developer

Address: Kyrkogatan 20-22, SE-41110 Gothenburg, Sweden
Phone:   +46 (0) 732 - 051405
E-mail:  mikhail.kalkov@purplescout.se
Web:     www.purplescout.se


----- Original Message -----
From: "Froggerbin" <fr...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>, rwheeler@artifact-software.com
Sent: Wednesday, November 28, 2012 12:03:00 AM
Subject: 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:rwheeler@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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



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

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



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


Re: MissingProjectException

Posted by Ron Wheeler <rw...@artifact-software.com>.
That is too bad.
We use Eclipse/STS under Windows and have never had any problems like 
this, so I am not much use to you.
I suspect that many of the Netbeans users here are running under Linux 
so they have not run into this.


On 29/11/2012 10:18 AM, Froggerbin wrote:
> Nothing at all.
>
> -----Original Message-----
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Sent: donderdag 29 november 2012 16:16
> To: users@maven.apache.org
> Subject: Re: MissingProjectException
>
> Are you getting any useful info from the Netbeans community?
> It does not look like a Maven issue.
>
> Ron
>
> On 29/11/2012 9:58 AM, Froggerbin wrote:
>> 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.stadelmann@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:froggerbin@gmail.com]
>> Gesendet: Mittwoch, 28. November 2012 00:03
>> An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
Nothing at all.

-----Original Message-----
From: Ron Wheeler [mailto:rwheeler@artifact-software.com] 
Sent: donderdag 29 november 2012 16:16
To: users@maven.apache.org
Subject: Re: MissingProjectException

Are you getting any useful info from the Netbeans community?
It does not look like a Maven issue.

Ron

On 29/11/2012 9:58 AM, Froggerbin wrote:
> 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.stadelmann@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:froggerbin@gmail.com]
> Gesendet: Mittwoch, 28. November 2012 00:03
> An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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


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



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


Re: MissingProjectException

Posted by Ron Wheeler <rw...@artifact-software.com>.
Are you getting any useful info from the Netbeans community?
It does not look like a Maven issue.

Ron

On 29/11/2012 9:58 AM, Froggerbin wrote:
> 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.stadelmann@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:froggerbin@gmail.com]
> Gesendet: Mittwoch, 28. November 2012 00:03
> An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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


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


AW: AW: MissingProjectException

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
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:rwheeler@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:froggerbin@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.stadelmann@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:froggerbin@gmail.com]
> Gesendet: Mittwoch, 28. November 2012 00:03
> An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


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


Re: AW: MissingProjectException

Posted by Ron Wheeler <rw...@artifact-software.com>.
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:froggerbin@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.stadelmann@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:froggerbin@gmail.com]
> Gesendet: Mittwoch, 28. November 2012 00:03
> An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


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


AW: MissingProjectException

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
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:froggerbin@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.stadelmann@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:froggerbin@gmail.com]
Gesendet: Mittwoch, 28. November 2012 00:03
An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



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


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


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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
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.stadelmann@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:froggerbin@gmail.com]
Gesendet: Mittwoch, 28. November 2012 00:03
An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



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


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


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


AW: MissingProjectException

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
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:froggerbin@gmail.com] 
Gesendet: Mittwoch, 28. November 2012 00:03
An: 'Maven Users List'; rwheeler@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:rwheeler@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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



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


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

Re: MissingProjectException

Posted by Mikhail Kalkov <mi...@purplescout.se>.
These escapes would work in bash, but Windows batch interpreter uses ^ character for escaping, and ignores double backslashes. Additionally, in Windows you cannot set variables with VAR=VALUE syntax. What is the interpreter this command is being passed to? Do you run it in Cygwin bash?

Kind regards, 
Mikhail Kalkov 

Purple Scout AB 
Software Developer

Address: Kyrkogatan 20-22, SE-41110 Gothenburg, Sweden
Phone:   +46 (0) 732 - 051405
E-mail:  mikhail.kalkov@purplescout.se
Web:     www.purplescout.se


----- Original Message -----
From: "Froggerbin" <fr...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>, rwheeler@artifact-software.com
Sent: Wednesday, November 28, 2012 12:03:00 AM
Subject: 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:rwheeler@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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



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

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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
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:rwheeler@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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



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


Re: MissingProjectException

Posted by Ron Wheeler <rw...@artifact-software.com>.
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: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
Tried. Didn't work.

-----Original Message-----
From: Milos Kleint [mailto:mkleint@gmail.com] 
Sent: dinsdag 27 november 2012 22:04
To: Maven Users List
Cc: rwheeler@artifact-software.com
Subject: Re: MissingProjectException

what about moving maven installation out of a path with brackets and spaces in the path? the only other thing i can think of.

milos

On Tuesday, November 27, 2012, Froggerbin wrote:

> When in commandline doing a cd to the project's directory and running 
> mvn install -f pom.xml from there, the build is a success.
> Doing mvn package from there = SUCCESS. Maven appears to be working there.
>
> When trying to run the same project with the same command (as far as I 
> can
> see) in NetBeans, I get the error I originally posted. Here's NetBeans'
> maven command:
> cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4" 
> "\"E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\""
> -Dnetbeans.deploy=true package
>
> -----Original Message-----
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Sent: dinsdag 27 november 2012 18:00
> To: users@maven.apache.org
> Subject: Re: MissingProjectException
>
> This looks like a Netbeans issue.
> You might get more help there.
> The "s look odd but you seem to say that the command is generated by 
> Netbeans so that is where I would look.
>
> Does Maven work if you run it in a cmd window?
>
> Ron
>
> On 27/11/2012 11:54 AM, Froggerbin wrote:
> > How would the JDK be at fault in this and what does it have to do 
> > with
> the path?
> >
> > -----Original Message-----
> > From: Milos Kleint [mailto:mkleint@gmail.com]
> > Sent: dinsdag 27 november 2012 17:48
> > To: Maven Users List
> > Subject: Re: MissingProjectException
> >
> > I would bet on the jdk then.
> >
> > Milos
> >
> > On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com>
> wrote:
> >> That is the whole problem. The project is not in E:\. It's in
> E:\Dev\Apps\Java. Still I get this error no matter where I put the 
> project or open it from.
> >>
> >> -----Original Message-----
> >> From: Milos Kleint [mailto:mkleint@gmail.com]
> >> Sent: dinsdag 27 november 2012 14:11
> >> To: Maven Users List
> >> Subject: Re: MissingProjectException
> >>
> >> I suggest you move the project from root E:\ to something like 
> >> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
> >>
> >> Milos
> >>
> >> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com>
> wrote:
> >>> Hello,
> >>>
> >>>
> >>>
> >>> When I try to either Build, Clean and Build or Run (play button) my '
> >>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication'
> >>> in NetBeans, I get the following output:
> >>>
> >>>
> >>>
> >>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps
> (x86)\\Dev\\Java\\jdk7u7"
> >>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
> >>> "\"E:\\Apps
> >>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean
> install -e
> >>> 2.      Error stacktraces are turned on.
> >>> 3.      Scanning for projects...
> >>> 4.
> >>>
> ----------------------------------------------------------------------
> --
> >>> 5.      BUILD FAILURE
> >>> 6.
> >>>
> ----------------------------------------------------------------------
> --
> >>> 7.      Total time: 0.138s
> >>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
> >>> 9.      Final Memory: 2M/15M
> >>> 10.
> >>>
> ----------------------------------------------------------------------
> --
> >>> 11.     The goal you specified requires a project to execute but there
> is no
> >>> POM in this directory (E:\). Please verify you invoked Maven from 
> >>> the correct directory. -> [Help 1]
> >>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal
> you
> >>> specified requires a project to execute but there is no POM in 
> >>> this directory (E:\). Please verify you invoked Maven from the 
> >>> correct
> directory.
> >>>
> >>> 13.         at
> >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifec
> >>> yc
> >>> l
> >>> e
> >>> Starte
> >>> r.java:89)
> >>> 14.         at
> >>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> >>> 15.         at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> >>>
> >>> 16.         at org.apache.maven.cli.MavenCli.exe>>> p t ion thus using
> an explicit path to my project I don't want to do
> >>> this every time. I want it to work like it's supposed to.
> >>>
> >>>
> >>> Specs:
> >>> JDK 1.7
> >>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
> >>> OS: Windows 7 x64
> >>> Server used: Tomcat 7.x / GlassFish 3.1.2
> >>>
> >>> Thank you,
> >>>
> >>> --
> >>>
> >>> William
> >>>
> >> -------------------------------------------------------------------
> >> -- To unsubscribe, e-mail: 
> >> users-unsubscribe@maven.apache.org<javascript:;>
> >> For additional commands, e-mail: 
> >> users-help@maven.apache.org<javascript:;>
> >>
> >>
> >>
> >> -------------------------------------------------------------------
> >> -- To unsubscribe, e-mail: 
> >> users-unsubscribe@maven.apache.org<javascript:;>
> >> For additional commands, e-mail: 
> >> users-help@maven.apache.org<javascript:;>
> >>
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: 
> > users-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: 
> > users-help@maven.apache.org<javascript:;>
> >
> >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: 
> > users-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: 
> > users-help@maven.apache.org<javascript:;>
> >
> >
>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwheeler@artifact-software.com <javascript:;>
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org 
> <javascript:;> For additional commands, e-mail: 
> users-help@maven.apache.org<javascript:;>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org 
> <javascript:;> For additional commands, e-mail: 
> users-help@maven.apache.org<javascript:;>
>
>


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


Re: MissingProjectException

Posted by Milos Kleint <mk...@gmail.com>.
what about moving maven installation out of a path with brackets and spaces
in the path? the only other thing i can think of.

milos

On Tuesday, November 27, 2012, Froggerbin wrote:

> When in commandline doing a cd to the project's directory and running mvn
> install -f pom.xml from there, the build is a success.
> Doing mvn package from there = SUCCESS. Maven appears to be working there.
>
> When trying to run the same project with the same command (as far as I can
> see) in NetBeans, I get the error I originally posted. Here's NetBeans'
> maven command:
> cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4" "\"E:\\Apps
> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\""
> -Dnetbeans.deploy=true package
>
> -----Original Message-----
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Sent: dinsdag 27 november 2012 18:00
> To: users@maven.apache.org
> Subject: Re: MissingProjectException
>
> This looks like a Netbeans issue.
> You might get more help there.
> The "s look odd but you seem to say that the command is generated by
> Netbeans so that is where I would look.
>
> Does Maven work if you run it in a cmd window?
>
> Ron
>
> On 27/11/2012 11:54 AM, Froggerbin wrote:
> > How would the JDK be at fault in this and what does it have to do with
> the path?
> >
> > -----Original Message-----
> > From: Milos Kleint [mailto:mkleint@gmail.com]
> > Sent: dinsdag 27 november 2012 17:48
> > To: Maven Users List
> > Subject: Re: MissingProjectException
> >
> > I would bet on the jdk then.
> >
> > Milos
> >
> > On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com>
> wrote:
> >> That is the whole problem. The project is not in E:\. It's in
> E:\Dev\Apps\Java. Still I get this error no matter where I put the project
> or open it from.
> >>
> >> -----Original Message-----
> >> From: Milos Kleint [mailto:mkleint@gmail.com]
> >> Sent: dinsdag 27 november 2012 14:11
> >> To: Maven Users List
> >> Subject: Re: MissingProjectException
> >>
> >> I suggest you move the project from root E:\ to something like
> >> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
> >>
> >> Milos
> >>
> >> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com>
> wrote:
> >>> Hello,
> >>>
> >>>
> >>>
> >>> When I try to either Build, Clean and Build or Run (play button) my '
> >>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication'
> >>> in NetBeans, I get the following output:
> >>>
> >>>
> >>>
> >>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps
> (x86)\\Dev\\Java\\jdk7u7"
> >>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
> >>> "\"E:\\Apps
> >>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean
> install -e
> >>> 2.      Error stacktraces are turned on.
> >>> 3.      Scanning for projects...
> >>> 4.
> >>>
> ------------------------------------------------------------------------
> >>> 5.      BUILD FAILURE
> >>> 6.
> >>>
> ------------------------------------------------------------------------
> >>> 7.      Total time: 0.138s
> >>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
> >>> 9.      Final Memory: 2M/15M
> >>> 10.
> >>>
> ------------------------------------------------------------------------
> >>> 11.     The goal you specified requires a project to execute but there
> is no
> >>> POM in this directory (E:\). Please verify you invoked Maven from
> >>> the correct directory. -> [Help 1]
> >>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal
> you
> >>> specified requires a project to execute but there is no POM in this
> >>> directory (E:\). Please verify you invoked Maven from the correct
> directory.
> >>>
> >>> 13.         at
> >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecyc
> >>> l
> >>> e
> >>> Starte
> >>> r.java:89)
> >>> 14.         at
> >>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> >>> 15.         at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> >>>
> >>> 16.         at org.apache.maven.cli.MavenCli.exe>>> p t ion thus using
> an explicit path to my project I don't want to do
> >>> this every time. I want it to work like it's supposed to.
> >>>
> >>>
> >>> Specs:
> >>> JDK 1.7
> >>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
> >>> OS: Windows 7 x64
> >>> Server used: Tomcat 7.x / GlassFish 3.1.2
> >>>
> >>> Thank you,
> >>>
> >>> --
> >>>
> >>> William
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
> >> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
> >> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
> >>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
> >
> >
>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwheeler@artifact-software.com <javascript:;>
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
>

RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
When in commandline doing a cd to the project's directory and running mvn install -f pom.xml from there, the build is a success.
Doing mvn package from there = SUCCESS. Maven appears to be working there.

When trying to run the same project with the same command (as far as I can see) in NetBeans, I get the error I originally posted. Here's NetBeans' maven command:
cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7" "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4" "\"E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" -Dnetbeans.deploy=true package

-----Original Message-----
From: Ron Wheeler [mailto:rwheeler@artifact-software.com] 
Sent: dinsdag 27 november 2012 18:00
To: users@maven.apache.org
Subject: Re: MissingProjectException

This looks like a Netbeans issue.
You might get more help there.
The "s look odd but you seem to say that the command is generated by Netbeans so that is where I would look.

Does Maven work if you run it in a cmd window?

Ron

On 27/11/2012 11:54 AM, Froggerbin wrote:
> How would the JDK be at fault in this and what does it have to do with the path?
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 17:48
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> I would bet on the jdk then.
>
> Milos
>
> On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
>> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>>
>> -----Original Message-----
>> From: Milos Kleint [mailto:mkleint@gmail.com]
>> Sent: dinsdag 27 november 2012 14:11
>> To: Maven Users List
>> Subject: Re: MissingProjectException
>>
>> I suggest you move the project from root E:\ to something like 
>> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>>
>> Milos
>>
>> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>>> Hello,
>>>
>>>
>>>
>>> When I try to either Build, Clean and Build or Run (play button) my '
>>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' 
>>> in NetBeans, I get the following output:
>>>
>>>
>>>
>>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>>> "\"E:\\Apps
>>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>>> 2.      Error stacktraces are turned on.
>>> 3.      Scanning for projects...
>>> 4.
>>> ------------------------------------------------------------------------
>>> 5.      BUILD FAILURE
>>> 6.
>>> ------------------------------------------------------------------------
>>> 7.      Total time: 0.138s
>>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>>> 9.      Final Memory: 2M/15M
>>> 10.
>>> ------------------------------------------------------------------------
>>> 11.     The goal you specified requires a project to execute but there is no
>>> POM in this directory (E:\). Please verify you invoked Maven from 
>>> the correct directory. -> [Help 1]
>>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>>> specified requires a project to execute but there is no POM in this 
>>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>>
>>> 13.         at
>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecyc
>>> l
>>> e
>>> Starte
>>> r.java:89)
>>> 14.         at
>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>
>>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 20.         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> j
>>> ava:57
>>> )
>>> 21.         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
>>> s
>>> s
>>> orImpl
>>> .java:43)
>>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>>> 23.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Lau
>>> n
>>> c
>>> her.ja
>>> va:290)
>>> 24.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.ja
>>> v
>>> a
>>> :230)
>>>
>>> 25.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>>> java:409)
>>> 26.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>> 3
>>> 52)
>>> 27.
>>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>>> 29.
>>> 30.     For more information about the errors and possible solutions, please
>>> read the following articles:
>>> 31.     [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
>>> t
>>> i
>>> on
>>>
>>>
>>> This is what I have tried to fix the problem:
>>>
>>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi 
>>> directory (I don't know if this belongs to NetBeans), rebooted and 
>>> reinstalled NetBeans
>>> 7.2
>>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>>> - modified the POM file of the project
>>> - modify the context.xml file in META-INF/ folder of my project to 
>>> point it to a different path.
>>> - Correctly install Maven by adding the proper environment variables
>>> (works)
>>>
>>>
>>> My projects used to build and run perfectly with no problems when I 
>>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's 
>>> when I started getting this error.
>>> The error doesn't go away no matter what I try.
>>>
>>> Other strange behavior:
>>> - When I try to create a new Maven Webapplication in NetBeans, it 
>>> always creates it under the root of my drive E:\ in a folder even 
>>> though I explicitly tell it to install it under my projects folder.
>>>
>>> What works:
>>>
>>> -The only time when my projects successfully build and run is when I 
>>> run them in my Windows XP SP3 virtual machine.
>>> So I don't know what to think here. What application or 
>>> configuration is at fault? I find it very difficult to troubleshoot.
>>>
>>> -Running this command:
>>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExc
>>> e
>>> p
>>> tion>
>>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>>> p t ion thus using an explicit path to my project I don't want to do 
>>> this every time. I want it to work like it's supposed to.
>>>
>>>
>>> Specs:
>>> JDK 1.7
>>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>>> OS: Windows 7 x64
>>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>>
>>> Thank you,
>>>
>>> --
>>>
>>> William
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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


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



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


Re: MissingProjectException

Posted by Ron Wheeler <rw...@artifact-software.com>.
This looks like a Netbeans issue.
You might get more help there.
The "s look odd but you seem to say that the command is generated by 
Netbeans so that is where I would look.

Does Maven work if you run it in a cmd window?

Ron

On 27/11/2012 11:54 AM, Froggerbin wrote:
> How would the JDK be at fault in this and what does it have to do with the path?
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 17:48
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> I would bet on the jdk then.
>
> Milos
>
> On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
>> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>>
>> -----Original Message-----
>> From: Milos Kleint [mailto:mkleint@gmail.com]
>> Sent: dinsdag 27 november 2012 14:11
>> To: Maven Users List
>> Subject: Re: MissingProjectException
>>
>> I suggest you move the project from root E:\ to something like
>> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>>
>> Milos
>>
>> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>>> Hello,
>>>
>>>
>>>
>>> When I try to either Build, Clean and Build or Run (play button) my '
>>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' in
>>> NetBeans, I get the following output:
>>>
>>>
>>>
>>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>>> "\"E:\\Apps
>>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>>> 2.      Error stacktraces are turned on.
>>> 3.      Scanning for projects...
>>> 4.
>>> ------------------------------------------------------------------------
>>> 5.      BUILD FAILURE
>>> 6.
>>> ------------------------------------------------------------------------
>>> 7.      Total time: 0.138s
>>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>>> 9.      Final Memory: 2M/15M
>>> 10.
>>> ------------------------------------------------------------------------
>>> 11.     The goal you specified requires a project to execute but there is no
>>> POM in this directory (E:\). Please verify you invoked Maven from the
>>> correct directory. -> [Help 1]
>>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>>> specified requires a project to execute but there is no POM in this
>>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>>
>>> 13.         at
>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
>>> e
>>> Starte
>>> r.java:89)
>>> 14.         at
>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>
>>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 20.         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> j
>>> ava:57
>>> )
>>> 21.         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> s
>>> orImpl
>>> .java:43)
>>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>>> 23.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
>>> c
>>> her.ja
>>> va:290)
>>> 24.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
>>> a
>>> :230)
>>>
>>> 25.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>>> java:409)
>>> 26.         at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>> 3
>>> 52)
>>> 27.
>>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>>> 29.
>>> 30.     For more information about the errors and possible solutions, please
>>> read the following articles:
>>> 31.     [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcept
>>> i
>>> on
>>>
>>>
>>> This is what I have tried to fix the problem:
>>>
>>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi
>>> directory (I don't know if this belongs to NetBeans), rebooted and
>>> reinstalled NetBeans
>>> 7.2
>>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>>> - modified the POM file of the project
>>> - modify the context.xml file in META-INF/ folder of my project to
>>> point it to a different path.
>>> - Correctly install Maven by adding the proper environment variables
>>> (works)
>>>
>>>
>>> My projects used to build and run perfectly with no problems when I
>>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when
>>> I started getting this error.
>>> The error doesn't go away no matter what I try.
>>>
>>> Other strange behavior:
>>> - When I try to create a new Maven Webapplication in NetBeans, it
>>> always creates it under the root of my drive E:\ in a folder even
>>> though I explicitly tell it to install it under my projects folder.
>>>
>>> What works:
>>>
>>> -The only time when my projects successfully build and run is when I
>>> run them in my Windows XP SP3 virtual machine.
>>> So I don't know what to think here. What application or configuration
>>> is at fault? I find it very difficult to troubleshoot.
>>>
>>> -Running this command:
>>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>>> p
>>> tion>
>>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
>>> t ion thus using an explicit path to my project I don't want to do
>>> this every time. I want it to work like it's supposed to.
>>>
>>>
>>> Specs:
>>> JDK 1.7
>>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>>> OS: Windows 7 x64
>>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>>
>>> Thank you,
>>>
>>> --
>>>
>>> William
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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


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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
How would the JDK be at fault in this and what does it have to do with the path?

-----Original Message-----
From: Milos Kleint [mailto:mkleint@gmail.com] 
Sent: dinsdag 27 november 2012 17:48
To: Maven Users List
Subject: Re: MissingProjectException

I would bet on the jdk then.

Milos

On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 14:11
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> I suggest you move the project from root E:\ to something like 
> E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>
> Milos
>
> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>> Hello,
>>
>>
>>
>> When I try to either Build, Clean and Build or Run (play button) my '
>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' in 
>> NetBeans, I get the following output:
>>
>>
>>
>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>> "\"E:\\Apps
>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>> 2.      Error stacktraces are turned on.
>> 3.      Scanning for projects...
>> 4.
>> ------------------------------------------------------------------------
>> 5.      BUILD FAILURE
>> 6.
>> ------------------------------------------------------------------------
>> 7.      Total time: 0.138s
>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>> 9.      Final Memory: 2M/15M
>> 10.
>> ------------------------------------------------------------------------
>> 11.     The goal you specified requires a project to execute but there is no
>> POM in this directory (E:\). Please verify you invoked Maven from the 
>> correct directory. -> [Help 1]
>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>> specified requires a project to execute but there is no POM in this 
>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>
>> 13.         at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
>> e
>> Starte
>> r.java:89)
>> 14.         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>
>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 20.         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> j
>> ava:57
>> )
>> 21.         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> s
>> orImpl
>> .java:43)
>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>> 23.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
>> c
>> her.ja
>> va:290)
>> 24.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
>> a
>> :230)
>>
>> 25.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>> java:409)
>> 26.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>> 3
>> 52)
>> 27.
>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>> 29.
>> 30.     For more information about the errors and possible solutions, please
>> read the following articles:
>> 31.     [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcept
>> i
>> on
>>
>>
>> This is what I have tried to fix the problem:
>>
>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi 
>> directory (I don't know if this belongs to NetBeans), rebooted and 
>> reinstalled NetBeans
>> 7.2
>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>> - modified the POM file of the project
>> - modify the context.xml file in META-INF/ folder of my project to 
>> point it to a different path.
>> - Correctly install Maven by adding the proper environment variables
>> (works)
>>
>>
>> My projects used to build and run perfectly with no problems when I 
>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when 
>> I started getting this error.
>> The error doesn't go away no matter what I try.
>>
>> Other strange behavior:
>> - When I try to create a new Maven Webapplication in NetBeans, it 
>> always creates it under the root of my drive E:\ in a folder even 
>> though I explicitly tell it to install it under my projects folder.
>>
>> What works:
>>
>> -The only time when my projects successfully build and run is when I 
>> run them in my Windows XP SP3 virtual machine.
>> So I don't know what to think here. What application or configuration 
>> is at fault? I find it very difficult to troubleshoot.
>>
>> -Running this command:
>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExce
>> p
>> tion>
>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
>> t ion thus using an explicit path to my project I don't want to do 
>> this every time. I want it to work like it's supposed to.
>>
>>
>> Specs:
>> JDK 1.7
>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>> OS: Windows 7 x64
>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>
>> Thank you,
>>
>> --
>>
>> William
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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



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


Re: MissingProjectException

Posted by Milos Kleint <mk...@gmail.com>.
I would bet on the jdk then.

Milos

On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin <fr...@gmail.com> wrote:
> That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.
>
> -----Original Message-----
> From: Milos Kleint [mailto:mkleint@gmail.com]
> Sent: dinsdag 27 november 2012 14:11
> To: Maven Users List
> Subject: Re: MissingProjectException
>
> I suggest you move the project from root E:\ to something like E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml
>
> Milos
>
> On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
>> Hello,
>>
>>
>>
>> When I try to either Build, Clean and Build or Run (play button) my '
>> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' in
>> NetBeans, I get the following output:
>>
>>
>>
>> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
>> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4"
>> "\"E:\\Apps
>> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
>> 2.      Error stacktraces are turned on.
>> 3.      Scanning for projects...
>> 4.
>> ------------------------------------------------------------------------
>> 5.      BUILD FAILURE
>> 6.
>> ------------------------------------------------------------------------
>> 7.      Total time: 0.138s
>> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
>> 9.      Final Memory: 2M/15M
>> 10.
>> ------------------------------------------------------------------------
>> 11.     The goal you specified requires a project to execute but there is no
>> POM in this directory (E:\). Please verify you invoked Maven from the
>> correct directory. -> [Help 1]
>> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
>> specified requires a project to execute but there is no POM in this
>> directory (E:\). Please verify you invoked Maven from the correct directory.
>>
>> 13.         at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle
>> Starte
>> r.java:89)
>> 14.         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>
>> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 20.         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>> ava:57
>> )
>> 21.         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> orImpl
>> .java:43)
>> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
>> 23.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc
>> her.ja
>> va:290)
>> 24.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java
>> :230)
>>
>> 25.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
>> java:409)
>> 26.         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3
>> 52)
>> 27.
>> 28.     Re-run Maven using the -X switch to enable full debug logging.
>> 29.
>> 30.     For more information about the errors and possible solutions, please
>> read the following articles:
>> 31.     [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcepti
>> on
>>
>>
>> This is what I have tried to fix the problem:
>>
>> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi
>> directory (I don't know if this belongs to NetBeans), rebooted and
>> reinstalled NetBeans
>> 7.2
>> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
>> - modified the POM file of the project
>> - modify the context.xml file in META-INF/ folder of my project to
>> point it to a different path.
>> - Correctly install Maven by adding the proper environment variables
>> (works)
>>
>>
>> My projects used to build and run perfectly with no problems when I
>> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when
>> I started getting this error.
>> The error doesn't go away no matter what I try.
>>
>> Other strange behavior:
>> - When I try to create a new Maven Webapplication in NetBeans, it
>> always creates it under the root of my drive E:\ in a folder even
>> though I explicitly tell it to install it under my projects folder.
>>
>> What works:
>>
>> -The only time when my projects successfully build and run is when I
>> run them in my Windows XP SP3 virtual machine.
>> So I don't know what to think here. What application or configuration
>> is at fault? I find it very difficult to troubleshoot.
>>
>> -Running this command:
>> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
>> tion>
>> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcept
>> ion thus using an explicit path to my project I don't want to do this
>> every time. I want it to work like it's supposed to.
>>
>>
>> Specs:
>> JDK 1.7
>> Sourcecode  <http://www.javaranch.com/> java version: 1.6
>> OS: Windows 7 x64
>> Server used: Tomcat 7.x / GlassFish 3.1.2
>>
>> Thank you,
>>
>> --
>>
>> William
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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


RE: MissingProjectException

Posted by Froggerbin <fr...@gmail.com>.
That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from.

-----Original Message-----
From: Milos Kleint [mailto:mkleint@gmail.com] 
Sent: dinsdag 27 november 2012 14:11
To: Maven Users List
Subject: Re: MissingProjectException

I suggest you move the project from root E:\ to something like E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml

Milos

On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
> Hello,
>
>
>
> When I try to either Build, Clean and Build or Run (play button) my '
> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' in 
> NetBeans, I get the following output:
>
>
>
> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4" 
> "\"E:\\Apps 
> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install -e
> 2.      Error stacktraces are turned on.
> 3.      Scanning for projects...
> 4.
> ------------------------------------------------------------------------
> 5.      BUILD FAILURE
> 6.
> ------------------------------------------------------------------------
> 7.      Total time: 0.138s
> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
> 9.      Final Memory: 2M/15M
> 10.
> ------------------------------------------------------------------------
> 11.     The goal you specified requires a project to execute but there is no
> POM in this directory (E:\). Please verify you invoked Maven from the 
> correct directory. -> [Help 1]
> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
> specified requires a project to execute but there is no POM in this 
> directory (E:\). Please verify you invoked Maven from the correct directory.
>
> 13.         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle
> Starte
> r.java:89)
> 14.         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>
> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 20.         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:57
> )
> 21.         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl
> .java:43)
> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
> 23.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc
> her.ja
> va:290)
> 24.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java
> :230)
>
> 25.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
> java:409)
> 26.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3
> 52)
> 27.
> 28.     Re-run Maven using the -X switch to enable full debug logging.
> 29.
> 30.     For more information about the errors and possible solutions, please
> read the following articles:
> 31.     [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcepti
> on
>
>
> This is what I have tried to fix the problem:
>
> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi 
> directory (I don't know if this belongs to NetBeans), rebooted and 
> reinstalled NetBeans
> 7.2
> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
> - modified the POM file of the project
> - modify the context.xml file in META-INF/ folder of my project to 
> point it to a different path.
> - Correctly install Maven by adding the proper environment variables 
> (works)
>
>
> My projects used to build and run perfectly with no problems when I 
> was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when 
> I started getting this error.
> The error doesn't go away no matter what I try.
>
> Other strange behavior:
> - When I try to create a new Maven Webapplication in NetBeans, it 
> always creates it under the root of my drive E:\ in a folder even 
> though I explicitly tell it to install it under my projects folder.
>
> What works:
>
> -The only time when my projects successfully build and run is when I 
> run them in my Windows XP SP3 virtual machine.
> So I don't know what to think here. What application or configuration 
> is at fault? I find it very difficult to troubleshoot.
>
> -Running this command:
> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep
> tion> 
> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcept
> ion thus using an explicit path to my project I don't want to do this 
> every time. I want it to work like it's supposed to.
>
>
> Specs:
> JDK 1.7
> Sourcecode  <http://www.javaranch.com/> java version: 1.6
> OS: Windows 7 x64
> Server used: Tomcat 7.x / GlassFish 3.1.2
>
> Thank you,
>
> --
>
> William
>

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



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


Re: MissingProjectException

Posted by Milos Kleint <mk...@gmail.com>.
I suggest you move the project from root E:\ to something like
E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml

Milos

On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin <fr...@gmail.com> wrote:
> Hello,
>
>
>
> When I try to either Build, Clean and Build or Run (play button) my '
> <http://www.coderanch.com/forums/f-67/tools> Maven Webapplication' in
> NetBeans, I get the following output:
>
>
>
> 1.      cd E:\Dev\Java\MyApp; "JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7"
> "M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4" "\"E:\\Apps
> (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\"" clean install
> -e
> 2.      Error stacktraces are turned on.
> 3.      Scanning for projects...
> 4.
> ------------------------------------------------------------------------
> 5.      BUILD FAILURE
> 6.
> ------------------------------------------------------------------------
> 7.      Total time: 0.138s
> 8.      Finished at: Mon Oct 22 13:16:36 CEST 2012
> 9.      Final Memory: 2M/15M
> 10.
> ------------------------------------------------------------------------
> 11.     The goal you specified requires a project to execute but there is no
> POM in this directory (E:\). Please verify you invoked Maven from the
> correct directory. -> [Help 1]
> 12.     org.apache.maven.lifecycle.MissingProjectException: The goal you
> specified requires a project to execute but there is no POM in this
> directory (E:\). Please verify you invoked Maven from the correct directory.
>
> 13.         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
> r.java:89)
> 14.         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> 15.         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>
> 16.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 17.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 18.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 19.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 20.         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
> )
> 21.         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:43)
> 22.         at java.lang.reflect.Method.invoke(Method.java:601)
> 23.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.ja
> va:290)
> 24.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>
> 25.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
> java:409)
> 26.         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> 27.
> 28.     Re-run Maven using the -X switch to enable full debug logging.
> 29.
> 30.     For more information about the errors and possible solutions, please
> read the following articles:
> 31.     [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
>
>
> This is what I have tried to fix the problem:
>
> - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi directory (I
> don't know if this belongs to NetBeans), rebooted and reinstalled NetBeans
> 7.2
> - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1
> - modified the POM file of the project
> - modify the context.xml file in META-INF/ folder of my project to point it
> to a different path.
> - Correctly install Maven by adding the proper environment variables (works)
>
>
> My projects used to build and run perfectly with no problems when I was
> using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when I started
> getting this error.
> The error doesn't go away no matter what I try.
>
> Other strange behavior:
> - When I try to create a new Maven Webapplication in NetBeans, it always
> creates it under the root of my drive E:\ in a folder even though I
> explicitly tell it to install it under my projects folder.
>
> What works:
>
> -The only time when my projects successfully build and run is when I run
> them in my Windows XP SP3 virtual machine.
> So I don't know what to think here. What application or configuration is at
> fault? I find it very difficult to troubleshoot.
>
> -Running this command:
> <https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException>
> https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
> thus using an explicit path to my project
> I don't want to do this every time. I want it to work like it's supposed to.
>
>
> Specs:
> JDK 1.7
> Sourcecode  <http://www.javaranch.com/> java version: 1.6
> OS: Windows 7 x64
> Server used: Tomcat 7.x / GlassFish 3.1.2
>
> Thank you,
>
> --
>
> William
>

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