Guys,

I am facing this issue with the usage of maven release plugin and would
really appreciate some suggestions/feedback...

So i have this product/project heirarchy as below which i am trying to
release using the maven-release plugin but am getting this exception
"BuildFailureException: The version could not be updated:
${PORTAL-A.VERSION}".. Just for info, i have defined the all the dependency
versions (as properties) in my root pom and these versions are being used
only in the dependencyManagement section, again in the root pom...

Portal Module (The root project in the hierarchy contains the dependency
version properties)
  --> Portal-A Sub-module (Module of "POM" type packaging and is an
aggregate of child modules as below)
        --> Portal-A-1   
        --> Portal-A-2
        --> Portal-A-3
  --> Portal-B Sub-module (Module of "POM" type packaging and is an
aggregate of child modules as below)
        --> Portal-B-1  
        --> Portal-B-2
        --> Portal-B-3

The property "PORTAL-A.VERSION" holds the version of one of the sub-module
OF THE PROJECT i am trying to release (i.e. PORTAL) like e.g. i also a
PORTAL-B.version and these as i mentioned above are being used in the
dependencyManagement section. Can anyone suggest as to whats going on ? Why
is this an issue ? I have tried use -DupdateDependencies=false so that i can
avoid this error and change the dependency versions myself (since i have it
at one common place and hence very trivial)....but that doesnt work too...

Just to add I know ${project.version} can serve the purpose as well, but i
would want to have a bit flexibility on the version usage (of the
sub-modules if need be e.g. have a different version of Portal-A and
Portal-B as a dependency) instead of being restricted to use one version of
the entire portal project (as a dependency)...

Please comment...

Using maven-2.0.7 but using 2.0.9 gives the same error...

Thanks in advance..
-- 
View this message in context: 
http://www.nabble.com/release-plugin---BuildFailureException-%3A-The-version-could-not-be-updated---tp19208851p19208851.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to