You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Ament <my...@gmail.com> on 2011/04/12 21:49:51 UTC

Multimodule project installs the pom first?

I think I have an issue with my project.  I'm running it under maven 2.2.1
but it seems to do the same in 3.0.3

I have a multimodule project that involves 1 jar file (common) and 3 war
files.  When the project builds, the pom file for the parent installs first,
then the jar file then the war files.  When the war files build, they don't
seem to know about the jar file from the current version, instead tries
reading from the repository.  This means I have to execute every build
twice.

I have other multimodule projects that this seems to work fine on, but not
one in this particular configuration.  Is there anyway to force maven to
always read the local jar file?

Re: Multimodule project installs the pom first?

Posted by John Ament <my...@gmail.com>.
Well, I just saw in another thread a reference to
http://jira.codehaus.org/browse/MSITE-171 which seems to be what I'm seeing
when using release, but obviously I'm not using site in this case.

On Wed, Apr 13, 2011 at 3:58 AM, Karl Heinz Marbaise <ka...@soebes.de> wrote:

> Hi,
>
>
> John Ament wrote:
> >
> > I have a multimodule project that involves 1 jar file (common) and 3 war
> > files.  When the project builds, the pom file for the parent installs
> > first,
> > then the jar file then the war files.  When the war files build, they
> > don't
> > seem to know about the jar file from the current version, instead tries
> > reading from the repository.  This means I have to execute every build
> > twice.
> If you you delete the artifacts from your locale maven repository and try
> to
> do
> a maven clean package does this work?
>
> If no you have an issue with dependencies within your project.
>
> Kind regards
> Karl Heinz Marbaise
>
>
> -----
> Kind regards
> Karl Heinz Marbaise
> ----
> http://www.soebes.de
> http://www.skmwiki.de
> http://supose.org/wiki/supose
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Multimodule-project-installs-the-pom-first-tp4299015p4300019.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Multimodule project installs the pom first?

Posted by Karl Heinz Marbaise <ka...@soebes.de>.
Hi,


John Ament wrote:
> 
> I have a multimodule project that involves 1 jar file (common) and 3 war
> files.  When the project builds, the pom file for the parent installs
> first,
> then the jar file then the war files.  When the war files build, they
> don't
> seem to know about the jar file from the current version, instead tries
> reading from the repository.  This means I have to execute every build
> twice.
If you you delete the artifacts from your locale maven repository and try to
do 
a maven clean package does this work?

If no you have an issue with dependencies within your project.

Kind regards
Karl Heinz Marbaise


-----
Kind regards
Karl Heinz Marbaise
----
http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: http://maven.40175.n5.nabble.com/Multimodule-project-installs-the-pom-first-tp4299015p4300019.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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