You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Gabriele Columbro (JIRA)" <ji...@apache.org> on 2011/02/28 15:21:36 UTC

[jira] Created: (CMIS-324) OpenCMIS OSGI evolution and build support (Felix vs Tycho)

OpenCMIS OSGI evolution and build support (Felix vs Tycho)
----------------------------------------------------------

                 Key: CMIS-324
                 URL: https://issues.apache.org/jira/browse/CMIS-324
             Project: Chemistry
          Issue Type: Task
          Components: build&release
    Affects Versions: 0.2.0-incubating
            Reporter: Gabriele Columbro
            Assignee: Gabriele Columbro
            Priority: Minor
             Fix For: OpenCMIS 1.0


Forked from https://issues.apache.org/jira/browse/CMIS-322 to discuss OSGI support in OpenCMIS.

Status (after 0.2.0-incuating): 
all modules are OSGI enabled with the maven-felix-plugin:

To discuss:
what's the best option to build OSGI bundles, distribute and update the Maven (2/3) build accordingly?

See also comments pasted below.



-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CMIS-324) OpenCMIS OSGI evolution and build support (Felix vs Tycho)

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000330#comment-13000330 ] 

Felix Meschberger commented on CMIS-324:
----------------------------------------

>From the peanut gallery ;-)

* Whether you use Tycho or Maven Bundle Plugin doesn't matter to the end user. What is important is, that the bundles run in any standard OSGi container. Thus using buddy class loading is probably a no-go...

* If you have a need to extension and need to load classes use ClassLoader.loadClass (instead of Class.forName) and use the extender pattern: have the SPI implementation defined in the META-INF/services/xxxx files and do something similar to what ServiceMix does for bundle-wrapping XML libraries. See http://svn.apache.org/repos/asf/servicemix/smx4/specs/trunk/locator/

> OpenCMIS OSGI evolution and build support (Felix vs Tycho)
> ----------------------------------------------------------
>
>                 Key: CMIS-324
>                 URL: https://issues.apache.org/jira/browse/CMIS-324
>             Project: Chemistry
>          Issue Type: Task
>          Components: build&release
>    Affects Versions: 0.2.0-incubating
>            Reporter: Gabriele Columbro
>            Assignee: Gabriele Columbro
>            Priority: Minor
>             Fix For: OpenCMIS 1.0
>
>
> Forked from https://issues.apache.org/jira/browse/CMIS-322 to discuss OSGI support in OpenCMIS.
> Status (after 0.2.0-incuating): 
> all modules are OSGI enabled with the maven-felix-plugin:
> To discuss:
> what's the best option to build OSGI bundles, distribute and update the Maven (2/3) build accordingly?
> See also comments pasted below.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CMIS-324) OpenCMIS OSGI evolution and build support (Felix vs Tycho)

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000315#comment-13000315 ] 

Florian Müller commented on CMIS-324:
-------------------------------------

The idea is to allow exchanging an implementation of a SPI, a cache or an authentication provider without touching the code. We could create dummy methods that instanceate the default OpenCMIS classes. We don’t have to call these methods but it might be enough to satisfy a OSGi runtime.

> OpenCMIS OSGI evolution and build support (Felix vs Tycho)
> ----------------------------------------------------------
>
>                 Key: CMIS-324
>                 URL: https://issues.apache.org/jira/browse/CMIS-324
>             Project: Chemistry
>          Issue Type: Task
>          Components: build&release
>    Affects Versions: 0.2.0-incubating
>            Reporter: Gabriele Columbro
>            Assignee: Gabriele Columbro
>            Priority: Minor
>             Fix For: OpenCMIS 1.0
>
>
> Forked from https://issues.apache.org/jira/browse/CMIS-322 to discuss OSGI support in OpenCMIS.
> Status (after 0.2.0-incuating): 
> all modules are OSGI enabled with the maven-felix-plugin:
> To discuss:
> what's the best option to build OSGI bundles, distribute and update the Maven (2/3) build accordingly?
> See also comments pasted below.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (CMIS-324) OpenCMIS OSGI evolution and build support (Felix vs Tycho)

Posted by "Gabriele Columbro (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000297#comment-13000297 ] 

Gabriele Columbro commented on CMIS-324:
----------------------------------------


Gabriele Columbro added a comment - 28/Feb/11 10:40 Nice to know...I will try it out today, maybe also the -Papache-release mvn release and site procedures (those actually worry me the most). Also, do we have some OSGI enabled modules? And if so, are bundles produced fine with Maven3 or we should consider upgrading to Tycho [1] (not backward compatible and maybe too Eclipse specific)? [1] http://tycho.sonatype.org/

Stephan Klevenz added a comment - 28/Feb/11 11:33
All OpenCMIS modules should be OSGi enabled by the Felix plugin currently. I have started to use OpenCMIS within an OSGi environment based on Tycho and I would be interessted to get better OpenCMIS support for Eclipse (including P2 repositories, updatesite and target definition)
I don't know if such a support can be provided by Felix, too. If yes then I do not see a need for Tycho. In any case the support should be somehow optional

> OpenCMIS OSGI evolution and build support (Felix vs Tycho)
> ----------------------------------------------------------
>
>                 Key: CMIS-324
>                 URL: https://issues.apache.org/jira/browse/CMIS-324
>             Project: Chemistry
>          Issue Type: Task
>          Components: build&release
>    Affects Versions: 0.2.0-incubating
>            Reporter: Gabriele Columbro
>            Assignee: Gabriele Columbro
>            Priority: Minor
>             Fix For: OpenCMIS 1.0
>
>
> Forked from https://issues.apache.org/jira/browse/CMIS-322 to discuss OSGI support in OpenCMIS.
> Status (after 0.2.0-incuating): 
> all modules are OSGI enabled with the maven-felix-plugin:
> To discuss:
> what's the best option to build OSGI bundles, distribute and update the Maven (2/3) build accordingly?
> See also comments pasted below.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CMIS-324) OpenCMIS OSGI evolution and build support (Felix vs Tycho)

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000308#comment-13000308 ] 

Florent Guillaume commented on CMIS-324:
----------------------------------------

The code use in a number of places {{Class.forName}} which is problematic in an OSGi environment.
For instance {{CmisBindingsHelper}} uses it for the SPI class. To have this work in an OSGi runtime you need to have the contributed classes (which can pull a lot of dependencies) be some kind of fragment or buddy. I wonder if there's a better way to do it.


> OpenCMIS OSGI evolution and build support (Felix vs Tycho)
> ----------------------------------------------------------
>
>                 Key: CMIS-324
>                 URL: https://issues.apache.org/jira/browse/CMIS-324
>             Project: Chemistry
>          Issue Type: Task
>          Components: build&release
>    Affects Versions: 0.2.0-incubating
>            Reporter: Gabriele Columbro
>            Assignee: Gabriele Columbro
>            Priority: Minor
>             Fix For: OpenCMIS 1.0
>
>
> Forked from https://issues.apache.org/jira/browse/CMIS-322 to discuss OSGI support in OpenCMIS.
> Status (after 0.2.0-incuating): 
> all modules are OSGI enabled with the maven-felix-plugin:
> To discuss:
> what's the best option to build OSGI bundles, distribute and update the Maven (2/3) build accordingly?
> See also comments pasted below.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (CMIS-324) OpenCMIS OSGI evolution and build support (Felix vs Tycho)

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000308#comment-13000308 ] 

Florent Guillaume edited comment on CMIS-324 at 2/28/11 2:37 PM:
-----------------------------------------------------------------

The code uses in a number of places {{Class.forName}} which is problematic in an OSGi environment.
For instance {{CmisBindingsHelper}} uses it for the SPI class. To have this work in an OSGi runtime you need to have the contributed classes (which can pull a lot of dependencies) be some kind of fragment or buddy. I wonder if there's a better way to do it.


      was (Author: fguillaume):
    The code use in a number of places {{Class.forName}} which is problematic in an OSGi environment.
For instance {{CmisBindingsHelper}} uses it for the SPI class. To have this work in an OSGi runtime you need to have the contributed classes (which can pull a lot of dependencies) be some kind of fragment or buddy. I wonder if there's a better way to do it.

  
> OpenCMIS OSGI evolution and build support (Felix vs Tycho)
> ----------------------------------------------------------
>
>                 Key: CMIS-324
>                 URL: https://issues.apache.org/jira/browse/CMIS-324
>             Project: Chemistry
>          Issue Type: Task
>          Components: build&release
>    Affects Versions: 0.2.0-incubating
>            Reporter: Gabriele Columbro
>            Assignee: Gabriele Columbro
>            Priority: Minor
>             Fix For: OpenCMIS 1.0
>
>
> Forked from https://issues.apache.org/jira/browse/CMIS-322 to discuss OSGI support in OpenCMIS.
> Status (after 0.2.0-incuating): 
> all modules are OSGI enabled with the maven-felix-plugin:
> To discuss:
> what's the best option to build OSGI bundles, distribute and update the Maven (2/3) build accordingly?
> See also comments pasted below.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira