maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Froggerbin" <frogger...@gmail.com>
Subject RE: MissingProjectException
Date Tue, 27 Nov 2012 21:07:39 GMT
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 <froggerbin@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 <froggerbin@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


Mime
View raw message