You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nanosoft <na...@gmail.com> on 2012/04/06 14:18:58 UTC

Error running Maven

I have installed maven in C:\apache-maven-3.0.4-bin. Its installed
successfully as mvn --version gives expected o/p.

I have wifi internet connection for which I have changed proxy settings in
conf/settings.xml to following:

 <proxies>
 
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>sanp</username>
      <password>pwd</password>
      <host></host>
      <port>80</port>
      <nonProxyHosts>localhost</nonProxyHosts>
    </proxy>

  </proxies>



Here "sanp" is the name of wifi connection I connect and "pwd" is the
password.
In IE under tools->internet options->connections->lan settings      no proxy
address is defined so i have left <host> tag empty. Other parts of
settings.xml is untouched.

when I execute below command I get error :

*C:\Maven Workspaces>mvn archetype:generate -DgroupId=com.mycompany.app
-Dartifac
tId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=fa
lse -eX*


[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.676s
[INFO] Finished at: Fri Apr 06 17:04:53 IST 2012
[INFO] Final Memory: 3M/245M
[INFO]
------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no
POM
 in this directory (C:\Maven Workspaces). Please verify you invoked Maven
from t
he correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified
requi
res a project to execute but there is no POM in this directory (C:\Maven
Workspa
ces). Please verify you invoked Maven from the correct directory.
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:89)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
C:\Maven Workspaces>

Please help what should i do?

--
View this message in context: http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622633.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Error running Maven

Posted by nanosoft <na...@gmail.com>.
Thanks Wayne, It now works.



--
View this message in context: http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5625692.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Error running Maven

Posted by Wayne Fay <wa...@gmail.com>.
> I have wifi internet connection for which I have changed proxy settings in
> conf/settings.xml to following:

Where did you get the idea this was necessary? It is possible some
documentation is not sufficiently clear and should be improved. You
only need to configure the proxy when you actually have a proxy
between yourself and the Internet.

> *C:\Maven Workspaces>mvn archetype:generate -DgroupId=com.mycompany.app
> -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
> -DinteractiveMode=false -eX*

Try just "mvn archetype:generate" and pick the quickstart from the
list provided, then supply the groupId and artifactId etc. OR you need
to provide other details on the command line:
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=1.0
-DgroupId=com.company
-DartifactId=project
-Dversion=1.0
-Dpackage=1.5

Again, I have to ask, where did you get the idea that you could run
archetype:generate without all of the required parameters? There may
be some bad documentation that needs updating.

> org.apache.maven.lifecycle.MissingProjectException: The goal you specified
> requi
> res a project to execute but there is no POM in this directory (C:\Maven
> Workspa
> ces). Please verify you invoked Maven from the correct directory.

This is an odd error to receive from trying to run archetype:generate.

Wayne

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


Re: Error running Maven

Posted by nanosoft <na...@gmail.com>.
So I commented the proxy settings, still i am getting the same error.

Do I need to put any repository settings in settings.xml or it will connect
automatically to some default repository. I am just trying to execute the
first command to build the project directory structure still its failing.
Please help what else I need to do?

--
View this message in context: http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622651.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Error running Maven

Posted by Guillaume Polet <gu...@gmail.com>.
Wheter you are connected through a WIFI connection or a wired connection 
should not make a difference.

Poxy settings should be set if you need to go through a proxy server to 
access internet. Otherwise don't put anything in it.

I believe you are confusing a proxy server with a wifi access point 
which are two very different things.

Cheers,
Guillaume
Le 6/04/2012 14:18, nanosoft a écrit :
> I have installed maven in C:\apache-maven-3.0.4-bin. Its installed
> successfully as mvn --version gives expected o/p.
>
> I have wifi internet connection for which I have changed proxy settings in
> conf/settings.xml to following:
>
>   <proxies>
>
>      <proxy>
>        <id>optional</id>
>        <active>true</active>
>        <protocol>http</protocol>
>        <username>sanp</username>
>        <password>pwd</password>
>        <host></host>
>        <port>80</port>
>        <nonProxyHosts>localhost</nonProxyHosts>
>      </proxy>
>
>    </proxies>
>
>
>
> Here "sanp" is the name of wifi connection I connect and "pwd" is the
> password.
> In IE under tools->internet options->connections->lan settings      no proxy
> address is defined so i have left<host>  tag empty. Other parts of
> settings.xml is untouched.
>
> when I execute below command I get error :
>
> *C:\Maven Workspaces>mvn archetype:generate -DgroupId=com.mycompany.app
> -Dartifac
> tId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
> -DinteractiveMode=fa
> lse -eX*
>
>
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.676s
> [INFO] Finished at: Fri Apr 06 17:04:53 IST 2012
> [INFO] Final Memory: 3M/245M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] The goal you specified requires a project to execute but there is no
> POM
>   in this directory (C:\Maven Workspaces). Please verify you invoked Maven
> from t
> he correct directory. ->  [Help 1]
> org.apache.maven.lifecycle.MissingProjectException: The goal you specified
> requi
> res a project to execute but there is no POM in this directory (C:\Maven
> Workspa
> ces). Please verify you invoked Maven from the correct directory.
>          at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
> eStarter.java:89)
>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:597)
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
> cher.java:290)
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
> a:230)
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
> uncher.java:409)
>          at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 352)
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
> Exception
> C:\Maven Workspaces>
>
> Please help what should i do?
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622633.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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