On 22 Jul 2008, Taras Lipatov wrote:

> Thanks for the info!!
> 
> So I guess I have an odd-ball case with my artifacts..
> Here is the full scenario.
> I have a project with 2 modules:
> 
> `-- project-parent
>     |-- pom.xml
>     |-- core
>     |   `-- pom.xml
>     `-- webapp
>         `-- pom.xml
> 
> project-parent:
>  - packaging pom
> 
> core:
>  - artifact: core:1.0.0-SNAPSHOT
>  - packaging jar
>  - also uses assembly:single to create a core-1.0.0-SNAPSHOT.zip
> containing various static content..

So you configured your core module to generate a JAR and a ZIP file on a
execution of mvn install, correct?

I guess you have some good reason the create the ZIP file. Have you?

> webapp:
>  - packaging war
>  - depends on core:1.0.0-SNAPSHOT.jar and core-1.0.0-SNAPSHOT.zip

Is depending on core-1.0.0-SNAPSHOT.jar not enough? This should probably
work out of the box.

> The "webapp" module cannot resolve core-1.0.0-SNAPSHOT.zip, unless I mvn
> install the "core" module. I take it that .zip format is completely
> unsupported? And I take it that only the artifact that's generated by
> the pom (not assembly) will resolve?

I don't know if it's possible to use the ZIP file if it comes from
another build in the same multi-module project. But at least you would
need some extra configuration.

hth,
- martin

Attachment: signature.asc
Description: PGP signature

Reply via email to