merge(appArchive, auxArchives);
} else {
// JBAS-9059 Inconvertible types error due to OpenJDK compiler bug
//if (appArchive instanceof WebArchive) {
if (WebArchive.class.isAssignableFrom(appArchive.getClass())) {
final ArchivePath webInfLib = ArchivePaths.create("WEB-INF", "lib");
for (Archive<?> aux : auxArchives) {
// we don't want to include the arquillian-core.jar and arquillian-junit.jar
// auxillary archives, as these are already part of the container
if (!excludedAuxillaryArchives.contains(aux.getName())) {
appArchive.add(aux, webInfLib);