The following WEB-INF/beans.xml is correct due to http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html, and works as expected. However, the JBoss Tools editor shows an error. I'll attach a screenshot to illustrate the issue.

<?xml version="1.0"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:weld="http://jboss.org/schema/weld/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://docs.jboss.org/cdi/beans_1_0.xsd
http://jboss.org/schema/weld/beans http://jboss.org/schema/weld/beans_1_1.xsd">
...
<weld:scan>
<weld:exclude name="my.pkg..domain."/>
</weld:scan>
</beans.xml>

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira