Re: Maven in 5 minutes doesn't work

2012-03-10 Thread Ari Warren
And I'm referring to the posts back from October.

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p5553793.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



Re: Maven in 5 minutes doesn't work

2012-03-10 Thread Ari Warren
I have all my proxies turned off under 'System Preferences' (I'm on mac OSX).
But I get the error Wasi getting before he disabled his proxies.

Any advice?

Thanks

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p5553789.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



Re: Maven in 5 minutes doesn't work

2011-12-23 Thread Wayne Fay
>  1. installed java
What version?

>  2. installed maven.
What version?

>  3.changed the local repository path and proxies in the settings.xml file
Why did you change the local repo path?
Check to make sure that your proxy is uncommented. By default, the
proxy block is commented out (disabled).

>  when i run the command :D:\tutorials>mvn archetype:create
Why are you using archetype:create when the "Maven in 5 minutes"
webpage says to use archetype:generate?

http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Wayne

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



Re: Maven in 5 minutes doesn't work

2011-12-23 Thread poornima
hi, 
 i am new to maven and i did the following steps ...
 1. installed java
 2. installed maven.
 3.changed the local repository path and proxies in the settings.xml file
 when i run the command :D:\tutorials>mvn archetype:create
-DgroupId=com.mytutorial -DartifactId=simple i am getting the following
output in cmd prompt.
" No plugin found for the prefix "archetype" in the current project and in
the plugin group.."
 what would be the problem. cna anyone please guide me?
 i would also like to know what changes should i do in the settings.xml file

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p5096485.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



Re: Maven in 5 minutes doesn't work

2010-12-17 Thread Anders Hammar
Google is your friend:
http://maven.apache.org/guides/mini/guide-proxies.html

/Anders

On Fri, Dec 17, 2010 at 09:52, biswamohan.padhy wrote:

>
> I have attached the settings.xml
>
> I was getting following error while I was creating a project before I
> downloaded the plugin jars manually.
> Downloading:
>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.jar
>
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.plugins:maven-install-plugin:2.3.1: Plugin org.apache.mav
> en.plugins:maven-install-plugin:2.3.1 or one of its dependencies could not
> be resolved: Could not transfer artifact org.apach
> e.maven.plugins:maven-install-plugin:jar:2.3.1 from/to central
> (http://repo1.maven.org/maven2): Error transferring file: Conn
> ection timed out: connect
>
> And getting the following error I downloaded the plugin jars manually.
>
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
> [WARNING] Could not transfer metadata
> org.apache.maven.plugins/maven-metadata.xml from/to central
> (http://repo1.maven.org/mav
> en2): Error transferring file: Connection timed out: connect
>
> We are using an automatic proxy configuration URL to connect to internet in
> my company.
> Can you please let me know how to configure the settings.xml for automatic
> proxy configuration URL.
> http://maven.40175.n5.nabble.com/file/n3309107/settings.xml settings.xml
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3309107.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
>
>


Re: Maven in 5 minutes doesn't work

2010-12-17 Thread biswamohan.padhy

I have attached the settings.xml

I was getting following error while I was creating a project before I
downloaded the plugin jars manually.
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.jar

[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:maven-install-plugin:2.3.1: Plugin org.apache.mav
en.plugins:maven-install-plugin:2.3.1 or one of its dependencies could not
be resolved: Could not transfer artifact org.apach
e.maven.plugins:maven-install-plugin:jar:2.3.1 from/to central
(http://repo1.maven.org/maven2): Error transferring file: Conn
ection timed out: connect

And getting the following error I downloaded the plugin jars manually.

Downloading:
http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[WARNING] Could not transfer metadata
org.apache.maven.plugins/maven-metadata.xml from/to central
(http://repo1.maven.org/mav
en2): Error transferring file: Connection timed out: connect

We are using an automatic proxy configuration URL to connect to internet in
my company.
Can you please let me know how to configure the settings.xml for automatic
proxy configuration URL.
http://maven.40175.n5.nabble.com/file/n3309107/settings.xml settings.xml 


-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3309107.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



Re: Maven in 5 minutes doesn't work

2010-12-16 Thread Anders Hammar
If Maven can't download the plugins something is wrong with your setup. You
need to fix that before proceeding!

Are you behind a proxy? Then you need to configure Maven to use that. Do you
have an internal repo manager? Then you need to configure Maven for that.

/Anders

On Fri, Dec 17, 2010 at 08:41, biswamohan.padhy wrote:

>
> I am trying to create my first Maven project with Maven 3.0.1. First I got
> problem in downloading the plugins then I downloaded  the jar files
> manually
> and put those in the local repository. Now it is not showing error for the
> plugin jars but for maven-metadata.xml. I downloaded the xmls files as well
> but its not working.
> Maven installed directory:
> C:\WIP\Software\apache-maven-3.0.1
> JRE directyory:
> C:\WIP\jdevstudio10135\jdk\jre\bin
> Local Repository:
> C:\WIP\learning\DemoMaven
>
> I am running the command
> mvn -X archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app
> -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
>
> in the following path
> C:\WIP\learning\DemoMaven
>
> Can anyone please help me how to resolve this issue.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3309040.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>


Re: Maven in 5 minutes doesn't work

2010-12-16 Thread biswamohan.padhy

I am trying to create my first Maven project with Maven 3.0.1. First I got
problem in downloading the plugins then I downloaded  the jar files manually
and put those in the local repository. Now it is not showing error for the
plugin jars but for maven-metadata.xml. I downloaded the xmls files as well
but its not working. 
Maven installed directory:
C:\WIP\Software\apache-maven-3.0.1
JRE directyory:
C:\WIP\jdevstudio10135\jdk\jre\bin
Local Repository:
C:\WIP\learning\DemoMaven

I am running the command 
mvn -X archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

in the following path 
C:\WIP\learning\DemoMaven

Can anyone please help me how to resolve this issue.

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3309042.html
Sent from the Maven - Users mailing list archive at Nabble.com.


Re: Maven in 5 minutes doesn't work

2010-12-16 Thread biswamohan.padhy

I am trying to create my first Maven project with Maven 3.0.1. First I got
problem in downloading the plugins then I downloaded  the jar files manually
and put those in the local repository. Now it is not showing error for the
plugin jars but for maven-metadata.xml. I downloaded the xmls files as well
but its not working. 
Maven installed directory:
C:\WIP\Software\apache-maven-3.0.1
JRE directyory:
C:\WIP\jdevstudio10135\jdk\jre\bin
Local Repository:
C:\WIP\learning\DemoMaven

I am running the command 
mvn -X archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

in the following path 
C:\WIP\learning\DemoMaven

Can anyone please help me how to resolve this issue.

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3309040.html
Sent from the Maven - Users mailing list archive at Nabble.com.


Re: Maven in 5 minutes doesn't work

2010-11-22 Thread wasi_shez


Please Download this Book and Enjoy you Build with Maven 


http://maven.apache.org/apache-maven.pdf



Regards
Waseem Bokhari
CM Analyst
00923214294926
wasi_s...@hotmail.com


-


Waseem Bokhari
CM Analyst
wasi_s...@hotmail.com
00923214294926
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3274977.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



Re: Maven in 5 minutes doesn't work

2010-11-18 Thread sachbist

Hi Waseem,

I dont have maven book which is u saying to read pages 32 to 42.

Could u please share with me.

I am getting same error. i am very frustured with this issue.

I am working on this issue last 2 days but i am not able to resolve.

Please help me.

Thanks & Regards,
Sachin
sac...@gmail.com
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3270656.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



Re: Maven in 5 minutes doesn't work

2010-11-10 Thread wasi_shez

Yes i have get the problem solved.

I will advice you to please read out the Maven's Book from Pages 32 to 42

Moreover >> Whenever you go for Maven's first time compilation ; please make
sure that your machine must have internet with downloading access ; THE MOST
IMPORTANT it must be free from all Firewall restrictions.

Please let me know if you still have a problem.

Cheers
Regards
Waseem Bokhari
CM Analyst


-


Waseem Bokhari
CM Analyst
wasi_s...@hotmail.com
00923214294926
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3259864.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



Re: Maven in 5 minutes doesn't work

2010-11-08 Thread beta
Hi Waseem,

Did you get to solve your issue? I'm getting the same errors and I haven't 
found 
a way to solve them,

Thanks in advance,




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



Re: Maven in 5 minutes doesn't work

2010-10-22 Thread Greg Akins
Waseem

If you follow the "Maven in 5 minutes" instructions, you shouldn't
have to specify a number.

The listed projects each have a number.. if you select 82, you'll be
picking the default project type (maven-archetype-quickstart).  If you
don't want the default, you can select any other number listed.

Try following the instructions again, and I think you'll have more
success now that you've resolved some of your other issues.

On Fri, Oct 22, 2010 at 6:34 AM, wasi_shez  wrote:
>
> Really Great >> It Gets Work
>
> 1) I have removed all proxies from My Machine and Do the same again>> But it
> gets stuck on Some Point:
>
>
> Source Code :-- C:\Workspace_Eclipse\Sample\src>
>
>
> C:\Workspace_Eclipse\Sample\src>  mvn archetype:generate
>
> OutPut Below<>
>
> 127: remote -> struts2-archetype-starter (null)
> 128: remote -> quickstart (Archetype for creating a basic Tapestry 5
> application
> , including Eclipse control
>        files.)
> 129: remote -> tapestry-archetype (null)
> 130: remote -> tapestry-simple (Archetype for creating a basic Tapestry 5
> applic
> ation, including Eclipse control files.)
> 131: remote -> tuscany-contribution-jar (null)
> 132: remote -> tuscany-contribution-zip (null)
> 133: remote -> tuscany-quickstart (null)
> 134: remote -> tuscany-quickstart-bpel (null)
> 135: remote -> tuscany-quickstart-jsf (null)
> 136: remote -> tuscany-quickstart-jsonp (null)
> 137: remote -> tuscany-quickstart-stripes (null)
> 138: remote -> wicket-archetype-quickstart (null)
> 139: remote -> appfuse-basic-jsf (Maven 2 archetype that creates a web
> applicati
> on with AppFuse embedded in it.)
> 140: remote -> appfuse-basic-spring (Maven 2 archetype that creates a web
> applic
> ation with AppFuse embedded in it.)
> 141: remote -> appfuse-basic-struts (Maven 2 archetype that creates a web
> applic
> ation with AppFuse embedded in it.)
> 142: remote -> appfuse-basic-tapestry (Maven 2 archetype that creates a web
> appl
> ication with AppFuse embedded in it.)
> 143: remote -> appfuse-core (Maven 2 archetype that creates a backend
> (Managers,
>  DAOs and Web Services)
>        application with AppFuse embedded in it.)
> 144: remote -> appfuse-modular-jsf (Maven 2 archetype that creates a modular
> web
>  application with AppFuse. This archetype creates two modules:
>        "core" and "web". The core module depends on appfuse-service, while
> the
> web module depends on core as well
>        as AppFuse's JSF implementation.)
> 145: remote -> appfuse-modular-spring (Maven 2 archetype that creates a
> modular
> web application with AppFuse. This archetype creates two modules:
>        "core" and "web". The core module depends on appfuse-service, while
> the
> web module depends on core as well
>        as AppFuse's Spring MVC implementation.)
> 146: remote -> appfuse-modular-struts (Maven 2 archetype that creates a
> modular
> web application with AppFuse. This archetype creates two modules:
>        "core" and "web". The core module depends on appfuse-service, while
> the
> web module depends on core as well
>        as AppFuse's Struts implementation.)
> 147: remote -> appfuse-modular-tapestry (Maven 2 archetype that creates a
> modula
> r web application with AppFuse. This archetype creates two modules:
>        "core" and "web". The core module depends on appfuse-service, while
> the
> web module depends on core as well
>        as AppFuse's Tapestry implementation.)
> 148: remote -> appfuse-basic-jsf (Maven 2 archetype that creates a web
> applicati
> on with AppFuse embedded in it.)
> 149: remote -> appfuse-basic-jsf-archetype (AppFuse Archetype)
> 150: remote -> appfuse-basic-spring (Maven 2 archetype that creates a web
> applic
> ation with AppFuse embedded in it.)
> 151: remote -> appfuse-basic-spring-archetype (AppFuse Archetype)
> 152: remote -> appfuse-basic-struts (Maven 2 archetype that creates a web
> applic
> ation with AppFuse embedded in it.)
> 153: remote -> appfuse-basic-struts-archetype (AppFuse Archetype)
> 154: remote -> appfuse-basic-tapestry (Maven 2 archetype that creates a web
> appl
> ication with AppFuse embedded in it.)
> 155: remote -> appfuse-basic-tapestry-archetype (AppFuse Archetype)
> 156: remote -> appfuse-core (Maven 2 archetype that creates a backend
> (Managers,
>  DAOs and Web Services)
>        application with AppFuse embedded in it.)
> 157: remote -> appfuse-core-archetype (null)
> 158: remote -> appfuse-light-jsf-archetype (AppFuse Archetype)
> 159: remote -> appfuse-light-spring-archetype (AppFuse Archetype)
> 160: remote -> appfuse-light-spring-freemarker-archetype (AppFuse Archetype)
> 161: remote -> appfuse-light-spring-security-archetype (AppFuse Archetype)
> 162: remote -> appfuse-light-stripes-archetype (AppFuse Archetype)
> 163: remote -> appfuse-light-struts-archetype (AppFuse Archetype)
> 164: remote -> appfuse-light-tapestry-archetype (AppFuse Archetype)
> 165: remote -> appfuse-light-wicket-archetype (AppFuse Archetype)
> 166: remote -> appfuse-mo

Re: Maven in 5 minutes doesn't work

2010-10-22 Thread wasi_shez

Really Great >> It Gets Work

1) I have removed all proxies from My Machine and Do the same again>> But it
gets stuck on Some Point:


Source Code :-- C:\Workspace_Eclipse\Sample\src>


C:\Workspace_Eclipse\Sample\src>  mvn archetype:generate

OutPut Below<>

127: remote -> struts2-archetype-starter (null)
128: remote -> quickstart (Archetype for creating a basic Tapestry 5
application
, including Eclipse control
files.)
129: remote -> tapestry-archetype (null)
130: remote -> tapestry-simple (Archetype for creating a basic Tapestry 5
applic
ation, including Eclipse control files.)
131: remote -> tuscany-contribution-jar (null)
132: remote -> tuscany-contribution-zip (null)
133: remote -> tuscany-quickstart (null)
134: remote -> tuscany-quickstart-bpel (null)
135: remote -> tuscany-quickstart-jsf (null)
136: remote -> tuscany-quickstart-jsonp (null)
137: remote -> tuscany-quickstart-stripes (null)
138: remote -> wicket-archetype-quickstart (null)
139: remote -> appfuse-basic-jsf (Maven 2 archetype that creates a web
applicati
on with AppFuse embedded in it.)
140: remote -> appfuse-basic-spring (Maven 2 archetype that creates a web
applic
ation with AppFuse embedded in it.)
141: remote -> appfuse-basic-struts (Maven 2 archetype that creates a web
applic
ation with AppFuse embedded in it.)
142: remote -> appfuse-basic-tapestry (Maven 2 archetype that creates a web
appl
ication with AppFuse embedded in it.)
143: remote -> appfuse-core (Maven 2 archetype that creates a backend
(Managers,
 DAOs and Web Services)
application with AppFuse embedded in it.)
144: remote -> appfuse-modular-jsf (Maven 2 archetype that creates a modular
web
 application with AppFuse. This archetype creates two modules:
"core" and "web". The core module depends on appfuse-service, while
the
web module depends on core as well
as AppFuse's JSF implementation.)
145: remote -> appfuse-modular-spring (Maven 2 archetype that creates a
modular
web application with AppFuse. This archetype creates two modules:
"core" and "web". The core module depends on appfuse-service, while
the
web module depends on core as well
as AppFuse's Spring MVC implementation.)
146: remote -> appfuse-modular-struts (Maven 2 archetype that creates a
modular
web application with AppFuse. This archetype creates two modules:
"core" and "web". The core module depends on appfuse-service, while
the
web module depends on core as well
as AppFuse's Struts implementation.)
147: remote -> appfuse-modular-tapestry (Maven 2 archetype that creates a
modula
r web application with AppFuse. This archetype creates two modules:
"core" and "web". The core module depends on appfuse-service, while
the
web module depends on core as well
as AppFuse's Tapestry implementation.)
148: remote -> appfuse-basic-jsf (Maven 2 archetype that creates a web
applicati
on with AppFuse embedded in it.)
149: remote -> appfuse-basic-jsf-archetype (AppFuse Archetype)
150: remote -> appfuse-basic-spring (Maven 2 archetype that creates a web
applic
ation with AppFuse embedded in it.)
151: remote -> appfuse-basic-spring-archetype (AppFuse Archetype)
152: remote -> appfuse-basic-struts (Maven 2 archetype that creates a web
applic
ation with AppFuse embedded in it.)
153: remote -> appfuse-basic-struts-archetype (AppFuse Archetype)
154: remote -> appfuse-basic-tapestry (Maven 2 archetype that creates a web
appl
ication with AppFuse embedded in it.)
155: remote -> appfuse-basic-tapestry-archetype (AppFuse Archetype)
156: remote -> appfuse-core (Maven 2 archetype that creates a backend
(Managers,
 DAOs and Web Services)
application with AppFuse embedded in it.)
157: remote -> appfuse-core-archetype (null)
158: remote -> appfuse-light-jsf-archetype (AppFuse Archetype)
159: remote -> appfuse-light-spring-archetype (AppFuse Archetype)
160: remote -> appfuse-light-spring-freemarker-archetype (AppFuse Archetype)
161: remote -> appfuse-light-spring-security-archetype (AppFuse Archetype)
162: remote -> appfuse-light-stripes-archetype (AppFuse Archetype)
163: remote -> appfuse-light-struts-archetype (AppFuse Archetype)
164: remote -> appfuse-light-tapestry-archetype (AppFuse Archetype)
165: remote -> appfuse-light-wicket-archetype (AppFuse Archetype)
166: remote -> appfuse-modular-jsf (Maven 2 archetype that creates a modular
web
 application with AppFuse. This archetype creates two modules:
"core" and "web". The core module depends on appfuse-service, while
the
web module depends on core as well
as AppFuse's JSF implementation.)
167: remote -> appfuse-modular-jsf-archetype (AppFuse Archetype)
168: remote -> appfuse-modular-spring (Maven 2 archetype that creates a
modular
web application with AppFuse. This archetype creates two modules:
"core" and "web". The core module depends on appfuse-service, while
the
web module depends on core as well
as AppFuse's Spring MVC implementation.)
169: remote -> appfuse-mod

Re: Maven in 5 minutes doesn't work

2010-10-22 Thread Andreas Gies

Hi,

that looks like your maven cannot connect to the central repository to 
download the required plugins for
executing the archetype. Are you behind a firewall or something ? - In 
that case you may have to configure

a proxy in your settings.

See also http://maven.apache.org/settings.html#Proxies


Best regards
Andreas

Am 10/22/10 8:43 AM, schrieb wasi_shez:

Thank you so much Manual for such a Quick response.


What do you mean by My-app

Let me ensure the Paths of my Directories.


JRE :>
C:\Program Files\Java\jdk1.6.0_22\jre
Maven 3.0:>
C:\apache-maven-3.0\bin
Path where my "Test.Java" located in My Eclipse 6.5:>
C:\Workspace_Eclipse\Sample\src




What i DID>>


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Waseem>cd C:\Workspace_Eclipse\Sample\src

C:\Workspace_Eclipse\Sample\src>mvn archetype:generate
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.3.1/maven-install-plugin-2.3.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-install-plugin:2.3.1: Plugin
org.apache.maven.plugins:maven-install-plugin:2.3
.1 or one of its dependencies could not be resolved: Could not transfer
artifact
  org.apache.maven.plugins:maven-install-plugin:jar:2.3.1 from central
(http://re
po1.maven.org/maven2): Error transferring file: Network is unreachable:
connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/2.5/maven-deploy-plugin-2.5.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-deploy-plugin:2.5: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.5
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-deploy-plugin:jar:2.5 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.4.1/maven-clean-plugin-2.4.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-clean-plugin:2.4.1: Plugin
org.apache.maven.plugins:maven-clean-plugin:2.4.1 o
r one of its dependencies could not be resolved: Could not transfer artifact
org
.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 from central
(http://repo1.ma
ven.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-p
lugin/2.0.1/maven-site-plugin-2.0.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-site-plugin:2.0.1: Plugin org.apache.maven.plugins:maven-site-plugin:2.0.1
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-site-plugin:jar:2.0.1 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun
-plugin/1.3/maven-antrun-plugin-1.3.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-antrun-plugin:jar:1.3 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assemb
ly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-assembly-plugin:2.2-beta-5: Plugin
org.apache.maven.plugins:maven-assembly-plu
gin:2.2-beta-5 or one of its dependencies could not be resolved: Could not
trans
fer artifact org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5
from
central (http://repo1.maven.org/maven2): Error transferring file: Network is
unr
eachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend
ency-plugin/2.1/maven-dependency-plugin-2.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-dependency-plugin:2.1: Plugin
org.apache.maven.plugins:maven-dependency-plugin
:2.1 or one of its dependencies could not be resolved: Could not transfer
artifa
ct org.apache.maven.plugins:maven-dependency-plugin:jar:2.1 from central
(http:/
/repo1.maven.org/maven2): Error transferring file: Network is unreachable:
conne
ct
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-releas
e-plugin/2.0/maven-release-plugin-2.0.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-release-plugin:2.0: Plugin
org.apache.maven.plugins:maven-release-plugin:2.0 o
r one of its dep

Re: Maven in 5 minutes doesn't work

2010-10-22 Thread wasi_shez

Thank you so much Manual for such a Quick response.


What do you mean by My-app

Let me ensure the Paths of my Directories.


JRE :> 
C:\Program Files\Java\jdk1.6.0_22\jre
Maven 3.0:> 
C:\apache-maven-3.0\bin
Path where my "Test.Java" located in My Eclipse 6.5:>  
C:\Workspace_Eclipse\Sample\src




What i DID>>


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Waseem>cd C:\Workspace_Eclipse\Sample\src

C:\Workspace_Eclipse\Sample\src>mvn archetype:generate
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.3.1/maven-install-plugin-2.3.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-install-plugin:2.3.1: Plugin
org.apache.maven.plugins:maven-install-plugin:2.3
.1 or one of its dependencies could not be resolved: Could not transfer
artifact
 org.apache.maven.plugins:maven-install-plugin:jar:2.3.1 from central
(http://re
po1.maven.org/maven2): Error transferring file: Network is unreachable:
connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/2.5/maven-deploy-plugin-2.5.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-deploy-plugin:2.5: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.5
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-deploy-plugin:jar:2.5 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.4.1/maven-clean-plugin-2.4.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-clean-plugin:2.4.1: Plugin
org.apache.maven.plugins:maven-clean-plugin:2.4.1 o
r one of its dependencies could not be resolved: Could not transfer artifact
org
.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 from central
(http://repo1.ma
ven.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-p
lugin/2.0.1/maven-site-plugin-2.0.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-site-plugin:2.0.1: Plugin org.apache.maven.plugins:maven-site-plugin:2.0.1
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-site-plugin:jar:2.0.1 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun
-plugin/1.3/maven-antrun-plugin-1.3.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-antrun-plugin:jar:1.3 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assemb
ly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-assembly-plugin:2.2-beta-5: Plugin
org.apache.maven.plugins:maven-assembly-plu
gin:2.2-beta-5 or one of its dependencies could not be resolved: Could not
trans
fer artifact org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5
from
central (http://repo1.maven.org/maven2): Error transferring file: Network is
unr
eachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend
ency-plugin/2.1/maven-dependency-plugin-2.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-dependency-plugin:2.1: Plugin
org.apache.maven.plugins:maven-dependency-plugin
:2.1 or one of its dependencies could not be resolved: Could not transfer
artifa
ct org.apache.maven.plugins:maven-dependency-plugin:jar:2.1 from central
(http:/
/repo1.maven.org/maven2): Error transferring file: Network is unreachable:
conne
ct
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-releas
e-plugin/2.0/maven-release-plugin-2.0.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-release-plugin:2.0: Plugin
org.apache.maven.plugins:maven-release-plugin:2.0 o
r one of its dependencies could not be resolved: Could not transfer artifact
org
.apache.maven.plugins:maven-release-plugin:jar:2.0 from central
(http://repo1.ma
ven.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo

Re: Maven in 5 minutes doesn't work

2010-10-21 Thread Manuel Doninger
On Fri, Oct 22, 2010 at 08:15, wasi_shez  wrote:
>
> I am using XP Windows >>>
>
>
> 1)Install Latest JRE
> 2)Download Maven 3.0
> 3)Set JAVA_Home for JRE
> 4)Set Path for Maven 3.0 upto BIN
>
> Run Command to ensure the installation
>
>>> mvn --v
>
> Apache Maven 3.0 (r1004208; 2010-10-04 16:50:56+0500)
> Java version: 1.6.0_22
> Java home: C:\Program Files\Java\jdk1.6.0_22\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>
> Will Anyone help me How to Proceed further as My Java Project Path is :-
>
> C:\Workspace_Eclipse\Sample\src
>
>
> I am running following Command after using this Link:
> mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app
> -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
>
> and Link is :
>
> http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
>
>
> It doesn't work for me .
>
>
> Errors Come as 
>
>
>
>
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 0.093s
> [INFO] Finished at: Fri Oct 22 10:34:38 UZT 2010
> [INFO] Final Memory: 1M/15M
> [INFO]
> 
> [ERROR] The goal you specified requires a project to execute but there is no
> POM
> in this directory (C:\Workspace_Eclipse\Sample\src). Please verify you
> invoked
> Maven from the correct directory. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [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
>
>
>
> Please Suggest.

I think you should cd into the directory my-app, which should exist
under C:\Workspace_Eclipse\Sample\src, if you run the
archetype:generate in that directory. archetype:generate creates the
whole directory structure, the top directory is named after the
artifactId you provided. So you shouldn't run this command in your
"source"-directory, but in your workspace-directory.

Regards,
Manuel

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



Re: Maven in 5 minutes doesn't work

2010-10-21 Thread wasi_shez

I am using XP Windows >>>


1)Install Latest JRE
2)Download Maven 3.0
3)Set JAVA_Home for JRE
4)Set Path for Maven 3.0 upto BIN

Run Command to ensure the installation

>> mvn --v

Apache Maven 3.0 (r1004208; 2010-10-04 16:50:56+0500)
Java version: 1.6.0_22
Java home: C:\Program Files\Java\jdk1.6.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Will Anyone help me How to Proceed further as My Java Project Path is :-

C:\Workspace_Eclipse\Sample\src


I am running following Command after using this Link:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

and Link is :

http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html


It doesn't work for me .


Errors Come as 




[INFO] Scanning for projects...
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 0.093s
[INFO] Finished at: Fri Oct 22 10:34:38 UZT 2010
[INFO] Final Memory: 1M/15M
[INFO]

[ERROR] The goal you specified requires a project to execute but there is no
POM
in this directory (C:\Workspace_Eclipse\Sample\src). Please verify you
invoked
Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[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



Please Suggest.

I have Simple Settings.XML file that is in Maven 3.0's Package

Thanks



-


Waseem Bokhari
CM Analyst
wasi_s...@hotmail.com
00923214294926
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3231784.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



Re: Maven in 5 minutes doesn't work

2010-10-21 Thread wasi_shez

I am using XP Windows >>>


1)Install Latest JRE
2)Download Maven 3.0
3)Set JAVA_Home for JRE
4)Set Path for Maven 3.0 upto BIN

Run Command to ensure the installation

>> mvn --v

Apache Maven 3.0 (r1004208; 2010-10-04 16:50:56+0500)
Java version: 1.6.0_22
Java home: C:\Program Files\Java\jdk1.6.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Will Anyone help me How to Proceed further as My Java Project Path is :-

C:\Workspace_Eclipse\Sample\src


I am running following Command after using this Link:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

and Link is :

http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html


It doesn't work for me .


Errors Come as 




[INFO] Scanning for projects...
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 0.093s
[INFO] Finished at: Fri Oct 22 10:34:38 UZT 2010
[INFO] Final Memory: 1M/15M
[INFO]

[ERROR] The goal you specified requires a project to execute but there is no
POM
in this directory (C:\Workspace_Eclipse\Sample\src). Please verify you
invoked
Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[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



Please Suggest.

I have Simple Settings.XML file that is in Maven 3.0's Package

Thanks



-


Waseem Bokhari
CM Analyst
wasi_s...@hotmail.com
00923214294926
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-in-5-minutes-doesn-t-work-tp510820p3231786.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



Re: Maven in 5 minutes doesn't work

2010-06-23 Thread Akshay Dev Vankhede
Thanks for the support guys, it was not a proxy issue. I upgraded my JDK/JRE
from 1.6.0_03 to 1.6.0_20 and it all came back on the track, a bit strange
though.

--
Akshay

On Wed, Jun 23, 2010 at 4:45 PM, Martin Gainty  wrote:

>
> try this simple task:
>
> tracert repo1.maven.org
>
>
>
> someone has inserted an intervening proxy between you and maven.org
>
> go to $M2_HOME/conf/settings.xml and configure access to maven.ord thru
> this proxy (which should look something like)
>
>
>
> 
>  
>
>  
>
>
> Martin
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>
> > Date: Tue, 22 Jun 2010 21:51:23 +0530
> > Subject: Maven in 5 minutes doesn't work
> > From: akshay.sys...@gmail.com
> > To: users@maven.apache.org
> >
> > I followed everything, line by line to install Maven on my laptop. I've
> gone
> > through the mailing lists, but couldn't let Maven work.
> >
> > As, I'm very frustrated with strange behavior of Maven, before I begin I
> > would
> > like to make it clear that,
> > 1. I have direct internet connection
> > 2. I do not have fancy firewall policies which block internet access from
> > specific
> > process executables.
> > 3. I do not have any proxy in between
> > 4. I can resolve repo1.maven.org from my laptop
> >
> > Kindly help.
> >
> > This is what I did:
> > aks...@lap7:~$ echo $M2_HOME
> > /home/akshay/opt/apache-maven-2.2.1
> > aks...@lap7:~$ which mvn
> > /home/akshay/opt/apache-maven-2.2.1/bin/mvn
> > aks...@lap7:~$ mvn --version
> > Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530)
> > Java version: 1.6.0_03
> > Java home: /opt/jdk1.6.0_03/jre
> > Default locale: en_IN, platform encoding: UTF-8
> > OS name: "linux" version: "2.6.24-28-generic" arch: "i386" Family: "unix"
> > aks...@lap7:~$ mvn archetype:generate -DgroupId=com.mycompany.app
> > -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
> > -DinteractiveMode=false -e
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [INFO] org.apache.maven.plugins: checking for updates from central
> > [WARNING] repository metadata for: 'org.apache.maven.plugins' could not
> be
> > retrieved from repository: central due to an error: Error transferring
> file:
> > repo1.maven.org
> > [INFO] Repository 'central' will be blacklisted
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
> not
> > exist or no valid version could be found
> > [INFO]
> > 
> > [INFO] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> > 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
> valid
> > version could be found
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1569)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > at
> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2

RE: Maven in 5 minutes doesn't work

2010-06-23 Thread Martin Gainty

try this simple task:

tracert repo1.maven.org

 

someone has inserted an intervening proxy between you and maven.org 

go to $M2_HOME/conf/settings.xml and configure access to maven.ord thru this 
proxy (which should look something like)

 


  

  


Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Tue, 22 Jun 2010 21:51:23 +0530
> Subject: Maven in 5 minutes doesn't work
> From: akshay.sys...@gmail.com
> To: users@maven.apache.org
> 
> I followed everything, line by line to install Maven on my laptop. I've gone
> through the mailing lists, but couldn't let Maven work.
> 
> As, I'm very frustrated with strange behavior of Maven, before I begin I
> would
> like to make it clear that,
> 1. I have direct internet connection
> 2. I do not have fancy firewall policies which block internet access from
> specific
> process executables.
> 3. I do not have any proxy in between
> 4. I can resolve repo1.maven.org from my laptop
> 
> Kindly help.
> 
> This is what I did:
> aks...@lap7:~$ echo $M2_HOME
> /home/akshay/opt/apache-maven-2.2.1
> aks...@lap7:~$ which mvn
> /home/akshay/opt/apache-maven-2.2.1/bin/mvn
> aks...@lap7:~$ mvn --version
> Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530)
> Java version: 1.6.0_03
> Java home: /opt/jdk1.6.0_03/jre
> Default locale: en_IN, platform encoding: UTF-8
> OS name: "linux" version: "2.6.24-28-generic" arch: "i386" Family: "unix"
> aks...@lap7:~$ mvn archetype:generate -DgroupId=com.mycompany.app
> -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
> -DinteractiveMode=false -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
> retrieved from repository: central due to an error: Error transferring file:
> repo1.maven.org
> [INFO] Repository 'central' will be blacklisted
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
> exist or no valid version could be found
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid
> version could be found
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1569)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
> The plugin 'org.apache.mave

Re: Maven in 5 minutes doesn't work

2010-06-23 Thread kristian
hello,

since it works for my without any problem and the error you see with
"-e" flag set is not sufficient. maybe you try

mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app
-DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false -X

it produces more output but you might be able to see the cause why
central maven repository got blacklisted.

but I have to mention one case where I was in Delhi and I was not able
to route to one of the sonatype.org server, traceroute got stuck
somewhere. but a traceroute from europe succeeded and a day before it
worked from Amritsa. all I want to say here it that a lot of strange
things are possible.

with regards
Kristian

On Tue, Jun 22, 2010 at 9:51 PM, Akshay Dev Vankhede
 wrote:
> I followed everything, line by line to install Maven on my laptop. I've gone
> through the mailing lists, but couldn't let Maven work.
>
> As, I'm very frustrated with strange behavior of Maven, before I begin I
> would
> like to make it clear that,
> 1. I have direct internet connection
> 2. I do not have fancy firewall policies which block internet access from
> specific
>    process executables.
> 3. I do not have any proxy in between
> 4. I can resolve repo1.maven.org from my laptop
>
> Kindly help.
>
> This is what I did:
> aks...@lap7:~$ echo $M2_HOME
> /home/akshay/opt/apache-maven-2.2.1
> aks...@lap7:~$ which mvn
> /home/akshay/opt/apache-maven-2.2.1/bin/mvn
> aks...@lap7:~$ mvn --version
> Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530)
> Java version: 1.6.0_03
> Java home: /opt/jdk1.6.0_03/jre
> Default locale: en_IN, platform encoding: UTF-8
> OS name: "linux" version: "2.6.24-28-generic" arch: "i386" Family: "unix"
> aks...@lap7:~$ mvn archetype:generate -DgroupId=com.mycompany.app
> -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
> -DinteractiveMode=false -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
> retrieved from repository: central due to an error: Error transferring file:
> repo1.maven.org
> [INFO] Repository 'central' will be blacklisted
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
> exist or no valid version could be found
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid
> version could be found
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1569)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>    at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
> The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist
> or no valid version could be found
>    at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
>    at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
>    at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:179)
>    at
> org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
>    at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife