You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2017/06/29 16:02:00 UTC

[jira] [Comment Edited] (FELIX-5660) DM r11 does not build after clean

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

Pierre De Rop edited comment on FELIX-5660 at 6/29/17 4:01 PM:
---------------------------------------------------------------

Thanks Jan WIllem, but this is a known issue which I don't currently know how to resolve, and in the meantime, the document from [1] indicates that you first need to build the annotation before being able to build all the other bundles.

Now, let me explain the issue: in the dependencymanager, we have a bnd plugin (org.apache.felix.dependencymanager.annotation), and the org.apache.felix.dependencymanager.runtime.itest then uses the plugin in order to run annotation tests.

so far so good. 

but the problem is that if I declare the dm.annotation plugin using the -pluginpath, then the build always fails because the dm.annotation jar is not available.

so, because of the above issue, I'm using the following declaration in the org.apache.felix.dependencymanager.itest/bnd.bnd file:

{code}
-plugin: org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin;log=debug;\
                 path:=${workspace}/org.apache.felix.dependencymanager.annotation/generated/org.apache.felix.dependencymanager.annotation.jar
{code}

so, at the very first time, when you build for the first time, the plugin is not loaded in the classpath, and the compilation of org.apache.felix.dependencymanager.runtime.itest bundle miserably fails. And you then have to re-launch a gradle jar, and at this point, the runtime.itest will be built because the dm.annotation plugin is then available and loaded in the classpath.

I don't currently know how to resolve this issue, and I will ask the question on the bndtools mailing list.

thank you;

[1] https://svn.apache.org/repos/asf/felix/trunk/dependencymanager/release/resources/src/


was (Author: pderop):
Thanks Jan WIllem, but this is a known issue which I don't currently know how to resolve, and in the meantime, the document from [1] indicates that you first need to build the annotation before being able to build all the other bundles.

Now, let me explain the issue: in the dependencymanager, we have a bnd plugin (org.apache.felix.dependencymanager.annotation), and the org.apache.felix.dependencymanager.runtime.itest then uses the plugin in order to run annotation tests.

so far so good. 

but the problem is that if I declare the dm.annotation plugin using the -pluginpath, then the build always fails because the dm.annotation jar is not available.

so, because of the above issue, I'm using the following declaration in the org.apache.felix.dependencymanager.itest/bnd.bnd file:

{code}
-plugin: org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin;log=debug;\
                 path:=${workspace}/org.apache.felix.dependencymanager.annotation/generated/org.apache.felix.dependencymanager.annotation.jar
{code}

so, at the very first time, when you build for the first time, the plugin is not loaded in the classpath, and the compilation of org.apache.felix.dependencymanager.runtime.itest bundle miserably fails. And you then have to re-launch a gradle jar, and at this point, the runtime.itest will be built because the dm.annotation plugin is then available and loaded in the classpath.

I don't know currently how to resolve this issue, and I will ask the question on the bndtools mailing list.

thank you;

[1] https://svn.apache.org/repos/asf/felix/trunk/dependencymanager/release/resources/src/

> DM r11 does not build after clean
> ---------------------------------
>
>                 Key: FELIX-5660
>                 URL: https://issues.apache.org/jira/browse/FELIX-5660
>             Project: Felix
>          Issue Type: Bug
>          Components: Dependency Manager
>    Affects Versions: org.apache.felix.dependencymanager-r11
>            Reporter: J.W. Janssen
>
> Trying to build the DM sources from scratch fails the first time (also after a `clean`) with the following error:
> {code}
> :org.apache.felix.dependencymanager.runtime:build
> :org.apache.felix.dependencymanager.runtime.itest:compileJava
> Error  : Exception: java.lang.ClassNotFoundException: org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin not found, parent:  java.net.URLClassLoader@258ee7de urls:[file:/private/tmp/felix-staging/org.apache.felix.dependencymanager-r11/org.apache.felix.dependencymanager-r11-src/org.apache.felix.dependencymanager.annotation/generated/org.apache.felix.dependencymanager.annotation.jar] exception:java.lang.ClassNotFoundException: org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin
> Error  : Failed to load plugin org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin;log=debug;path:="/private/tmp/felix-staging/org.apache.felix.dependencymanager-r11/org.apache.felix.dependencymanager-r11-src/org.apache.felix.dependencymanager.annotation/generated/org.apache.felix.dependencymanager.annotation.jar", error: java.lang.ClassNotFoundException: org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin not found, parent:  java.net.URLClassLoader@258ee7de urls:[file:/private/tmp/felix-staging/org.apache.felix.dependencymanager-r11/org.apache.felix.dependencymanager-r11-src/org.apache.felix.dependencymanager.annotation/generated/org.apache.felix.dependencymanager.annotation.jar] exception:java.lang.ClassNotFoundException: org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin
> Error  : Cannot load the plugin org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin
> :org.apache.felix.dependencymanager.runtime.itest:compileJava FAILED
> FAILURE: Build failed with an exception.
> {code}
> The build is successful after re-running it again after this exception.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)