You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kristine Weissbarth <kr...@sourcepark.de> on 2003/05/12 16:36:39 UTC
Executing subprojects first
hello again,
thanks for all the usefull postings. But there is another problem:
my project consists of a master project.xml and several subproject
project.xml files. I'm using inheritance using the <extend> element. But
every time I try to build one of the subprojects e.g. subprojectX ( in
my opinion this is the way to create the subprojectX.jar ) the build
fails because maven tries to download the subprojectX.jar file from the
ibiblio server although the jar just should be created.
How can I fix that maven first executes the subproject.xml and after
that the master?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Executing subprojects first
Posted by Kristine Weissbarth <kr...@sourcepark.de>.
I did overwrite the master dependencies in the subprojects in the
following way:
--- My master project.xml: ---
<dependency>
<groupId>master-project</goupId>
<artifactId> X-subproject</artifactId>
</dependency>
--- and my x-subprojects project.xml: ---
<dependency>
<id>struts</gid>
<version>1.0.2</versiond>
</dependency>
<dependency>
<id>castor</id>
<version>0.9.4.2</versiond>
</dependency>
...
Why should I move the whole dependency element in each subproject, I
thought I have to define each subproject as dependency in the master
project.xml as the master project depends on the subprojects?
Am Mon, 2003-05-12 um 16.37 schrieb Martin Skopp:
> On Mon, 2003-05-12 at 16:36, Kristine Weissbarth wrote:
> > my project consists of a master project.xml and several subproject
> > project.xml files. I'm using inheritance using the <extend> element. But
> > every time I try to build one of the subprojects e.g. subprojectX ( in
> > my opinion this is the way to create the subprojectX.jar ) the build
> > fails because maven tries to download the subprojectX.jar file from the
> > ibiblio server although the jar just should be created.
> >
> > How can I fix that maven first executes the subproject.xml and after
> > that the master?
>
> impossible.
>
> Seems you have declared a dependency for subprojectX.jar in the
> master.xml, right?
> Either you overwrite this in subprojectX.xml or -even better- you move
> the dependency declariation in each subproject.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Executing subprojects first
Posted by Raphaël Piéroni <ra...@yahoo.fr>.
hello,
after making the subproject jar,
try "maven jar:install" it will then be in your local repository
R
--- Kristine Weissbarth <kr...@sourcepark.de> a écrit :
> hello again,
>
> thanks for all the usefull postings. But there is another problem:
>
> my project consists of a master project.xml and several subproject
> project.xml files. I'm using inheritance using the <extend> element.
> But
> every time I try to build one of the subprojects e.g. subprojectX (
> in
> my opinion this is the way to create the subprojectX.jar ) the build
> fails because maven tries to download the subprojectX.jar file from
> the
> ibiblio server although the jar just should be created.
>
> How can I fix that maven first executes the subproject.xml and after
> that the master?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
=====
------------------------------------
| Raphaël Piéroni |
| 33+ 223 351 354 |
| mailto:rpieroni@dexem.com |
| http://www.dexem.com |
| mailing:raphael_mailing@yahoo.fr |
------------------------------------
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org