Dennis,

When you want to package something in the jar this can be done using
the tags provided in your project.xml (assuming u use maven 1.x) i
guess there must be something similair in maven 2

<resources>
   <resource>
      ...
      jar file description needed
      ...
   </resource>
</resources>

Regards,
Alex

On 3/29/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
> On Wed, 2006-03-29 at 13:32 +0200, Dennis Kempin wrote:
> > Hello,
> >
> > I just discovered maven and I am really impressed by this project!
> > To migrate my project to maven I am searching for a way to create two jar
> > files in one project.
> >
> > I would like to have a "./src/main/api" folder besides "./src/main/java"
> > and pack them into two different jars, to provide a single jar that only
> > contains the API that is needed to use my library.
> >
> > For now I use two seperated projects "core" and "core-api" while "core"
> > depends on "core-api". This also works great, but I think it would be more
> > elegant to have the API in the same project that will create a
> > "core-api-version.jar" besides the "core-version.jar".
> >
> > Do you think that it is possible? Or do you think I should stay at the
> > seperated projects due to some reasons (Maybe because implementation
> > versions can change while API versions stay at a specific version).
>
> I think you'll find it very difficult to have one maven project for
> this. Maven really is designed for one project --> one output artefact.
>
> Anyway, you must have had a reason for separating api from core in the
> first place, yes? Presumably you either expect multiple implementations
> of the api or multiple releases of the implementation without changing
> the api. In either case, having separate projects seems to me to be much
> *better* than having one project.
>
> Regards,
>
> Simon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to