pom.xml加入jar的引用
<dependency>
<groupId>single_api</groupId>
<artifactId>wxapp_api</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/single_api_202101.jar</systemPath>
</dependency>
single_api_202101.jar里有com.aaa.b.Action.class类声明了@IocBean
nutzboot项目MainLauncher.class在com.aaa.c包里,声明了
@Modules(scanPackage = true, packages = {"com.aaa.b","com.bbb.c"})
启动日志提示:
[DEBUG] 15:18:30.559 org.nutz.resource.Scans.scan(Scans.java:280) - Found 95 resource by src( com/aaa/b/ ) , regex( ^.+[.]class$ )
[INFO ] 15:18:30.569 org.nutz.resource.Scans.rs2class(Scans.java:413) - Resource can't map to Class, Resource action/Action.class
如何才能让当前nutzboot项目的ioc管理到jar里的action类?