Hi Joerg,

thanks very much for the provided links.
Just let me summarize what I found out, I might have gotten something
wrong.

As far as I can see, there are two possibilities:
1) using maven 1.1-beta-1, maven pom:install creates an installed pom and
installs it into the repository
2) using maven 1.1-beta-1, and the new pom version, it should be possible
(I did not try it, so I do not know whether it actually works) to modify
the extend clause to
<extend>
  <groupId>groupOfProject</groupId>
  <id>project-base</id>
  <version>someVersion</groupId>
</extend>

I did go for 1), because 2) would require that the user who wants to build
from source uses a maven version which can read the new pom version (i.e.
maven 1.0.2 would not do)
However, although the pom is extended for the target pom:install in maven
1.1-beta-1, it is _NOT_ extended for the target dist:build-src. In my
opinion, the same lines of reasoning for extending the pom apply as for
pom:install.

Should I create a jira entry on this ?

     Thomas

Jörg Schaible <[EMAIL PROTECTED]> schrieb am 07.07.2005
15:09:44:

> Hi Thomas,
>
> Thomas Fischer wrote on Thursday, July 07, 2005 2:17 PM:
>
> > Hi,
> >
> > We have two almost separate projects, which do not depend
> > upon each other. However, they are released together, have
> > the same issue tracker, share the same CVS module, the
> > developers are the same etc. So to reflect this, a
> > project-base was created which contained the common
> > information. The project.xml of both projects extend the project-base.
> >
> > The project structure is as follows
> >
> >> - project.xml (project1)
> >> - project-base-xml (project1)
> >> - subdirectory
> >>             |-project.xml (project2)
> >
> > so in the project.xml of project2, we have
> > <extends>../project-base.xml</extends>
> >
> > This all works well during building, but when maven
> > dist:build-source (in maven 1.0.2) is executed, the
> > project.xml in the source distribution is invalid because it
> > extends ../project-base, which is (obviously) not copied into
> > the source release. Even if I created a pre-goal which would
> > copy it, the path to it would still be wrong.
> >
> > Having two totally separated project.xml will certainly lead
> > to a mess sooner or later because people will tend to update
> > just one project.xml and forget about the other one. Are
> > there any better solutions to that ?
>
> http://jira.codehaus.org/browse/MAVEN-1390
> and related. Also
> http://jira.codehaus.org/browse/MPPOM-1 and
> http://jira.codehaus.org/browse/MPPOM-4 (allthough this one was
> deleted in JIRA by someone)
>
> - Jörg
>
> ---------------------------------------------------------------------
> 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]

Reply via email to