rubygems maven support does not install artifact ehcache:ehcache
----------------------------------------------------------------

                 Key: JRUBY-5561
                 URL: http://jira.codehaus.org/browse/JRUBY-5561
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6RC2, JRuby 1.6RC1, JRuby 1.6RC3
            Reporter: kristian meier
            Assignee: Thomas E Enebo


{noformat}
jruby -S gem install ehcache:ehcache
WARNING: more than one JRuby JAR found in lib directory
ERROR:  Could not find a valid gem 'ehcache:ehcache' (>= 0) in any repository
{noformat}

first the whole thing fails silently which is NOT really nice since the people 
first report there is no gem ehcache:ehcache

an error message in such cases would help to distinguish between "there is no 
such maven artifact / gem" and there was an error install it.

here the error is that this artifact is a relocated artifact:
http://repo1.maven.org/maven2/ehcache/ehcache/1.2/ehcache-1.2.pom

where the groupId is relocated to "net.sf.ehcache" and it is not handle 
correctly from the underlying maven-plugin

right now the implementation "follows that redirection" (after the bug fix in 
the plugin) to net.sf.ehcache:ehcache and create a gem with that relocated 
coordinate. the whole thing will also happens the same way for any dependencies 
the plugin encounters when creating the gemspec for gem.

the only thing which does not work is to declare "ehcache:ehcache" as 
dependency in manual gemspec, there will not be such a gem.

alternatively it is possible "not to follow" the relocation and just create the 
gem with the content of the relocated artifact. this would end up in identical 
gems one for the original artifact-coordinate and one for the 
relocated-coordinate.

any comments on "follow" or not "follow" relocations !!!

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to