1 22 package org.objectweb.petals.tools.jbiplugin; 23 24 import org.apache.maven.plugin.MojoExecutionException; 25 26 34 public class InstallComponentMojo extends JMXComponentAbstractMojo { 35 36 39 public void execute() throws MojoExecutionException { 40 try { 41 42 if ("Loaded".equals(this.getState(project.getArtifactId()))) { 43 44 this.performInstallerComponentAction( 45 JMXComponentAbstractMojo.INSTALL, project 46 .getArtifactId()); 47 48 } else { 49 System.out 50 .println("The goal is skip because the service assembly is not in the state \"Loaded\"."); 51 } 52 53 } catch (Exception e) { 54 e.printStackTrace(); 55 throw new MojoExecutionException(e.getLocalizedMessage(), e); 56 } 57 } 58 } 59 | Popular Tags |