<dependency> <groupId>fishman</groupId> <artifactId>JMJ_API</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/lib/JMJ_API.jar</systemPath> </dependency>
注意
1.<scope>system</scope>
2.<systemPath>${project.basedir}/lib/JMJ_API.jar</systemPath>
groovy+idea+Maven项目加载自身jar包,布布扣,bubuko.com
原文:http://www.cnblogs.com/duwenlei/p/3810082.html