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