[ 
http://issues.apache.org/jira/browse/FELIX-104?page=comments#action_12425912 ] 
            
Francesco Furfari commented on FELIX-104:
-----------------------------------------

Hi,
I found the same problem playing with MOSGi projects.
If you append the module declarations at the bottom of the POM all the mosgi 
jars will be installed with .osgi-bundle extension and the build proccess fails

</modules>
    ...
 
    <module>ipojo</module>
    <module>ipojo.metadata</module>
    <module>ipojo.plugin</module>
    <module>ipojo.arch</module>

    <module>org.apache.felix.mosgi.console.ifc</module>
    <module>org.apache.felix.mosgi.console.component</module>
    <module>org.apache.felix.mosgi.console.gui</module>
    <module>org.apache.felix.mosgi.jmx.agent</module>
    <module>org.apache.felix.mosgi.jmx.httpconnector</module>
    <module>org.apache.felix.mosgi.jmx.registry</module>
    <module>org.apache.felix.mosgi.jmx.remotelogger</module>
    <module>org.apache.felix.mosgi.jmx.rmiconnector</module>
    <module>org.apache.felix.mosgi.managedelements.osgiprobes</module>
    <module>org.apache.felix.mosgi.managedelements.osgiprobes.tab</module>

  </modules>


A quick patch is to move the ipojo declarations to the bottom. Stephan didn't 
have added the modules declaration yet, I don't know why but, as reported, 
installing individualy every single mosgi project  works fine and I'm playing 
with them :-)

> Mixing iPOJO and OSGi projects within a parent maven build project may 
> install jars in maven with unexpected extensions.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-104
>                 URL: http://issues.apache.org/jira/browse/FELIX-104
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: 0.8.0
>            Reporter: John Conlon
>
> When doing a multiproject build of modules that are iPOJO 
> <packaging>ipojo-bundle</packaging> and OSGi 
> <packaging>osgi-bundle</packaging> maven may install a built iPOJO bundle 
> with the extension *.ipojo-bundle or it may install the same bundle with a 
> *.jar extension.  Likewise a OSGi bundle maybe created with the extension 
> *.jar or osgi-bundle.  Building each of these sub-projects individually will 
> always install the created bundles with the *.jar extension.
> Appears to install all bundles with *.jar extension into repo upto the point 
> a different type is encountered. For example if 
> <modules>
>               <module>ipojo.project.1</module>
>               <module>ipojo.project.2r</module>
>               <module>ipojo.project.3</module>
>               <module>osgi.project.1</module>
>               <module>ipojo.project.4</module>
> </modules>
> ipojo.project.1 - 3 would be installed in repo with *.jar extension
> osgi.project.1 would be installed with the *.osgi-bundle extension
> ipojo.project.4 would be installed with the *.ipojo-bundle extension
> Building each of the projects seperately would install each bundle in the 
> repo with *.jar extension.
> Commenting out the osgi.project.1 module above would install all the ipojo 
> bundles in the maven repo with a *.jar extension.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to