On Wed, October 31, 2007 11:43 am, Michal Paluchowski wrote:

> I have a set of Eclipse plugin projects, which are to be moved to
> Maven-managed building and packaging. Initially the future looked
> bright as I found a perfectly suited article at eclipse.org:

The next issue you need to sort out is the directory structure.

Maven is designed so that each module can be checked out, and built
independently. The project checked out doesn't depend on anything in the
parent directory.

The Eclipse PDE build on the other hand, expects that the eclipse project
is in a directory called "plugins", and will place the build artifacts two
directories up. Oops.

This causes problems when you try and build stuff using continuous
integration. CI tries to check out your plugin, but the parent directories
are missing, and the build breaks.

The solution we found was to keep the directory structure exactly as
eclipse wants it, ie with the plugin directories and all the eclipse
projects grouped under that.

In maven-land, we create pom files for each eclipse plugin, but we also
create a root pom at the same level of the plugins directory with a
multi-module build, that lists each plugin project as submodules of the
root.

When it comes time to build this in continuous intergration, we check out
the root pom project only, and all of the subprojects get checked out in
the correct structure. Because the correct structure is in place, the
build works.

Regards,
Graham
--



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to