Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Trace Compass Plug-In Build

Perfect! Thanks Bernd. That's the answer I needed.

I usually manage my dependencies with Eclipse's interface. For some reason it does not always refresh all the accessible resources and I didn't see the needed package there. Because of that I decided that I did something wrong.

Thanks!

--
Best regards,
Ivan Grinenko
Software Engineer
Auriga


From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> On Behalf Of Bernd Hufmann via tracecompass-dev
Sent: Tuesday, January 25, 2022 12:27 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Cc: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Trace Compass Plug-In Build

Hi Ivan

Glad to hear that you were able to get the build working. 

Now that it's possible to load the target successfully, you will need to depend on the plug-in in the relevant MANIFEST.MF file. To bundle it in the RCP you will have to add it to the feature.xml of the RCP feature (org.eclipse.tracecompass.incubator.rcp). 

I hope this information helps.

Regards,
Bernd





________________________________________
From: tracecompass-dev <mailto:tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Grinenko, Ivan <mailto:ivan.grinenko@xxxxxxxxxx>
Sent: January 24, 2022 3:13 PM
To: tracecompass developer discussions <mailto:tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Trace Compass Plug-In Build 
 
Ok. My bad. I didn't notice initially, that if you edit a target file with Eclipse's target definition editor it saves Maven locations like this:
        <location includeDependencyScope="provided" includeSource="true" missingManifest="generate" type="Maven">
                <dependencies>
                        <dependency>
                                <groupId>org.xerial</groupId>
                                <artifactId>sqlite-jdbc</artifactId>
                                <version>3.36.0.3</version>
                                <type>jar</type>
                        </dependency>
                </dependencies>
        </location>
instead of this:
        <location includeDependencyScope="provided" includeSource="true" missingManifest="generate" type="Maven">
                <groupId>org.xerial</groupId>
                <artifactId>sqlite-jdbc</artifactId>
                <version>3.36.0.3</version>
                <type>jar</type>
        </location>

I've edited my target, now it builds ok. Still, I don't see the wanted org.xerial.sqlite in the 'plugins'-folder of the Incubators build as I expected and my code that depends on it does not work.

What can I miss here?

Thanks!

--
Best regards,
Ivan Grinenko
Software Engineer
Auriga



-----Original Message-----
From: Grinenko, Ivan 
Sent: Monday, January 24, 2022 7:13 PM
To: mailto:tracecompass-dev@xxxxxxxxxxx
Subject: Trace Compass Plug-In Build

Hi,

I'm trying to add a new dependency to my plugin. I could not find any public p2 with it (SQLite), so, I'd like to add it from a Maven repo. I noticed that Incubator's target already has some declaration pointing to Maven and I copied that target adding my dependencies there. The first try failed with warnings like "Target location type 'Maven' is not supported". I checked tycho's version. Mine was 1.4.0 as opposed to the Incubator's 2.3.0. I updated tycho's version in my pom.xml Now the build fails with this error: "Invalid syntax in target definition C:\dev\...\tracecompass-incubator-master.target: Missing child element 'groupId'"

Can I have a hint on what else I need to take into account, please?

Thanks!

--
Best regards,
Ivan Grinenko
Software Engineer
Auriga


_______________________________________________
tracecompass-dev mailing list
mailto:tracecompass-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tracecompass-dev


Back to the top