On 2/4/07, Brian E. Fox <[EMAIL PROTECTED]> wrote:
I've seen this too. IF you make a change to a parent pom, go to a child and 
build, it won't pick up the change unless you first go and mvn install the 
parent. The docs say maven looks in ../pom.xml but I have found that to not 
always be the case.


Same here.


-----Original Message-----
From: Vincent Massol [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 03, 2007 7:01 AM
To: Maven List
Subject: Modules location not honored when specifying several subdirs?

Hi,

When I build from the top level where my modules are defined, Maven
is looking in the remote repo first even though sources are available
locally for the specified modules.

I have the following in my top level pom.xml:

  <modules>
...
     <module>core/samples/testdata</module>
...
   </modules>
...

Maven tries to download the testdata artifact from the remote repo
first. Thus if I don't have it or run offline, I get an error:

[INFO] Failed to resolve artifact.

GroupId: org.codehaus.cargo
ArtifactId: cargo-samples-testdata
Version: 0.9-SNAPSHOT

Reason: System is offline.

   org.codehaus.cargo:cargo-samples-testdata:pom:0.9-SNAPSHOT



NOTE: Maven is executing in offline mode. Any artifacts not already
in your local
repository will be inaccessible.


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.codehaus.cargo:cargo-samples-testdata for project: null:empty-
jar:jar:null

What's strange is that the erorr says it cannot find the parent for
project empty-jar. Actually in testdata/pom.xml I have:

   <modules>
     <module>empty-jar</module>
...
   </modules>

And it has a correctly defined parent (no relativePath as the parent
is just above it).

Any idea? Is this a bug? Should I create a jira for it?

Thanks
-Vincent






___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

---------------------------------------------------------------------
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