You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rafal Hajdacki <ra...@hajdacki.com> on 2006/10/03 15:38:45 UTC

Executing goals without installing artifacts to local repository

Hi,

I have classic multimodule Maven2 J2EE project with following structure:

/master
     /ejb
         pom.xml
     /war
         pom.xml (depends on ejb)
     /ear
         pom.xml (depends on war and ejb)
     pom.xml

>From '/master' directory it is possible to execute 'package' goal without
deploying artifacts to local repository and ear artifact will be created.
However this can't be done from '/master/ear' because Maven fails due to
missing dependency artifacts. Is this intended behaviour?

Second problem is, that when I execute 'eclipse:eclipse' goal from
'/master' directory Maven fails in '/master/ear' module due to missing
dependencies (war, ejb).  Is it eclipse plugin bug or something else?

General question is:
Should all maven plugins support execution of goals from master pom
without installing artifacts of dependent modules to local repository?

Regards,
-- 
Rafal Hajdacki


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Executing goals without installing artifacts to local repository

Posted by Wayne Fay <wa...@gmail.com>.
I can only speak to your first question -- yes this is intended
behavior. You cannot build from /master/ear without previously
installing the ejb and war artifacts.

I don't use the eclipse plugin right now.

Wayne

On 10/3/06, Rafal Hajdacki <ra...@hajdacki.com> wrote:
> Hi,
>
> I have classic multimodule Maven2 J2EE project with following structure:
>
> /master
>     /ejb
>         pom.xml
>     /war
>         pom.xml (depends on ejb)
>     /ear
>         pom.xml (depends on war and ejb)
>     pom.xml
>
> From '/master' directory it is possible to execute 'package' goal without
> deploying artifacts to local repository and ear artifact will be created.
> However this can't be done from '/master/ear' because Maven fails due to
> missing dependency artifacts. Is this intended behaviour?
>
> Second problem is, that when I execute 'eclipse:eclipse' goal from
> '/master' directory Maven fails in '/master/ear' module due to missing
> dependencies (war, ejb).  Is it eclipse plugin bug or something else?
>
> General question is:
> Should all maven plugins support execution of goals from master pom
> without installing artifacts of dependent modules to local repository?
>
> Regards,
> --
> Rafal Hajdacki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org