Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-5
-
Fix Version/s: 2.0-beta-5
-
Component/s: None
-
Labels:None
-
Environment:Windows XP, Eclipse Workspace
-
Number of attachments :
Description
I tried to release a multiproject with 5 modules (on a Branch). Well,
the POMs of all modules are changed and there are some dependencies
which have been updated correctly. But only the master has been checked
in correctly.
I'm changed the recommended layout, to fit in an eclipse workspace. I
have one master at the same level as the other modules.
The module section of the master pom.xml:
<modules>
<module>../hhla.library.pom</module>
<module>../hhla.library.site</module>
<module>../hhla.lang</module>
<module>../hhla.common.log4jx</module>
</modules>
Issue Links
- is duplicated by
-
MRELEASE-138
release:prepare fails when checking in modified POMs of a multi-modules project
-
-
CONTINUUM-462
Relative path not honoured in cvs commands for flat project layout
-
-
MRELEASE-153
Multiproject CVS uncommitted changes not checked
-
-
MRELEASE-261
release:prepare should support flat directory multi-module projects
-
- is related to
-
MRELEASE-94
Modified Parent POM is not commited
-
-
MRELEASE-168
All submodule projects must be from the same subversion repository
-
This is not only a problem of the release plugin its also a problem with inheritance in Maven 2 in general. Its completely ignoring relative path settings during inheritance when building SCM-URLs and URLs. Looking at org.apache.maven.project.inheritance.DefaultModelInheritanceAssembler it seems the following assumptions have been made:
1. The artifactId is always the same as the directory-name holding the artifact
2. The parent "lives" always one level up in the hierarchy
So no matter what relative path settings are specified they are ignored in that class which builds various paths during inheritance. I am currently thinking about fixing this class but I would need some guidance to not break anything since I do not know what assumptions have been made further and if it is really only this class to fix.
A workaround for this problem is to not inherit things build from this class by e.g. specifying the SCM-URLs inside every pom and do not let maven build them for you during inheritance which holds true also for URLs.
Would it lead to problems if this class would support the relative paths without changing anything else ?