maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Siveton (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MRRESOURCES-15) ClassCast Exception happens when depending on the snapshot artifacts
Date Thu, 16 Aug 2007 11:14:47 GMT

     [ http://jira.codehaus.org/browse/MRRESOURCES-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vincent Siveton closed MRRESOURCES-15.
--------------------------------------

      Assignee: Vincent Siveton  (was: Daniel Kulp)
    Resolution: Fixed

Fixed in r566658 

o renamed remoteRepositories to repositories to be more clear
o added remoteArtifactRepositories field and use it, if artifact is a snapshot

> ClassCast Exception happens when depending on the snapshot artifacts
> --------------------------------------------------------------------
>
>                 Key: MRRESOURCES-15
>                 URL: http://jira.codehaus.org/browse/MRRESOURCES-15
>             Project: Maven 2.x Remote Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-3
>            Reporter: Balaji Ravi
>            Assignee: Vincent Siveton
>            Priority: Critical
>             Fix For:  1.0-alpha-6
>
>
> The remote resources plugin throws the following ClassCastException when there are snapshot
artifacts.
> INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.maven.model.Repository
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: org.apache.maven.model.Repository
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> taManager.mergeMetadata(DefaultRepositoryMetadataManager.java:161)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> taManager.resolve(DefaultRepositoryMetadataManager.java:134)
>         at org.apache.maven.artifact.transform.AbstractVersionTransformation.res
> olveVersion(AbstractVersionTransformation.java:65)
>         at org.apache.maven.artifact.transform.SnapshotTransformation.transformF
> orResolve(SnapshotTransformation.java:63)
>         at org.apache.maven.artifact.transform.DefaultArtifactTransformationMana
> ger.transformForResolve(DefaultArtifactTransformationManager.java:43)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:114)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:73)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:482)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:1194)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> aultMavenProjectBuilder.java:697)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
> ry(DefaultMavenProjectBuilder.java:230)
>         at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.g
> etProjects(ProcessRemoteResourcesMojo.java:408)
>         at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.e
> xecute(ProcessRemoteResourcesMojo.java:273)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:420)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:539)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         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)
> --------------------

-- 
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

        

Mime
View raw message