mvnDep = new org.apache.maven.model.Dependency();
mvnDep.setArtifactId("seam-forge");
mvnDep.setGroupId("org.jboss.forge");
mvnDep.setVersion("9");
mvnDep.setScope("ComPiLe");
Exclusion ex1 = new Exclusion();
ex1.setArtifactId("sub-module");
ex1.setGroupId("org.jboss.forge");
mvnDep.addExclusion(ex1);
Exclusion ex2 = new Exclusion();
ex2.setArtifactId("sub-module-2");
ex2.setGroupId("org.jboss.forge");
mvnDep.addExclusion(ex2);
}