You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2011/03/11 09:18:59 UTC

[jira] Created: (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

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 Bundle Plugin, Maven SCR Plugin
    Affects Versions: maven-bundle-plugin-2.1.0,  maven-scr-plugin-1.6.0
            Reporter: Konrad Windszus


If I have a multimodule project with several OSGi bundles, which all use the scr plugin, there is an error during the an "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) and 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

[jira] Updated: (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Konrad Windszus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated FELIX-2878:
-----------------------------------

    Description: 
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] ------------------------------------------------------------------------

  was:
If I have a multimodule project with several OSGi bundles, which all use the scr plugin, there is an error during the an "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) and 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] ------------------------------------------------------------------------


> 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 Bundle Plugin, Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, maven-bundle-plugin-2.1.0
>            Reporter: Konrad Windszus
>
> 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

[jira] [Commented] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Andrei Pozolotin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031755#comment-13031755 ] 

Andrei Pozolotin commented on FELIX-2878:
-----------------------------------------

http://felix.apache.org/site/apache-felix-maven-scr-plugin-use.html

currently does not document this plugin property:

    /**
     * @parameter expression="${project.build.directory}/scr-plugin-generated"
     * @required
     * @readonly
     */
    private File outputDirectory;


> 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

[jira] Updated: (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Konrad Windszus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated FELIX-2878:
-----------------------------------

    Attachment: multimoduleosgi.zip

Attached is an example multimodule with two OSGi modules, where modulea depends upon moduleb

> 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 Bundle Plugin, Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, maven-bundle-plugin-2.1.0
>            Reporter: Konrad Windszus
>         Attachments: multimoduleosgi.zip
>
>
> 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

[jira] [Assigned] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler reassigned FELIX-2878:
---------------------------------------

    Assignee: Carsten Ziegeler

> 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 Bundle Plugin, Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, maven-bundle-plugin-2.1.0
>            Reporter: Konrad Windszus
>            Assignee: Carsten Ziegeler
>         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

[jira] Commented: (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005560#comment-13005560 ] 

Carsten Ziegeler commented on FELIX-2878:
-----------------------------------------

Could you please run Maven with the -e switch and attach the exception stacktrace to this bug?

Thanks

> 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 Bundle Plugin, Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, maven-bundle-plugin-2.1.0
>            Reporter: Konrad Windszus
>
> 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

[jira] [Commented] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Andrei Pozolotin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031533#comment-13031533 ] 

Andrei Pozolotin commented on FELIX-2878:
-----------------------------------------

Carsten: which maven repo do you publish your snapshots to? thanks. Andrei.

> 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

[jira] [Closed] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-2878.
-----------------------------------


> 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

        

[jira] [Updated] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ 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

[jira] [Commented] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Andrei Pozolotin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13024796#comment-13024796 ] 

Andrei Pozolotin commented on FELIX-2878:
-----------------------------------------

I have similar symptoms for m2e background build runs (edit/save java file from src/test/java in a project with scr annotations):

4/25/11 8:44:02 AM CDT: [ERROR] Unable to get manifest from artifact at /home/user1/Workspaces/barchart-3.6-work/test-osgi/pom/compiled/osgi-hello-0/target/classes:0
4/25/11 8:44:02 AM CDT: Build errors for osgi-hello-1; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.0:scr (generate-scr-scrdescriptor) on project osgi-hello-1: SCR Descriptor parsing had failures (see log)

command line mvn invocations work fine.

> 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 Bundle Plugin, Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, maven-bundle-plugin-2.1.0
>            Reporter: Konrad Windszus
>         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

[jira] [Resolved] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-2878.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: scr generator 1.1.2
                   maven-scr-plugin-1.7.2

I've applied a fix for this in revision 1098597

> 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

[jira] [Commented] (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031689#comment-13031689 ] 

Carsten Ziegeler commented on FELIX-2878:
-----------------------------------------

Hi,

the snapshots should be available from

https://repository.apache.org/content/repositories/snapshots/

> 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

[jira] Updated: (FELIX-2878) scr- and bundle-plugin in multimodule project fails with goal "test"

Posted by "Konrad Windszus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated FELIX-2878:
-----------------------------------

    Attachment: out.log

Attached is the maven log of mvn clean test -e

> 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 Bundle Plugin, Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, maven-bundle-plugin-2.1.0
>            Reporter: Konrad Windszus
>         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