Wayne, thanks for your reply.
It looks like I have module dependencies set up fine so that 'mvn
compile' and even 'mvn package' work fine at the top level.
However 'mvn assembly:assembly' fails:
Missing:
----------
1) mycompany:A:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=mycompany -DartifactId=A \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) mycompany:B:jar:1.0-SNAPSHOT
2) mycompany:A:jar:1.0-SNAPSHOT
Any ideas?
Thanks
Wayne Fay wrote:
> Yes. Build from a shared parent directory with proper <modules>
> defined in the parent pom -- ie parent\modA, parent\modB (depends on
> A); run "mvn compile" from parent directory.
>
> Otherwise, you'll need to install the modules you have as dependencies.
>
> Wayne
>
> On 3/8/07, Sasha O <[EMAIL PROTECTED]> wrote:
>> Dear All,
>>
>> My project consists of several interdependent modules. Module B depends
>> on module A.
>>
>> When I am trying to build module B Maven complains that the module A was
>> not found in the local repository. I would expect Maven to be able to
>> figure this out automatically -- this is what dependency management is
>> all about, right?
>>
>> Is there a way to build dependencies automatically without requiring me
>> to 'mvn install' them?
>>
>> Thank you,
>> Sasha
>>
>>
>> ---------------------------------------------------------------------
>> 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]