Tuesday 30 December 2014

Project build error: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging.

Project build error: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging.

Add this to your pom.xml it solves the problem.
 
 
  <packaging>pom</packaging>
 
 
  if the parent project contains source code, I strongly suggest you to:

move this code in a new module (let's call it commons)
make commons a child module of your parent project
add the commons module as a dependency of all other modules requiring it (maybe all of them)
add <packaging>pom</packaging> in the parent pom.xml


More details you can have a look on this...

No comments:

Post a Comment