You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Hahn, Christopher (SAN DIEGO)" <ch...@hp.com> on 2011/03/23 19:39:44 UTC

Hello World?

???

What can make Hello World fail:
==========================================================
D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app

D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
[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: Connection refused: connect
[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] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Mar 23 10:18:23 PDT 2011
[INFO] Final Memory: 1M/127M
[INFO] ------------------------------------------------------------------------
D:\temp>
==========================================================

We are using Nexus, and something must be misconfigured there, but
other full-blown targets are working fine.

Do I need to re-add Central as a repo on my command line?

Sorry, but I seem to be going backwards on this matter...

Chris

________________________________

[cid:image001.png@01CBE94E.4DE427B0]

Christopher Hahn
The Dude
Software Production Engineering
R&D Services, Hewlett-Packard
Phone: 858-655-4096
Cell: 619-630-9791
chahn@hp.com<ma...@hp.com>

Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>

________________________________




RE: Hello World?

Posted by "Hessick, Michael" <mi...@fmr.com>.
@Christopher

Would you mind posting your settings.xml?  

It sounds like it needs to be updated.  




-Mike



-----Original Message-----
From: Asmann, Roland [mailto:Roland.Asmann@adesso.at] 
Sent: Wednesday, March 23, 2011 12:46 PM
To: Maven Users List
Subject: Re: Hello World?

Because that is Maven's default output, no matter if you are using nexus 
or not! If you run in debug, it should (when correctly configured) show 
that it is trying to download from 'central (<url to your nexus here>)'.


On 23-03-11 19:43, Hessick, Michael wrote:
> If you are using Nexus, then why is your build trying to connect to central?
>
>
>
> From: Hahn, Christopher (SAN DIEGO) [mailto:christopher.hahn@hp.com]
> Sent: Wednesday, March 23, 2011 12:40 PM
> To: Maven Users List
> Subject: Hello World?
>
> ???
>
> What can make Hello World fail:
> ==========================================================
> D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app
>
> D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
> [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: Connection refused: connect
> [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] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Wed Mar 23 10:18:23 PDT 2011
> [INFO] Final Memory: 1M/127M
> [INFO] ------------------------------------------------------------------------
> D:\temp>
> ==========================================================
>
> We are using Nexus, and something must be misconfigured there, but
> other full-blown targets are working fine.
>
> Do I need to re-add Central as a repo on my command line?
>
> Sorry, but I seem to be going backwards on this matter...
>
> Chris
>
> ________________________________
>
> [cid:image001.png@01CBE94E.4DE427B0]
>
> Christopher Hahn
> The Dude
> Software Production Engineering
> R&D Services, Hewlett-Packard
> Phone: 858-655-4096
> Cell: 619-630-9791
> chahn@hp.com<ma...@hp.com>
>
> Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>
>
> ________________________________
>
>
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E roland.asmann@adesso.at
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------
---------------------------------------------------------------------
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


Re: Hello World?

Posted by "Asmann, Roland" <Ro...@adesso.at>.
Because that is Maven's default output, no matter if you are using nexus 
or not! If you run in debug, it should (when correctly configured) show 
that it is trying to download from 'central (<url to your nexus here>)'.


On 23-03-11 19:43, Hessick, Michael wrote:
> If you are using Nexus, then why is your build trying to connect to central?
>
>
>
> From: Hahn, Christopher (SAN DIEGO) [mailto:christopher.hahn@hp.com]
> Sent: Wednesday, March 23, 2011 12:40 PM
> To: Maven Users List
> Subject: Hello World?
>
> ???
>
> What can make Hello World fail:
> ==========================================================
> D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app
>
> D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
> [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: Connection refused: connect
> [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] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Wed Mar 23 10:18:23 PDT 2011
> [INFO] Final Memory: 1M/127M
> [INFO] ------------------------------------------------------------------------
> D:\temp>
> ==========================================================
>
> We are using Nexus, and something must be misconfigured there, but
> other full-blown targets are working fine.
>
> Do I need to re-add Central as a repo on my command line?
>
> Sorry, but I seem to be going backwards on this matter...
>
> Chris
>
> ________________________________
>
> [cid:image001.png@01CBE94E.4DE427B0]
>
> Christopher Hahn
> The Dude
> Software Production Engineering
> R&D Services, Hewlett-Packard
> Phone: 858-655-4096
> Cell: 619-630-9791
> chahn@hp.com<ma...@hp.com>
>
> Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>
>
> ________________________________
>
>
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E roland.asmann@adesso.at
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Hello World?

Posted by "Hessick, Michael" <mi...@fmr.com>.
If you are using Nexus, then why is your build trying to connect to central?



From: Hahn, Christopher (SAN DIEGO) [mailto:christopher.hahn@hp.com]
Sent: Wednesday, March 23, 2011 12:40 PM
To: Maven Users List
Subject: Hello World?

???

What can make Hello World fail:
==========================================================
D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app

D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
[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: Connection refused: connect
[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] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Mar 23 10:18:23 PDT 2011
[INFO] Final Memory: 1M/127M
[INFO] ------------------------------------------------------------------------
D:\temp>
==========================================================

We are using Nexus, and something must be misconfigured there, but
other full-blown targets are working fine.

Do I need to re-add Central as a repo on my command line?

Sorry, but I seem to be going backwards on this matter...

Chris

________________________________

[cid:image001.png@01CBE94E.4DE427B0]

Christopher Hahn
The Dude
Software Production Engineering
R&D Services, Hewlett-Packard
Phone: 858-655-4096
Cell: 619-630-9791
chahn@hp.com<ma...@hp.com>

Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>

________________________________




AW: Hello World? And More

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
Hello Team

 

My problem goes into the same direction, hence no new thread;

 

When I first saw this archetype:generate , I was about to try it immediately.

 

ON PC

ON OpenVMS

 

I am using on the PC, maven 2.2.1 and my observations are:

I get 41 options to chose from offered; I use 15 and well it works; initially with some downloads

 

15, is OK and GENERATES a Project

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app-15

 

 

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app-1

. . . .

Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41) 15: : 1

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] The defined artifact is not an archetype

 

 

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app-1

. . . 

Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41) 15: : 6

[INFO] artifact org.appfuse.archetypes:appfuse-modular-jsf: checking for updates from central

Downloading: http://repo1.maven.org/maven2/org/appfuse/archetypes/appfuse-modular-jsf/2.1.0-M2/appfuse-modular-jsf-2.1.0-M2.jar

 

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] The defined artifact is not an archetype

 

In any unselected case it downloads first and fails

So numbers used are : 

 

1 to 9 FAILS;

 

10 to 17 is Ok and GENERATES, 

 

18 FAILS, 

 

19 is OK; 

 

20 FAILS --- 

Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41) 15: : 20

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam: checking for updates from softeu-archetype-seam-repo

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam: checking for updates from central

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] The desired archetype does not exist (org.apache.maven.archetypes:softeu-archetype-seam:RELEASE)

 

21 FAILS

Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41) 15: : 21

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam-simple: checking for updates from softeu-archetype-seam-simple-repo

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam-simple: checking for updates from central

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] The desired archetype does not exist (org.apache.maven.archetypes:softeu-archetype-seam-simple:RELEASE)

 

 

. . .

End of my test on PC

 

Guess someone has a little bit of work to do !

Or how shall I go on ???

 

And oooh yes; 

On OpenVMS the offerings are much greater (guess they come from remote), 

and they give me from the remote catalog 377 options to chose from

I have some parameter passing problems on OpenVMS but the default option perfectly generates a quick-start-project

 

Thank you

 

Josef

 

 

Von: Hahn, Christopher (SAN DIEGO) [mailto:christopher.hahn@hp.com] 
Gesendet: Mittwoch, 23. März 2011 19:40
An: Maven Users List
Betreff: Hello World?

 

???

 

What can make Hello World fail:

==========================================================

D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app

 

D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m

[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: Connection refused: connect

[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] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1 second

[INFO] Finished at: Wed Mar 23 10:18:23 PDT 2011

[INFO] Final Memory: 1M/127M

[INFO] ------------------------------------------------------------------------

D:\temp>

==========================================================

 

We are using Nexus, and something must be misconfigured there, but

other full-blown targets are working fine.

 

Do I need to re-add Central as a repo on my command line?

 

Sorry, but I seem to be going backwards on this matter...

 

Chris

 

________________________________

cid:image001.png@01CAF080.AD65F1E0

Christopher Hahn 
The Dude

Software Production Engineering 
R&D Services, Hewlett-Packard
Phone: 858-655-4096
Cell: 619-630-9791
chahn@hp.com <ma...@hp.com> 

 

Visit our SPE Portal <http://teams5.sharepoint.hp.com/teams/SPE/default.aspx> 

________________________________

 

 


Re: Hello World?

Posted by "Asmann, Roland" <Ro...@adesso.at>.
IT says 'connection refused', are you sure you can currently reach your 
Nexus?


On 23-03-11 19:39, Hahn, Christopher (SAN DIEGO) wrote:
> ???
>
> What can make Hello World fail:
>
> ==========================================================
>
> D:\temp>mvn archetype:generate
> -DarchetypeGroupId=org.apache.maven.archetypes
> -DgroupId=com.mycompany.app -DartifactId=my-app
>
> D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
>
> [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: Connection refused: connect
>
> [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] For more information, run Maven with the -e switch
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 1 second
>
> [INFO] Finished at: Wed Mar 23 10:18:23 PDT 2011
>
> [INFO] Final Memory: 1M/127M
>
> [INFO]
> ------------------------------------------------------------------------
>
> D:\temp>
>
> ==========================================================
>
> We are using Nexus, and something must be misconfigured there, but
>
> other full-blown targets are working fine.
>
> Do I need to re-add Central as a repo on my command line?
>
> Sorry, but I seem to be going backwards on this matter...
>
> Chris
>
> ------------------------------------------------------------------------
>
> cid:image001.png@01CAF080.AD65F1E0
>
> 	
>
> *Christopher Hahn*
> The Dude
>
> Software Production Engineering
> R&D Services, Hewlett-Packard
> Phone: 858-655-4096
> Cell: 619-630-9791
> chahn@hp.com <ma...@hp.com>
>
> */Visit our SPE Portal/*
> <http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>*//*
>
> ------------------------------------------------------------------------
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E roland.asmann@adesso.at
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org