You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Luca Stancapiano (JIRA)" <ji...@apache.org> on 2011/06/04 22:43:47 UTC
[jira] [Created] (LUCENE-3172) installation problems on lucene-misc
OSGI bundle
installation problems on lucene-misc OSGI bundle
------------------------------------------------
Key: LUCENE-3172
URL: https://issues.apache.org/jira/browse/LUCENE-3172
Project: Lucene - Java
Issue Type: Bug
Environment: felix 3.2.2
Reporter: Luca Stancapiano
lucene-misc contrib module has two package names equals to the core version: org.apache.lucene.index and org.apache.lucene.store. For theese modules we need to configure the creation of the bundles so that the OSGI repository recognize theese packages as merged else we get a 'uses constraint violation' error in the installation.
The solution is to mark the packages as mergeables adding a configuration in the maven-bunde-plugin:
<configuration>
<instructions>
<Export-Package>*;-split-package:=merge-first</Export-Package>
</instructions>
</configuration>
the * represents the package names. We could put org.apache.lucene.* too
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (LUCENE-3172) installation problems on
lucene-misc OSGI bundle
Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Rowe resolved LUCENE-3172.
---------------------------------
Resolution: Fixed
Fix Version/s: 4.0
3.3
Lucene Fields: (was: [New])
Committed:
- r1131492: trunk
- r1131493: branch_3x
Thanks Luca!
> installation problems on lucene-misc OSGI bundle
> ------------------------------------------------
>
> Key: LUCENE-3172
> URL: https://issues.apache.org/jira/browse/LUCENE-3172
> Project: Lucene - Java
> Issue Type: Bug
> Environment: felix 3.2.2
> Reporter: Luca Stancapiano
> Assignee: Steven Rowe
> Fix For: 3.3, 4.0
>
> Attachments: lucene_trunk.patch
>
>
> lucene-misc contrib module has two package names equals to the core version: org.apache.lucene.index and org.apache.lucene.store. For theese modules we need to configure the creation of the bundles so that the OSGI repository recognize theese packages as merged else we get a 'uses constraint violation' error in the installation.
> The solution is to mark the packages as mergeables adding a configuration in the maven-bunde-plugin:
> <configuration>
> <instructions>
> <Export-Package>*;-split-package:=merge-first</Export-Package>
> </instructions>
> </configuration>
> the * represents the package names. We could put org.apache.lucene.* too
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-3172) installation problems on
lucene-misc OSGI bundle
Posted by "Luca Stancapiano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044558#comment-13044558 ]
Luca Stancapiano commented on LUCENE-3172:
------------------------------------------
The problem is when you have the same package name. If you have subpackages in a different bundle there is no problem. However the patch resolves all modules in Lucene and Solr
> installation problems on lucene-misc OSGI bundle
> ------------------------------------------------
>
> Key: LUCENE-3172
> URL: https://issues.apache.org/jira/browse/LUCENE-3172
> Project: Lucene - Java
> Issue Type: Bug
> Environment: felix 3.2.2
> Reporter: Luca Stancapiano
> Assignee: Steven Rowe
> Fix For: 3.3, 4.0
>
> Attachments: lucene_trunk.patch
>
>
> lucene-misc contrib module has two package names equals to the core version: org.apache.lucene.index and org.apache.lucene.store. For theese modules we need to configure the creation of the bundles so that the OSGI repository recognize theese packages as merged else we get a 'uses constraint violation' error in the installation.
> The solution is to mark the packages as mergeables adding a configuration in the maven-bunde-plugin:
> <configuration>
> <instructions>
> <Export-Package>*;-split-package:=merge-first</Export-Package>
> </instructions>
> </configuration>
> the * represents the package names. We could put org.apache.lucene.* too
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Assigned] (LUCENE-3172) installation problems on
lucene-misc OSGI bundle
Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Rowe reassigned LUCENE-3172:
-----------------------------------
Assignee: Steven Rowe
> installation problems on lucene-misc OSGI bundle
> ------------------------------------------------
>
> Key: LUCENE-3172
> URL: https://issues.apache.org/jira/browse/LUCENE-3172
> Project: Lucene - Java
> Issue Type: Bug
> Environment: felix 3.2.2
> Reporter: Luca Stancapiano
> Assignee: Steven Rowe
> Attachments: lucene_trunk.patch
>
>
> lucene-misc contrib module has two package names equals to the core version: org.apache.lucene.index and org.apache.lucene.store. For theese modules we need to configure the creation of the bundles so that the OSGI repository recognize theese packages as merged else we get a 'uses constraint violation' error in the installation.
> The solution is to mark the packages as mergeables adding a configuration in the maven-bunde-plugin:
> <configuration>
> <instructions>
> <Export-Package>*;-split-package:=merge-first</Export-Package>
> </instructions>
> </configuration>
> the * represents the package names. We could put org.apache.lucene.* too
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-3172) installation problems on
lucene-misc OSGI bundle
Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044393#comment-13044393 ]
Uwe Schindler commented on LUCENE-3172:
---------------------------------------
I think you should have similar problems with the analysis module!
> installation problems on lucene-misc OSGI bundle
> ------------------------------------------------
>
> Key: LUCENE-3172
> URL: https://issues.apache.org/jira/browse/LUCENE-3172
> Project: Lucene - Java
> Issue Type: Bug
> Environment: felix 3.2.2
> Reporter: Luca Stancapiano
> Assignee: Steven Rowe
> Fix For: 3.3, 4.0
>
> Attachments: lucene_trunk.patch
>
>
> lucene-misc contrib module has two package names equals to the core version: org.apache.lucene.index and org.apache.lucene.store. For theese modules we need to configure the creation of the bundles so that the OSGI repository recognize theese packages as merged else we get a 'uses constraint violation' error in the installation.
> The solution is to mark the packages as mergeables adding a configuration in the maven-bunde-plugin:
> <configuration>
> <instructions>
> <Export-Package>*;-split-package:=merge-first</Export-Package>
> </instructions>
> </configuration>
> the * represents the package names. We could put org.apache.lucene.* too
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-3172) installation problems on
lucene-misc OSGI bundle
Posted by "Gunnar Wagenknecht (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044591#comment-13044591 ]
Gunnar Wagenknecht commented on LUCENE-3172:
--------------------------------------------
FYI, I usually also create an "umbrella" bundle which has a Require-Bundle dependency on all the Lucene bundles with such split-package headers. It does not contain any class files but just re-exports the "merged" packages without a split-package header. This allows client bundles to do a vanilla Import-Package. Otherwise, any downstream client will be forced to add the special split-package info to their Import-Package declaration.
> installation problems on lucene-misc OSGI bundle
> ------------------------------------------------
>
> Key: LUCENE-3172
> URL: https://issues.apache.org/jira/browse/LUCENE-3172
> Project: Lucene - Java
> Issue Type: Bug
> Environment: felix 3.2.2
> Reporter: Luca Stancapiano
> Assignee: Steven Rowe
> Fix For: 3.3, 4.0
>
> Attachments: lucene_trunk.patch
>
>
> lucene-misc contrib module has two package names equals to the core version: org.apache.lucene.index and org.apache.lucene.store. For theese modules we need to configure the creation of the bundles so that the OSGI repository recognize theese packages as merged else we get a 'uses constraint violation' error in the installation.
> The solution is to mark the packages as mergeables adding a configuration in the maven-bunde-plugin:
> <configuration>
> <instructions>
> <Export-Package>*;-split-package:=merge-first</Export-Package>
> </instructions>
> </configuration>
> the * represents the package names. We could put org.apache.lucene.* too
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-3172) installation problems on lucene-misc
OSGI bundle
Posted by "Luca Stancapiano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luca Stancapiano updated LUCENE-3172:
-------------------------------------
Attachment: lucene_trunk.patch
This patch resolves the problem
> installation problems on lucene-misc OSGI bundle
> ------------------------------------------------
>
> Key: LUCENE-3172
> URL: https://issues.apache.org/jira/browse/LUCENE-3172
> Project: Lucene - Java
> Issue Type: Bug
> Environment: felix 3.2.2
> Reporter: Luca Stancapiano
> Attachments: lucene_trunk.patch
>
>
> lucene-misc contrib module has two package names equals to the core version: org.apache.lucene.index and org.apache.lucene.store. For theese modules we need to configure the creation of the bundles so that the OSGI repository recognize theese packages as merged else we get a 'uses constraint violation' error in the installation.
> The solution is to mark the packages as mergeables adding a configuration in the maven-bunde-plugin:
> <configuration>
> <instructions>
> <Export-Package>*;-split-package:=merge-first</Export-Package>
> </instructions>
> </configuration>
> the * represents the package names. We could put org.apache.lucene.* too
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org