如何从模块的子模块创建Jar?

我有这个java maven项目结构

- parentModule - firstChildModule - firstChildModule - firstChildModule - secondChildModule -> **jar** - thirdChildModule - thirdChildModule - thirdChildModule 

我想将secondChildModule模块打包为包含其子模块的jar。

我试图将包装类型设置为pom,但抛出一个例外,说明值为’jar’的’打包’无效。

所以我的问题是如何以正确的方式做到这一点? 我提到只有thirdChildModule模块类型将包含源代码。

这里是firstChildModule,secondChildModule和的源代码

firstChildModule

    parentModule com.company 1.0.0-SNAPSHOT  4.0.0 com.company firstChildModule pom  secondChildModule   

secondChildModule

    com.company firstChildModule 1.0.0-SNAPSHOT ../pom.xml  4.0.0 com.company secondChildModule pom Second Child Module  thirdChildModule01 thirdChildModule02 thirdChildModule0   

thirdChildModule

     secondChildModule com.company 1.0.0-SNAPSHOT  4.0.0 com.company thirdChildModule01