Inconsistent module descriptor problem

The problem:

Using Grape produces the following exception when trying to grab a dependency:

java.text.ParseException: inconsistent module descriptor file found in

— for example:

@Grab(group=’com.coherentlogic.fred.client’, module=’fred-client-core’, version=’0.9.13′)

The solution:

Ensure that your multimodule pom does not reference the group id using properties that exist in the parent pom — for example this will reproduce the problem above when it appears in the child pom:

<groupId>${project.parent.groupId}.${project.parent.artifactId}</groupId>

Whereas this will work:

<groupId>com.coherentlogic.fred.client</groupId>

Leave a Reply