Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Build problems with recent platform4.11-I-builds

Hi,

Thanks, Carsten for the suggestions.

I was able to fix the build by changing the way that the Trace Compass plug-ins reference the o.e.jdt.annotation bundle. We used the following lines in the build.properties:
additional.bundles = org.eclipse.jdt.annotation
jars.extra.classpath = platform:/plugin/org.eclipse.jdt.annotation

Now, I removed the 2 lines added the following as Required-Bundle to the MANIFEST.MF file:
org.eclipse.jdt.annotation;bundle-version="[2.0.0,3.0.0)";resolution:=optional

According to the JDT documentation [1] this is the recommended way.

How did I find this? Well, I noticed that all our core plug-ins (non-ui) didn't have the problem and all our UI plug-ins did. Then I checked all the commits in the platform UI repositories, and I found a commit [2] that added the o.e.jdt.annotation as optional bundle reference. So, I tried the same and it works [3]. Why and whether this change in the platform lead to the build failure, I don't really know. Right now, I'm glad that I'm able to create a successful build which we will need for the 2019-03 M3 contribution.

Best Regards
Bernd

[1] https://help.eclipse.org/2018-12/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/task-using_null_annotations.htm&cp=1_3_9_0_2&anchor=buildpath_setup
[2] https://git.eclipse.org/r/#/c/133991/
[3] https://git.eclipse.org/r/#/c/137047/


-----Original Message-----
From: cross-project-issues-dev-bounces@xxxxxxxxxxx <cross-project-issues-dev-bounces@xxxxxxxxxxx> On Behalf Of Carsten Reckord
Sent: February-15-19 5:09 AM
To: Cross project issues <cross-project-issues-dev@xxxxxxxxxxx>
Subject: Re: [cross-project-issues-dev] Build problems with recent platform4.11-I-builds

Hi Bernd,

> I still try to understand why the change in my target definition to 
> use a different platform updates site causes this particular failure 
> while using the same java, tycho and Trace Compass version. I don't see the connection.

You could use mvn -X -Dtycho.debug.resolver=true to compare the effective target platforms used by Tycho for the broken projects. 

However, looking at your configuration, you are using the jdt.annotations bundle from the running platform, i.e. Tycho, not your target platform, so I'm not sure if that would help...

Best of luck,
Carsten
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cross-project-issues-dev


Back to the top