Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven release build error

 
Anadi Misra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I configured the maven-release-plugin for a multi module project , how ever when I run



I get and error like this



I am bit confused here since the module had version 1.0-SNAPSHOT and when I run a release build it should change to 1.0 and release, then why is it looking for a 1.0 in repos to download before it runs a build?
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't supply the POM itself, but it looks like you've defined this POM as a subproject and that the parent project's artifact ID isn't complete.

I don't think it has anything to do with the version-bumping mechanism other than that the version won't be bumped if you can't do a build.
 
Anadi Misra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

did some changes , to the POM strucutre. but I still get the error, although now it is not for the properties module.



I didn't quite understand what you meant by version bumping, can you explain a bit more?
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Version bumping is where the maven process updates the version number, like from 1.0.1 to 1.0.2. That's one of the useful features of the release goals.

You still seem to have a misdefinition on a dependency. It appears like you set up something like this:



"com.project." isn't a proper group id. It would typically be something more like "com.project.mvntest".
 
Anadi Misra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

but that's because this is the parent pom , here's how it looks



and here's my maven settings .xml



I'll check if any of the child poms have . entered by mistake

 
Anadi Misra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

thanks a ton!! it was the same error as you said ... I had missed it earlier ,

seems to be running well now
 
Anadi Misra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, stuck at a different place now



it fails when it tries to tag the release version before transforming to a SNAPSHOT again. when i browse the SVN repo I dont see a mvntest-2.0.0 tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic