Modules == 2 "projects" or subprojects. Different words for the same
thing, essentially.

The idea is that you put all the jdk1.5 code in one subdirectory
(module), and then the jdk1.4 code in another (module).

Something like:
myproject/pom.xml    with [modules] code15, code14
--myproject/code15/pom.xml
--myproject/code14/pom.xml

This is probably not the only way to get the results you're looking
for, but its certainly the easiest.

Wayne

On 4/3/06, Calum Shaw-Mackay <[EMAIL PROTECTED]> wrote:
> Essentially it's exactly the same source root, just need an extra
> specialised compilation step for a subset of the code.
>
> Could I use modules here?
>
> Thanks
>
> --Calum
>
> On 4/3/06, Milos Kleint <[EMAIL PROTECTED]> wrote:
> > make it 2  projects, that's the general rule of thumb when you have 2
> > different source roots or have rules for parts of the sourcebase (in
> > which case you need to separate the sources).
> >
> > Milos
> >
> > Calum Shaw-Mackay wrote:
> > > Hello
> > >
> > > I'm just starting out using Maven for some of my projects and I have a
> > > couple of questions
> > >
> > > How do I in a my pom.xml indicate that I want a subset of my source
> > > compiled to a separate directory using 1.4, whilst having the whole
> > > source (including the subset) compiled to 1.5 in another directory
> > >
> > > Essentially, this is for jini-like projects where you can run the main
> > > application under 1.5 but clients to the service maybe running under
> > > 1.4
> > >
> > > I then want to add them as separate artifacts; one for the downloaded
> > > files for the service, one for the interfaces that the clients are
> > > compiled against and another for the actual service.
> > >
> > > I'm thinking of using profiles, as a start.....
> > >
> > > Any help or pointers would be greatly appreciated
> > >
> > > Thanks
> > >
> > >    --Calum
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to