public void execute()
throws MojoExecutionException, MojoFailureException
{
final JavaEEVersion javaEEVersion = JavaEEVersion.getJavaEEVersion( version );
getLog().debug( "Resolving artifact type mappings ..." );
ArtifactTypeMappingService typeMappingService;
try
{
typeMappingService = new ArtifactTypeMappingService();
typeMappingService.configure( artifactTypeMappings );
}
catch ( EarPluginException e )
{
throw new MojoExecutionException( "Failed to initialize artifact type mappings", e );
}