This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes maven release build error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven release build error" Watch "maven release build error" New topic
Author

maven release build error

Anadi Misra
Ranch Hand

Joined: Jun 03, 2008
Posts: 69
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?


Anadi Mishra.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Anadi Misra
Ranch Hand

Joined: Jun 03, 2008
Posts: 69
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

Joined: Jun 25, 2001
Posts: 15950
    
  19

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

Joined: Jun 03, 2008
Posts: 69
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

Joined: Jun 03, 2008
Posts: 69
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

Joined: Jun 03, 2008
Posts: 69
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: maven release build error
 
Similar Threads
Cannot find parent error while "mvn compile"
Maven site reports (developer activity) and SCM configuration
Maven Build Error--Help--- Urgent
Maven Project Build Successfully but Error While Test It
com.sun.tools.jxc.maven2:maven-jaxb-schemagen-plugin not found