Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » MAT dependency(Adding Maven dependency to MAT)
MAT dependency [message #1794375] Wed, 29 August 2018 18:36 Go to next message
Erez Alon is currently offline Erez AlonFriend
Messages: 1
Registered: August 2018
Junior Member
I building MAT with maven and wondered how to add an external dependency to it (such as guava or other).
From some reason editing the pom file and adding the relevant dependencies from maven central don't work. The dependency does being downloaded, but the import fails.
The only work around for this (which was a bad one) was to create a .classpath file to point on the
downloaded jar (within the .m2 directory).
I know that MAT's build.sh is setting a specific repository and not using the default one.
I have tried both using it as is and removing the locally configured repository, but remained with the same issue.

Appreciate any help/pointers with it
Re: MAT dependency [message #1794562 is a reply to message #1794375] Mon, 03 September 2018 06:45 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 141
Registered: July 2009
Senior Member
I can't help much with this as Krum set up the Maven build, and I just use it. MAT uses p2 to get its dependencies for the target platform.

The target platform includes:

  • Eclipse Photon
  • Eclipse Orbit
  • IBM DTFJ - just for building the MAT DTFJ plugin, but not shipped
  • SWTBot - for testing


You could look at a build log to see how a normal build works:
https://ci.eclipse.org/mat/job/tycho-mat-nightly

Perhaps making Guava as a p2 repo would help: https://stackoverflow.com/questions/17230348/is-there-a-official-p2-repository-for-the-google-guava-library

There is a Wiki page Building MAT With Tycho but it doesn't answer your question.

How would your final product be packaged? Would the external dependency be a jar built into an Eclipse bundle - or would it be another bundle?

Re: MAT dependency [message #1795120 is a reply to message #1794562] Sat, 15 September 2018 08:10 Go to previous message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 141
Registered: July 2009
Senior Member
If you just wanted Guava then changing the target platform to reference a more recent version of Orbit could get you that.
http://git.eclipse.org/c/orbit/orbit-recipes.git/tree/
http://git.eclipse.org/c/orbit/orbit-recipes.git/tree/google
http://git.eclipse.org/c/mat/org.eclipse.mat.git/tree/org.eclipse.mat.targetdef/mat-photon.target
Previous Topic:MAT report from command line
Goto Forum:
  


Current Time: Sun Sep 23 04:50:26 GMT 2018

Powered by FUDForum. Page generated in 0.03039 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top