easysoa/EasySOA — Issue #80: Improve build system
Author: tiry
Created: 2011-12-28 13:46:12+00:00
State: open

I just did a fresh build on a clean computer and had some issues.

May be it's my fault, but anyway, it always good to share this kind of feedback, so here I go.

The main problems were on Frascati.
The build maven plugins used by Frascati are 1.5 SNAPSHOT are not available anywhere.

So I build frascati source code (trunk).
I tried to build only the maven plugins but that was not enought, so I built everything.

For that I had to remove the http://www.openarchitectureware.org/m2 repository that is very very very slow (if not down for real), but it seems to be directly referenced from some of the frascati artifacts poms ...

=> I had to add www.openarchitectureware.org to my /etc/hosts to make it resolve to 127.0.0.1 because I did not want to spend all day waiting for mvn to complete timeout

In addition of pointing eclipse repo to 127.0.0.1, I also had to add the Maven Nuxeo repo to be able to get the eclipses deps.

=> With that in place, I have a frasacti build working

On Easy SOA Build there seem to be some issues too.

For example :

[INFO] Building EasySOA HTTP Discovery Proxy
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.easysoa.registry:easysoa-registry-api:jar:0.4-SNAPSHOT

=> I changed the pom to point to org.easysoa.registry.api:easysoa-registry-api-core + remote and added JSOn dep

Looks like there are also some api changes, so I changed quickly the code so that I can build.

==> I get a EasySOA build working

==> I can mvn eclipse:eclipse and import the projects into eclipse :)

So, I got everthing building in command line and in Eclipse at about 4:30 PM :)

I am clearly not a Maven expert, but I spent several hours to try to get the build to run.

=> If needed I can ask our devops to have a look at this when he is back ...

NB : in the CI chain, it may be worth adding a build from a clean repository : this helps finding out this kind of problem that you probably don't have in local (we did that for Nuxeo for the exact same reason).

- because the old artifact org.easysoa.registry:easysoa-registry-api:jar:0.4-SNAPSHOT probably existed at some point in time

- because you have installed a lot of frascati stuffs