Skip to main content

Posts

Showing posts from February, 2012

Inconsistency on Maven model

Introduction Trying to build maven from a single svn commit (actually it was a TAG commit), I found that it is impossible without a central repository or information from other svn commits. I present details about this case of "cross commit version cycle". I call this a "inconsistency" on Maven Model because it allows to create commit versions of a project that are not self-sufficient. Any inconsistency about this inconsistency is welcome. Maven project model (fragment) In maven there are two different project relations Parent Relation and Module Relation. Parent Relation inherent project properties and Module Relation manage the build process: "When building this project, build also this submodules". Look at the maven reference documentation for full reference: http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-project-relationships.html Snapshot versions and release versions Most Maven projects have a main pa