felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"
Date Mon, 02 May 2011 14:33:03 GMT

     [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler updated FELIX-2878:
------------------------------------

          Component/s:     (was: Maven Bundle Plugin)
    Affects Version/s:     (was: maven-bundle-plugin-2.1.0)
                       scr generator 1.1.0

> scr- and bundle-plugin in multimodule project fails with goal "test"
> --------------------------------------------------------------------
>
>                 Key: FELIX-2878
>                 URL: https://issues.apache.org/jira/browse/FELIX-2878
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, scr generator 1.1.0
>            Reporter: Konrad Windszus
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.7.2, scr generator 1.1.2
>
>         Attachments: multimoduleosgi.zip, out.log
>
>
> If I have a multimodule project with several OSGi bundles, which all use the scr plugin,
there is an error during "mvn test". This is due to the scr plugin being bound to the phase
"generate-resources" and maven-bundle plugin generating the manifest only in the package phase.
If I have modules A and B (both packaging "bundle"), B depends upon A and building the multimodule
with "mvn test" there is an error, because during the scr goal of B, it looks for the manifest
of A, which is apparently not there, since it is not  constructed with "test".
> The error message is as follows:
> ...<during the "test" of module B>...
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 13 source files to<path of module B>\target\classes
> [INFO] [scr:scr {execution: generate-scr-descriptor}]
> [ERROR] Unable to get manifest from artifact at <path of module A>\target\classes:0
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] SCR Descriptor parsing had failures (see log)
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 44 seconds
> [INFO] Finished at: Thu Mar 10 10:43:58 CET 2011
> [INFO] Final Memory: 93M/237M
> [INFO] ------------------------------------------------------------------------

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

Mime
View raw message