OK, I still need to think about this one a bit.
If you enable libArchivesProvider in weld-deployers-jboss-beans.xml,
you'll get the loop below:
What's the right solution for this?
---------------------
at org.jboss.weld.integration.deployer.env.bda.ClasspathFactory.getClasspath(ClasspathFactory.java:142) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ClasspathFactory.create(ClasspathFactory.java:120) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ArchiveInfo.<init>(ArchiveInfo.java:85) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.LibraryDiscoveryService.getLibraries(LibraryDiscoveryService.java:108) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ClasspathFactory.getClasspath(ClasspathFactory.java:137) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ClasspathFactory.create(ClasspathFactory.java:120) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ArchiveInfo.<init>(ArchiveInfo.java:85) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.LibraryDiscoveryService.getLibraries(LibraryDiscoveryService.java:108) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ClasspathFactory.getClasspath(ClasspathFactory.java:137) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ClasspathFactory.create(ClasspathFactory.java:120) [:6.0.0-SNAPSHOT]
at org.jboss.weld.integration.deployer.env.bda.ArchiveInfo.<init>(ArchiveInfo.java:85) [:6.0.0-SNAPSHOT]