You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andres Bernasconi (JIRA)" <ji...@codehaus.org> on 2007/07/10 20:14:13 UTC

[jira] Commented: (MRM-431) Error with artifacts that do not have a pom.xml file

    [ http://jira.codehaus.org/browse/MRM-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_101836 ] 

Andres Bernasconi commented on MRM-431:
---------------------------------------

Here is the wget for the request 

C:\Data\dev\tools\wget>wget -S http://trn-esv1:8080/archiva/repository/internal/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
--15:12:04--  http://trn-esv1:8080/archiva/repository/internal/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom => `xmlsec-1.3.0.pom'
Connecting to trn-esv1:8080... connected!
HTTP request sent, awaiting response... 404 Not Found
2 Date: Tue, 10 Jul 2007 18:10:27 GMT
3 Server: Jetty/5.1.10 (Windows 2003/5.2 x86 java/1.5.0_05
4 DAV: 1
5 MS-Author-Via: DAV
6 Content-Type: text/html; charset="UTF-8"
7 Connection: close
8
15:12:17 ERROR 404: Not Found.



> Error with artifacts that do not have a pom.xml file
> ----------------------------------------------------
>
>                 Key: MRM-431
>                 URL: http://jira.codehaus.org/browse/MRM-431
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-2
>         Environment: Windows 2003 server
> Trying to get xml-security/xmlsec-1.3.0
>            Reporter: Andres Bernasconi
>         Attachments: pom.xml
>
>
> When trying to download an artifact with no pom (for instance xml-security / xmlsec ) maven fails with an error. When not using Archiva, maven does not fail. (it only shows a warning).
> here is the stack trace (with archiva). You will need to modify the pom.xml file to point to your archiva server / port for this to work.
> {code}
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Aplicacion xxx
> [INFO]    task-segment: [compile]
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://trn-esv1:8080/archiva/repository/internal/xml-security/xmlse
> c/1.3.0/xmlsec-1.3.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> Project ID: xml-security:xmlsec
> Reason: Error getting POM for 'xml-security:xmlsec' from the repository: Error t
> ransferring file
>   xml-security:xmlsec:pom:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency
>  information: Unable to read the metadata file for artifact 'xml-security:xmlsec
> :jar': Error getting POM for 'xml-security:xmlsec' from the repository: Error tr
> ansferring file
>   xml-security:xmlsec:pom:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
>   xml-security:xmlsec:jar:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
> Path to dependency:
>         1) com.foo.bar:bar-web:war:1.0.0-SNAPSHOT
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:551)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         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:585)
>         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.artifact.resolver.ArtifactResolutionException: Unabl
> e to get dependency information: Unable to read the metadata file for artifact '
> xml-security:xmlsec:jar': Error getting POM for 'xml-security:xmlsec' from the r
> epository: Error transferring file
>   xml-security:xmlsec:pom:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
>   xml-security:xmlsec:jar:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
> Path to dependency:
>         1) com.foo.bar:bar-web:war:1.0.0-SNAPSHOT
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D
> efaultArtifactCollector.java:297)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(D
> efaultArtifactCollector.java:67)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
> nsitively(DefaultArtifactResolver.java:223)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
> nsitively(DefaultArtifactResolver.java:211)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
> nsitively(DefaultArtifactResolver.java:182)
>         at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDepende
> ncies(DefaultPluginManager.java:1117)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:366)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:534)
>         ... 16 more
> Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
> : Unable to read the metadata file for artifact 'xml-security:xmlsec:jar': Error
>  getting POM for 'xml-security:xmlsec' from the repository: Error transferring f
> ile
>   xml-security:xmlsec:pom:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
>         at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenM
> etadataSource.java:131)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D
> efaultArtifactCollector.java:275)
>         ... 23 more
> Caused by: org.apache.maven.project.ProjectBuildingException: Error getting POM
> for 'xml-security:xmlsec' from the repository: Error transferring file
>   xml-security:xmlsec:pom:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:501)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
> ry(DefaultMavenProjectBuilder.java:225)
>         at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenM
> etadataSource.java:102)
>         ... 24 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Error
>  transferring file
>   xml-security:xmlsec:pom:1.3.0
> from the specified remote repositories:
>   central (http://trn-esv1:8080/archiva/repository/internal),
>   internal-snapshot (http://trn-esv1:8080/archiva/repository/snapshots)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:140)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:63)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:467)
>         ... 26 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring fi
> le
>         at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:99)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D
> efaultWagonManager.java:369)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:282)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:244)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:124)
>         ... 28 more
> Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL:
>  http://trn-esv1:8080/archiva/repository/internal/xml-security/xmlsec/1.3.0/xmls
> ec-1.3.0.pom
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> nection.java:1174)
>         at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:85)
>         ... 33 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Jul 10 15:05:00 GMT-03:00 2007
> [INFO] Final Memory: 2M/4M
> [INFO] ------------------------------------------------------------------------
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira