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:[email protected]]
Sent: dinsdag 27 november 2012 19:37
To: [email protected]
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:[email protected]]
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 <[email protected]> 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:[email protected]]
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 <[email protected]> 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:[email protected]]
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 <[email protected]> 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: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]