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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

Reply via email to