inconsistent module metadata found. Descriptor: javax:j2ee:1.4 Errors: bad group: expected='javax.j2ee' found='javax'

Answered

I tried to add j2ee jar as a compile dependency. This looked like this:

 

dependencies {
   
testImplementation(platform("org.junit:junit-bom:5.9.1"))
   
testImplementation("org.junit.jupiter:junit-jupiter")
   
compileOnly("com.ibm.maximo:asset-management:7.6.0.0")
   
compileOnly("com.ibm.maximo:asset-management-webclient:7.6.0.0")
   
compileOnly("org.apache.httpcomponents:httpclient:4.5.2")
   
compileOnly("javax.j2ee:j2ee:1.4")
   
//implementation(files("C:/Users/jkish/eclipse-workspace/bia/lib/build/httpclient.jar"))
}

but I got the message in the title, i.e. : 

inconsistent module metadata found. Descriptor: javax:j2ee:1.4 Errors: bad group: expected='javax.j2ee' found='javax'

I was able to work around I think by using this, however I wanted to use the above version - can anyone explain why the above is wrong and/or if it is fixable?

dependencies {
   
testImplementation(platform("org.junit:junit-bom:5.9.1"))
   
testImplementation("org.junit.jupiter:junit-jupiter")
   
compileOnly("com.ibm.maximo:asset-management:7.6.0.0")
   
compileOnly("com.ibm.maximo:asset-management-webclient:7.6.0.0")
   
compileOnly("org.apache.httpcomponents:httpclient:4.5.2")
   
//compileOnly("javax.j2ee:j2ee:1.4")
   
compileOnly(files("C:/Users/jkish/eclipse-workspace/BIAMax7612/maximolib/j2ee.jar"))
   
//implementation(files("C:/Users/jkish/eclipse-workspace/bia/lib/build/httpclient.jar"))
}

 

 

 

0
1 comment

It seems that this dependency was deleted from Maven repository. Check this thread: https://stackoverflow.com/a/60259945/2000323

0

Please sign in to leave a comment.