felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Pozolotin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-2948) scr-maven-plugin fails with org.maven.ide.eclipse plugin (exploded bundle)
Date Mon, 16 May 2011 21:29:47 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034328#comment-13034328
] 

Andrei Pozolotin commented on FELIX-2948:
-----------------------------------------

1) error complains about missing manifest, etc in target/classes:

5/16/11 4:13:42 PM CDT: [DEBUG] Trying to get manifest from artifact /home/user1/Workspaces/github/carrot-bugger/carrot-bug-scr-maven-plugin-001/target/classes
5/16/11 4:13:42 PM CDT: [DEBUG] Unable to get manifest from artifact /home/user1/Workspaces/github/carrot-bugger/carrot-bug-scr-maven-plugin-001/target/classes
5/16/11 4:13:42 PM CDT: [DEBUG] Trying to get scrinfo from artifact /home/user1/Workspaces/github/carrot-bugger/carrot-bug-scr-maven-plugin-001/target/classes
5/16/11 4:13:42 PM CDT: [DEBUG] ..generating descriptor for spec version: null
5/16/11 4:13:42 PM CDT: [ERROR] Unable to get scrinfo from artifact at /home/user1/Workspaces/github/carrot-bugger/carrot-bug-scr-maven-plugin-001/target/classes:0
5/16/11 4:13:42 PM CDT: Build errors for carrot-bug-scr-maven-plugin-002; org.apache.maven.lifecycle.LifecycleExecutionException:
Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.1-SNAPSHOT:scr (scr) on project
carrot-bug-scr-maven-plugin-002: SCR Descriptor parsing had failures (see log)


2) but first project has them:

#:~/Workspaces/github/carrot-bugger/carrot-bug-scr-maven-plugin-001/target$ ls -R
.:
classes  test-classes

./classes:
case_01  META-INF  OSGI-INF

./classes/case_01:
HostServiceConsumer.class

./classes/META-INF:
MANIFEST.MF

./classes/OSGI-INF:
scr-plugin  serviceComponents.xml

./classes/OSGI-INF/scr-plugin:
scrinfo.xml

./test-classes:


> scr-maven-plugin fails with org.maven.ide.eclipse plugin (exploded bundle)
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2948
>                 URL: https://issues.apache.org/jira/browse/FELIX-2948
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>            Reporter: Andrei Pozolotin
>
> scr-maven-plugin fails with org.maven.ide.eclipse plugin (exploded bundle)
> 1) when you run scr-maven-plugin in the eclipse ide with m2e plugin
> then it seems at first to work fine:
> a) import this project in the eclipse with help of m2e:
> https://github.com/carrot-garden/carrot-bugger/tree/master/carrot-bug-scr-maven-plugin-001
> b) and run "eclipse -> project -> clean"; it produces this success log:
> https://github.com/carrot-garden/carrot-bugger/blob/master/carrot-bug-scr-maven-plugin-001/doc-inf/build-m2e.log
> 2) but when your try
> a) a second project which depends on first:
> https://github.com/carrot-garden/carrot-bugger/tree/master/carrot-bug-scr-maven-plugin-002
> b) then "eclipse -> project -> clean" now produces the following failure log:
> https://github.com/carrot-garden/carrot-bugger/blob/master/carrot-bug-scr-maven-plugin-002/doc-inf/build-m2e.log
> 3) this is because scr-maven-plugin expects dependency to be in the jar form
> but m2e instead (and appropriately) provides a path to the exploded bundle in the ./target/classes
> of the dependency project (if it is a workspace project);
> 4) the workaround is to disable workspace project resolution in m2e
> but this impedes development speed considerably

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

Mime
View raw message