I have a Weld SE application.
I played with the need for having beans.xml files present as I read they are not necessary anymore since CDI 1.1.
I also found that for Weld SE, beans.xml are still mandatory except if you set the system property javax.enterprise.inject.scan.implicit to true or the same property as container property like SeContainerInitializer.newInstance().addProperty("javax.enterprise.inject.scan.implicit", TRUE).initialize();.
This works for normal usage.
But if I enable in IntelliJ IDEA the "JAR manifest" command line shortener there is a problem.
What this does is, it adds all libraries and also the project classes as Classpath manifest attribute to a dummy JAR and adds this dummy JAR to the classpath solely.
This works fine if you do not enable javax.enterprise.inject.scan.implicit and have beans.xml files in your archives.
But as soon as you enable javax.enterprise.inject.scan.implicit either way, you get
No matter whether there are beans.xml files or not.
Even the archives that have explicit beans.xml files are suddenly not found anymore.
Using the javax.enterprise.inject.scan.implicit mode without the JAR classpath commandline shortener works fine.