[ 
https://issues.apache.org/jira/browse/OAK-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Dürig updated OAK-1536:
-------------------------------

    Attachment: OAK-1536.patch

Patch adding support for the baseline feature, which comes with the bundle 
plugin 2.5. 

With this patch the plugin is configured to *not* fail the build if a mismatch 
in package export versions is detected. This is something we might want to add 
later on once we gathered some more experience with the whole process. For the 
time being the plugin will only create {{target/baseline.xml}} files, which 
contain all relevant information regarding package export version mismatches:

{code}
...
<package name="org.apache.jackrabbit.oak.plugins.index.property" delta="major">
    <mismatch>true</mismatch>
    <newerVersion>1.0.0</newerVersion>
    <olderVersion>1.0.0</olderVersion>
    <suggestedVersion>2.0.0</suggestedVersion>
    <error>Version increase required</error>
    <attributes>
      <version>1.0</version>
      
<uses>com.google.common.base,javax.annotation,org.apache.jackrabbit.oak.api,org.apache.jackrabbit.oak.plugins.index,org.apache.jackrabbit.oak.spi.commit,org.apache.jackrabbit.oak.spi.query,org.apache.jackrabbit.oak.spi.state</uses>
    </attributes>
    <class 
name="org.apache.jackrabbit.oak.plugins.index.property.OrderedPropertyIndex" 
delta="major">
      <method 
name="getPlanDescription(org.apache.jackrabbit.oak.spi.query.QueryIndex$IndexPlan)"
 delta="removed">
        <return name="java.lang.String" delta="removed"/>
      </method>
      <method 
name="getPlanDescription(org.apache.jackrabbit.oak.spi.query.QueryIndex$IndexPlan,org.apache.jackrabbit.oak.spi.state.NodeState)"
 delta="added">
        <return name="java.lang.String" delta="added"/>
      </method>
    </class>
  </package>
  ...
{code}

> Add configuration for baselining-maven-plugin 
> ----------------------------------------------
>
>                 Key: OAK-1536
>                 URL: https://issues.apache.org/jira/browse/OAK-1536
>             Project: Jackrabbit Oak
>          Issue Type: Task
>    Affects Versions: 0.18
>            Reporter: Julian Sedding
>            Priority: Minor
>         Attachments: OAK-1536.patch, baselining-plugin-1.0.4.patch
>
>
> In order to help with semantic versioning of OSGi exports, the 
> baselining-maven-plugin can be leveraged to indicate which package versions 
> should be incremented.
> See also the discussion at  http://markmail.org/thread/p4vgsoi4zfay55pk



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to