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