+ <profiles>
+ <profile>
+ <!-- Tomcat 7 profile, includes JSF 2.0 and Weld -->
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <env />
+ </properties>
+ <dependencies>
+ </dependencies>
+ <build>
+ <resources>
+ <resource>
+ <targetPath>META-INF</targetPath>
+ <directory>src/main/resources/tomcat</directory>
+ <includes>
+ <include>beans.xml</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+ </profile>
+ <profile>
+ <!-- J2EE Application Server profile (Glassfish, JBoss) -->
+ <!-- beans.xml contains information of which configuration
+ scheme to inject. Optimally this would be decided at
+ the .war/application level, not at (this) jar/library
+ level, but for now this is necessary when using Glassfish
+ or JBoss -->
+ <id>as</id>
+ <properties>
+ <env>as</env>
+ </properties>
+ <dependencies>
+ </dependencies>
+ <build>
+ <resources>
+ <resource>
+ <targetPath>META-INF</targetPath>
+ <directory>src/main/resources/as</directory>
+ <includes>
+ <include>beans.xml</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+ </profile>
+ </profiles>