[EMAIL PROTECTED] schrieb:
"Eric Redmond" <[EMAIL PROTECTED]> wrote on 08/21/2007 12:12:55 PM:
On 8/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
I have a question that I hope isn't too basic. I've been trying to
reconcile the behavior of dependency management with my expectations.
I'll
state in advance that I'm more than willing to admit that my
expectations
might be unrealistic.
We've got a "home grown" dependency mechanism that works as follows:
If
artifact A requires artifact B and artifact B does not exist it builds
artifact B before building artifact A.
That isn't really a dependency mechanism in Maven - that is a module
hierarchy. As long as module B exists in the set of modules along with
A,
and A depends on B, then B will be built first.
Essentially, yes. If the reactor allowed it I would use module
hierarchies.
Can you give a somewhat more specific example what the reactor does not
allow? The scenario you describe above is a fairly standard use-case I
would say. Perhaps a set of minimal example poms and a short description
of what you expect them to do would be helpful.
To further clarify what I'd like to do, I had originally started with
the
<modules> element but quickly ran into this screnario: artifacts A and
B
are built in the same POM (<packaging>pom</packaging>), and both
require
artifact C. This does not make it past the reactor engine, which will
not
allow artifact C to appear more than once.
True - why would you want the same artifact built more than once?
You wouldn't. Our home grown system remembers that you've already visited
the module during this phase and skips it for visits 2 through N.
Maven calculates the dependency tree for the set of reactor projects and
then orders the builds of the projects (modules) in such an order that
all dependencies of a module are available when the module is build.
So what you want to do should be entirely possible with maven out of the
box... Or I totally misunderstand what you want to do.
Is this behavior possible with the <dependencyManagement> tags? So far
it
doesn't seem likely, but perhaps I'm not understanding dependency
management, which brings us back to that start of this message.
I'm not understanding what you want to do. Is what behavior possible?
Making
the reactor build a project twice? If that is your question, then no.
Thanks for the explanation. I didn't think dependency management was the
answer either. I'll have to port our home grown system to a plugin at some
point, or convince management to re-engineer the build process.
Thanks again,
Robert Egan
-Tim
This email message and any attachments may contain confidential,
proprietary or non-public information. The information is intended solely
for the designated recipient(s). If an addressing or transmission error
has misdirected this email, please notify the sender immediately and
destroy this email. Any review, dissemination, use or reliance upon this
information by unintended recipients is prohibited. Any opinions
expressed in this email are those of the author personally.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]