Menu

#35 Beanshell dependency issue

0.9.15
closed-fixed
nobody
None
5
2014-11-05
2012-06-25
Anonymous
No

The fmpp-0.9.14 pom states a dependency on org.beanshell.bsh, but with a range of versions from 1.3 to 2.1.

<dependency>
<groupId>org.beanshell</groupId>
<artifactId>bsh</artifactId>
<!-- Regarding 2.1 it's just a wild guess... -->
<version>[1.3,2.1)</version>
</dependency>

Whilst there was a stable release of org.beanshell.bsh-1.3.0, the more recent versions are beta versions e.g. 2.0b4 and 2.0b5. Unfortunately, these versions have been mis-specified with the maven version rules (e.g. http://mojo.codehaus.org/versions-maven-plugin/version-rules.html\), which I think should make them 2.0.4-beta and 2.0.5-beta. This deviation means that these beta versions do not work with the range specifications in the fmpp pom.

As such, if either of these beta versions is in the maven repository, building a project which uses the fmpp jar (or com.googlecode.fmpp-maven-plugin) fails with the following error:

Couldn't find a version in [2.0b5] to match range [1.3,2.1)
org.beanshell:bsh:jar:null

Therefore, since 1.3 is a stable release, and fmpp has (presumably) been tested with this dependency, it seems that the range of versions for the org.beanshell.bsh dependency is inappropriate (even more with a comment like "Regarding 2.1 it's just a wild guess"...).

Discussion

  • Dániel Dékány

    The 2.1 exclusive-range-end is not a random thing actually. The rationale is that since some of the 2.0 betas were working with FMPP, it's reasonable to assume that versions earlier than 2.1 will not break API backward-compatibility, so FMPP will work with them. I'm not sure what the best solution would be to solve this issue, other than telling the BeanShell maintainers to fix the version numbers.

     
  • Dániel Dékány

    Ticket moved from /p/freemarker/bugs/367/

     
  • Dániel Dékány

    I will change the dependency version number to a fix version, as the common wisdom is that version ranges shouldn't be used in Maven.

     
  • Dániel Dékány

    • status: open --> accepted
    • Group: --> 0.9.15
     
  • Dániel Dékány

    • status: accepted --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB