public GwtArchive addMavenDependencies(String... exclusions) {
MavenBuilderImpl libs = (MavenBuilderImpl) DependencyResolvers.use(MavenDependencyResolver.class);
if (pathToSettingsXml != null) {
libs.configureFrom(pathToSettingsXml);
}
libs.includeDependenciesFromPom("pom.xml").exclusion("org.jboss.weld.se:weld-se");
addAsLibraries(libs.resolveAs(JavaArchive.class));
return this;
}
public GwtArchive addSources(File dir) {