Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mat-dev] updated build instructions?

Thanks Krum, I appreciate the response.  yeah, I should have thought about what the names of those profiles a bit before I just used them blindly, huh?

I did see exactly the issue you mentioned with my first attempt.  I also tried using mvn 3.0.3 (since that is what I saw hudson was using), and it also didnt' work for me -- though perhaps I had something else weird with my setup at the time as I was trying all sorts of stuff.

But in any case, I think you are right, I don't think I'll be able to use it since its so tightly coupled to eclipse.  I was under the impression from this page: http://wiki.eclipse.org/MemoryAnalyzer/Reading_Data_from_Heap_Dumps  that you could use it by itself, but now I see that's not possible.

thanks for the help in any case!
Imran


On Wed, Dec 16, 2015 at 2:04 AM, Tsvetkov, Krum <krum.tsvetkov@xxxxxxx> wrote:

Hi Imran,

 

The build-server profile, triggers some plugins which could only build on the Eclipse infrastructure (signing the plugins). You should not use it when building locally.

 

What kind of issues did you have withouth adding these profiles? I tried building locally and noticed the following issue, but I  can’t be sure if this is the one you saw:

When building with a recent mvn version, I got:

  Exception in thread "main" java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;

 

The reason is that in the pom files we still reference an older Tycho version (need to move to a newer one on our side). As a workaround I used locally an older mvn version – 3.0.4. Using it I could build the latest state in “master” without any additional params (just mvn clean install).

 

Finally, I am not quite sure that even if you build MAT, you will be able to use it outside Eclipse. At runtime MAT uses some of the Eclipse specifics - extension points and extensions – to find the set of queries, parsers, etc…

 

Hope this helps.

 

Regards,

Krum

 

 

From: mat-dev-bounces@xxxxxxxxxxx [mailto:mat-dev-bounces@xxxxxxxxxxx] On Behalf Of Imran Rashid
Sent: Dienstag, 15. Dezember 2015 23:49
To: mat-dev@xxxxxxxxxxx
Subject: [mat-dev] updated build instructions?

 

Hi,

 

I'm new to MAT, trying to build it with maven following these instructions:

 

 

However, that build failed.  Eventually I found that the build command on hudson included profiles, so then I tried building with

 

mvn -P build-server,build-kepler-rcp -Dskip-ui-tests clean install

this still failed with

[ERROR] Failed to execute goal org.eclipse.cbi.maven.plugins:eclipse-jarsigner-plugin:1.0.5:sign (sign) on project org.eclipse.mat.report: Could not sign artifact org.eclipse.mat:org.eclipse.mat.report:eclipse-plugin:1.5.0-SNAPSHOT: Connection to http://build.eclipse.org:31338 refused: Operation timed out -> [Help 1]

just the "compile" goal did succeed, though.  I'm not sure why "install" is trying to sign the artifacts -- I just want a locally published jar.  It did work after I changed the phase of the "sign" execution to "deploy", instead of "verify". 

Finally, the "updatesite" & "rcp" modules failed to build with

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (deploy) on project org.eclipse.mat.updatesite: An Ant BuildException has occured: Directory does not exist: /home/data/httpd/download.eclipse.org/mat/snapshots/update-site

I didn't care about those modules, so I just removed it from the parent pom, but maybe there should be another fix for that too? Should the build instructions be updated, or am I doing something else wrong?

If it matters at all, I am trying to publish a jar locally because I want to access MAT from within another java program, not as a plugin at all.

thanks,

Imran


_______________________________________________
mat-dev mailing list
mat-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mat-dev


Back to the top