From continuum-users-return-2466-apmail-maven-continuum-users-archive=maven.apache.org@maven.apache.org Fri Aug 18 06:25:09 2006
Return-Path:
Delivered-To: apmail-maven-continuum-users-archive@www.apache.org
Received: (qmail 38572 invoked from network); 18 Aug 2006 06:25:09 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 18 Aug 2006 06:25:09 -0000
Received: (qmail 72271 invoked by uid 500); 18 Aug 2006 06:25:08 -0000
Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org
Received: (qmail 72253 invoked by uid 500); 18 Aug 2006 06:25:07 -0000
Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: continuum-users@maven.apache.org
Delivered-To: mailing list continuum-users@maven.apache.org
Received: (qmail 72242 invoked by uid 99); 18 Aug 2006 06:25:07 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 23:25:07 -0700
X-ASF-Spam-Status: No, hits=1.9 required=10.0
tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: 203.193.132.103 is neither permitted nor denied by domain of kagupta@quark.com)
Received: from [203.193.132.103] (HELO Mail.quark.co.in) (203.193.132.103)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 23:25:06 -0700
Received: from EXCH-IND-VS1.india.quark.com ([10.91.0.201])
by Mail.quark.co.in (8.12.8/8.12.8) with ESMTP id k7I6Ifrx032461
for ; Fri, 18 Aug 2006 11:48:41 +0530
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: Resolving Source code dependency among modules?
Date: Fri, 18 Aug 2006 11:53:34 +0530
Message-ID: <2BC68159E3EC814BA1E81C108DF99A420D8294B5@EXCH-IND-VS1.india.quark.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
thread-topic: Resolving Source code dependency among modules?
thread-index: Aca7t/fzuFJMmn3PRue+8kgH0jLJCgABqPXgABy4hiAABQbVgABKI/HQAUeenwA=
From: "Kapil Gupta\(CT\)"
To:
X-Quark-QuarkAntiVirus-Information: Please contact it-networks@quark.co.in for more information
X-Quark-QuarkAntiVirus: Found to be clean
X-Quark-ITnetworks-From: kagupta@quark.com
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
Hi Christian,
Sorry for replying late.
Yes, u guessed it right that source code of module B is a textual
alteration of source code of A. The module A contains local interfaces
and module B contains remote interfaces and remote implementation of my
APIs (Textual change is that all method throws RemoteException and my
business interface extends Remote interface).=20
The output of A is indeed a jar of class files which acts as dependency
for other modules.
I am not clear about your solution to zip the source code and install
them in local repository.
Can I put dependency on source code like we do for classes?
I was thinking of zipping the source code of module A in a predefined
directory under working directory and module B can later unzip and use
it to generate its own source code.
Regards,
Kapil
-----Original Message-----
From: Christian Gruber [mailto:cgruber@israfil.net]=20
Sent: Friday, August 11, 2006 11:22 PM
To: continuum-users@maven.apache.org
Subject: RE: Resolving Source code dependency among modules?
I think I'm a little bit confused by "depends on the source of A". Does
this mean you're using the source-code in A, and treating it like a
template, and doing textual alterations to it within B? This would be a
very unusual situation.
My previous advice was predicated on the assumption that your compiled
code
from A would be the code-generation-tool (or something like that), and
that
the compiled classes could be used in B to do the code-generation in B.
I'm
confused.
What are the outputs of A. Is there a .jar that comes out, or is it
just
.java files? If it's the latter, you may wish to create a new plugin to
zip
up your outputs and install them into the repository, which would then
render them accessible to B. =20
I think we don't have a sufficiently clear context to properly advise
you,
as this is increasingly striking me as a unique project configuration -
and
I can't tell if it could be re-organized to a more standard build
approach,
or whether the current approach is a necessary thing that needs to be
accepted and integrated.
Regards,
Christian.
christian gruber + agile coach and architect
Israfil Consulting Services Corporation
email cgruber@israfil.net + bus +1 (905) 640-1119
cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796
-----Original Message-----
From: Kapil Gupta(CT) [mailto:kagupta@quark.com]=20
Sent: Thursday, August 10, 2006 2:30 AM
To: continuum-users@maven.apache.org
Subject: RE: Resolving Source code dependency among modules?
One more thing, if I move code generation logic to module B, even then I
can't generate source for it as it depends on source code of A.
So just moving the ant/perl script to module B does not solve my
problem.
Since module B uses source code of A and not its compiled classes, I
can't take advantage of dependency mechanism and install A before
building B?
-----Original Message-----
From: Kapil Gupta(CT) [mailto:kagupta@quark.com]=20
Sent: Thursday, August 10, 2006 9:39 AM
To: continuum-users@maven.apache.org
Subject: RE: Resolving Source code dependency among modules?
Thanks for your reply Christian.
But am still unable to understand, how continuum would let me access
directory of module A from module B? If I keep the source code
generating perl scripts in module A, then I cannot access it from B, as
they are not under same root folder. Since continuum gives a numeric
number to their parent folder, I can't hard code this path in my pom.
As Jesse and you have suggested, I should move the code generation logic
with in that module only.
Thanks,
Kapil
-----Original Message-----
From: Christian Gruber [mailto:cgruber@israfil.net]=20
Sent: Wednesday, August 09, 2006 8:01 PM
To: continuum-users@maven.apache.org
Subject: RE: Resolving Source code dependency among modules?
Riffing off of Jesse's comments...
Since the lifecycle of a project is=20
generate-sources
...
compile
...
compile-tests
...
install
the whole notion is really to have generation of code for a module done
within the lifecycle build of that module. One way you might be able to
approach your a->b->c generation approach (knowing nothing about the
details
of your code, mind you) would be this.
Assuming A has code that can be used to generate sources for B,=20
Compile A, and install.
Define A as a compile-only dependency of B (right now there's no such
thing
exactly, but you can use provided scope to wing-it)=20
Bind the generation capabilities of A to the generate-sources phase of
project B (possibly using the ant-run plug-in), to generate B's code
within
the B lifecycle. Then compile the resulting code in B's compile phase,
install, etc.
Define B as a compile-only dependency of C=20
Bind the generation capabilities of B to the generate-sources phase of
project C, to generate C's code within the C lifecycle. Then compile
the
resulting code in C's compile phase, install, etc.
Rinse and repeat.
Regards,
Christian.
christian gruber + agile coach and architect
Israfil Consulting Services Corporation
email cgruber@israfil.net + bus +1 (905) 640-1119
cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796
-----Original Message-----
From: Jesse McConnell [mailto:jesse.mcconnell@gmail.com]=20
Sent: Wednesday, August 09, 2006 9:15 AM
To: continuum-users@maven.apache.org
Subject: Re: Resolving Source code dependency among modules?
that kinda defeats the 1 module/1 artifact convention of maven, each
project is supposed to be self-contained and the dependency mechanism
is the mechanism by which the needed components are referenced.
so continuum isn't going to be able to do that if you have the
individual components broken out like that, they are not
self-contained then. A top lvl build is the best you can hope for in
that case.
I would consider getting that generated code broken out into its own
module and released as its own artifact, then you would be in good
shape.
jesse
On 8/8/06, Kapil Gupta(CT) wrote:
> Yes Jesse..
>
> -----Original Message-----
> From: Jesse McConnell [mailto:jesse.mcconnell@gmail.com]
> Sent: Tuesday, August 08, 2006 8:07 PM
> To: continuum-users@maven.apache.org
> Subject: Re: Resolving Source code dependency among modules?
>
> so you have a process where you are generating source code from one
> module for another module?
>
> p
> p/a/
> p/b/
>
> so you have A actually generating files into the directories for B?
>
> On 8/7/06, Kapil Gupta(CT) wrote:
> > Hi Jesse,
> >
> > My problem is not w.r.t resolving compile time dependencies (class
> file
> > dependencies). But it is actually problem of generating source code
in
> a
> > different module.
> > Since Continuum allocates a number for each module in its working
> > directory, I cannot generate the source code of module B from module
> A.
> > Am using clean package install as my build definition.
> > Regards,
> > Kapil
> >
> > -----Original Message-----
> > From: Jesse McConnell [mailto:jesse.mcconnell@gmail.com]
> > Sent: Tuesday, August 08, 2006 4:34 AM
> > To: continuum-users@maven.apache.org
> > Subject: Re: Resolving Source code dependency among modules?
> >
> > sounds like you need to be having each of the subprojects installing
> > into the local repository so they can be referenced from the other
> > subprojects..
> >
> > ie, the maven process that is running on each of the subprojects is
> > running as some user, and the local repository for that user is not
> > getting the other subprojects installed into it and are therefore
not
> > able to gain access to those generated classes..
> >
> > I had thought that the install was one of the default build
> > definitions, how are you configured for build definitions right now?
> >
> > jesse
> >
> > On 8/7/06, Kapil Gupta(CT) wrote:
> > > Hi,
> > >
> > >
> > >
> > > I have a multi-module (Spring based) project and there is a case
> where
> > > module A is generating source code of module B and module B
> generates
> > > source code of module C. The reason behind this is that I have
> > separated
> > > interfaces of my application in module A and using a perl script
to
> > > generate remote implementations (which internally call local
> > > implementation) in module B. Module B again uses perl scripts to
> > > generate iiop stubs in module C and Soap adapters in module D. All
> > > modules are in parallel i.e. under same parent directory.
> > >
> > >
> > >
> > > Am able to compile and package everything if I use a parent pom to
> > build
> > > all these modules and specify scm tag there only instead of in
each
> > > child pom.
> > >
> > > But in that case I can't build modules individually as there is no
> SCM
> > > tag specified in child modules. Even on specifying scm tag in each
> > > module, I can't generate source code of module B from Module A as
> they
> > > are in parallel directories.
> > >
> > >
> > >
> > > Is there any way I can refer to module B from module A? Is there
any
> > > other way to tackle this kind of situation?
> > >
> > >
> > >
> > > Thanks,
> > >
> > >
> > >
> > > Kapil
> > >
> > >
> > >
> > > CONFIDENTIALITY NOTICE
> > > This e-mail transmission and any documents, files, or previous
> e-mail
> > > messages appended or attached to it, may contain information that
is
> > > confidential or legally privileged. If you are not the intended
> > > recipient, or a person responsible for delivering it to the
intended
> > > recipient, you are hereby notified that you must not read this
> > > transmission and that any disclosure, copying, printing,
> distribution,
> > > or use of the information contained or attached to this
transmission
> > is
> > > STRICTLY PROHIBITED. If you have received this transmission in
> error,
> > > please immediately notify the sender by telephone +91.172.229.9450
> or
> > > return e-mail message kagupta@quark.com
> > > and delete the original
> > > transmission, its attachments, and any copies without reading or
> > saving
> > > in any manner. Thank you.
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > jesse mcconnell
> > jesse.mcconnell@gmail.com
> >
>
>
> --
> jesse mcconnell
> jesse.mcconnell@gmail.com
>
--=20
jesse mcconnell
jesse.mcconnell@gmail.com