On Mon, 24 Oct 2005, Meg Hsu wrote:

> Hi all,
>  My project has several sub-projects, each project has the following
> structure:
>  /module1/src/... /module1/api
>  ... /module1/impl
>  I need to have one jar for the api classes only, and the other of the impl
> classes.
> Any suggestions on how to do this on M2?
> I was using the compiler-plugin's include/exclude, but then I have to have 2
> pom.xml files.
>  There are also tests that need to be ran for the project.
>  Thanks.


This isn't a recommended project structure. Attachments (that's
what we call it) do exist though, for instance for an ejb project
(the ejb-jar is the main jar, and there's an ejb-client jar with just
the interfaces).

If you separate the api and the impl, there must be a reason for it,
like supporting multiple impls. In that case I'd recommend splitting the
project up. Even if you distribute the api classes to a client and keep
the impl on a server, it's worth separating the projects.

-- Kenney

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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

Reply via email to