maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Hammar (JIRA)" <j...@codehaus.org>
Subject [jira] (ARCHETYPE-403) Error reading archetype catalog http://repo1.maven.org/maven2 on archetype:generate
Date Thu, 31 Jan 2013 16:17:14 GMT

    [ https://jira.codehaus.org/browse/ARCHETYPE-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=318386#comment-318386
] 

Anders Hammar commented on ARCHETYPE-403:
-----------------------------------------

What could be the problem here is the version "RELEASE" in org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE.
Does it work if you execute:
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=1.1
?
                
>  Error reading archetype catalog http://repo1.maven.org/maven2 on archetype:generate
> ------------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-403
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-403
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes, Generator
>    Affects Versions: 2.1, 2.2
>            Reporter: Jens Rapp
>
> hello,
> we use maven behind a cascade of two maven proxies. (only second one is in our hands,
the other one connects to internet) 
> When we call mvn archetype:generate this happens:
> {quote}
> hal# /opt/maven-2.1.0/bin/mvn archetype:generate
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [archetype:generate] (aggregator-style)
> [INFO] ------------------------------------------------------------------------
> [INFO] Preparing archetype:generate
> [INFO] No goals needed for project - skipping
> [INFO] [archetype:generate]
> [INFO] Generating project in Interactive mode
> [WARNING] Error reading archetype catalog http://repo1.maven.org/maven2
> org.apache.maven.wagon.TransferFailedException: Error transferring file: repo1.maven.org
>         at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
>         at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
>         at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
>         at org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.downloadCatalog(RemoteCatalogArchetypeDataSource.java:119)
>         at org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:87)
>         at org.apache.maven.archetype.DefaultArchetypeManager.getRemoteCatalog(DefaultArchetypeManager.java:216)
>         at org.apache.maven.archetype.DefaultArchetypeManager.getRemoteCatalog(DefaultArchetypeManager.java:205)
>         at org.apache.maven.archetype.ui.generation.DefaultArchetypeSelector.getArchetypesByCatalog(DefaultArchetypeSelector.java:200)
>         at org.apache.maven.archetype.ui.generation.DefaultArchetypeSelector.selectArchetype(DefaultArchetypeSelector.java:71)
>         at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:197)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>         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: java.net.UnknownHostException: repo1.maven.org
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>         at java.net.Socket.connect(Socket.java:529)
>         at java.net.Socket.connect(Socket.java:478)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>         at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
>         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
>         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
>         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
>         at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
>         ... 28 more
> [WARNING] No archetype found in remote catalog. Defaulting to internal catalog
> [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
> Choose archetype:
> 1: internal -> org.appfuse.archetypes:appfuse-basic-jsf (AppFuse archetype for creating
a web application with Hibernate, Spring and JSF)
> --- internal catalog follows ---
> Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains):
16:
> {quote}
> after inserting data for the dialog, it won't generate a project:
> {quote}
> [INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking for
updates from central
> Downloading: http://maven-repository.prod.bfa:8081/artifactory/repo/org/apache/maven/archetypes/maven-archetype-quickstart/1.1/maven-archetype-quickstart-1.1.jar
> 6K downloaded  (maven-archetype-quickstart-1.1.jar)
> Downloading: http://maven-repository.prod.bfa:8081/artifactory/repo/org/apache/maven/archetypes/maven-archetype-quickstart/1.1/maven-archetype-quickstart-1.1.pom
> 1K downloaded  (maven-archetype-quickstart-1.1.pom)
> Define value for property 'groupId': : groupId
> Define value for property 'artifactId': : artifactId
> Define value for property 'version': 1.0-SNAPSHOT:
> Define value for property 'package': groupId:
> Confirm properties configuration:
> groupId: groupId
> artifactId: artifactId
> version: 1.0-SNAPSHOT
> package: groupId
> Y: y
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype
does not exist (org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE)
> The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE)
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 46 seconds
> [INFO] Finished at: Mon Mar 12 10:21:29 MET 2012
> [INFO] Final Memory: 22M/171M
> [INFO] ------------------------------------------------------------------------
> {quote}
> archetype:generate worked for years but doesn't anymore for a few weeks now.
> Can someone help?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message