[
https://issues.apache.org/jira/browse/FTPSERVER-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427653#comment-13427653
]
Niklas Gustavsson commented on FTPSERVER-425:
---------------------------------------------
Thanks for reporting and sorry for the slow acting on this! The proposed patch
won't work since a bunch of packages from core won't be included in the bundle.
Instead, as the Felix link proposes, we seem to be able to remove the entire
<Private-package> tag which generates a bundle without the
org.apache.ftpserver.ftplet package, but all others. Also, the imports seems to
look like expected. I'll upload a new proposed patch, please verify if this
works for you before I commit it.
> Duplicate package org.apache.ftpserver.ftplet in ftpserver-core
> ---------------------------------------------------------------
>
> Key: FTPSERVER-425
> URL: https://issues.apache.org/jira/browse/FTPSERVER-425
> Project: FtpServer
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.5, 1.0.6
> Reporter: Joao Assuncao
> Priority: Minor
> Attachments: core.diff
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The package org.apache.ftpserver.ftplet is copied from ftplet-api into
> ftpserver when the bundle is assembled.
> When I disabled the bundle plugin in the pom for the core the package
> mentioned isn't copied.
> This page might provide some insight:
> http://felix.apache.org/site/apache-felix-bundle-plugin-faq.html#ApacheFelixBundlePluginFAQ-WhydoIseemoreclassesinmybundleafterupgradingtomavenbundleplugin2.0.0%253F
> Removing the line "org.apache.ftpserver.*" in <private-package> seems to
> solve the isssue
> The duplicate package is an issue when running inside an OSGI framework. In
> Apache Felix 3.2.2 I get a ClassCastException when I try to install a FtpLet
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira