moduleFile = new NestedJarFile(earFile, modulePath);
} catch (IOException e) {
throw new DeploymentException("Invalid moduleFile: " + modulePath, e);
}
} else {
PatternType patternType = gerExtModule.getExternalPath();
String groupId = trim(patternType.getGroupId());
String artifactId = trim(patternType.getArtifactId());
String version = trim(patternType.getVersion());
String type = trim(patternType.getType());
Artifact artifact = new Artifact(groupId, artifactId, version, type);
try {
artifact = getArtifactResolver().resolveInClassLoader(artifact);
} catch (MissingDependencyException e) {
throw new DeploymentException("Could not resolve external rar location in repository: " + artifact, e);