[
https://issues.apache.org/jira/browse/JCR-2412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783078#action_12783078
]
Jukka Zitting commented on JCR-2412:
------------------------------------
Can't you use the resolution=optional setting for the dependency? Ideally I'd
expect the bundle plugin to automatically add that to any dependencies that
have been declared optional in the POM.
The rationale for having the class in there is explained in JCR-2055.
> JackrabbitRepositoryStub in jackrabbit-core library class contains o.a.j.test
> reference
> ---------------------------------------------------------------------------------------
>
> Key: JCR-2412
> URL: https://issues.apache.org/jira/browse/JCR-2412
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Affects Versions: 2.0-beta3
> Reporter: Felix Meschberger
>
> The JackrabbitRepositoryStub added as part of JCR-2055 contains a reference
> to the org.apache.jackrabbit.test package.
> This is IMHO a very bad dependency for a production library and should be
> removed.
> (I stumbled upon it while trying to create an OSGi bundle for an embedded
> Jackrabbit Repository based on 2.0-beta3, so I can work around this.
> Nevertheless, it is IMHO bad practice and not a very good idea)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.