return true;
}
private File getSkinArtifactFile(DecorationModel decoration) throws MojoFailureException {
Skin skin = decoration.getSkin();
if (skin == null) {
skin = Skin.getDefaultSkin();
}
String version = skin.getVersion();
Artifact artifact;
try {
if (version == null) {
version = Artifact.RELEASE_VERSION;
}
VersionRange versionSpec = VersionRange
.createFromVersionSpec(version);
artifact = artifactFactory.createDependencyArtifact(skin
.getGroupId(), skin.getArtifactId(), versionSpec, "jar",
null, null);
artifactResolver.resolve(artifact, remoteArtifactRepositories,
localRepository);
return artifact.getFile();