Class Utils

java.lang.Object
org.codehaus.mojo.mrm.impl.Utils

public final class Utils extends Object
Utility class.
Since:
1.0
  • Method Details

    • newEmptyJarContent

      public static byte[] newEmptyJarContent() throws IOException
      Creates an empty jar file.
      Returns:
      the empty jar file as a byte array.
      Throws:
      IOException - if things go wrong.
      Since:
      1.0
    • newEmptyMavenPluginJarContent

      public static byte[] newEmptyMavenPluginJarContent(String groupId, String artifactId, String version) throws IOException
      Creates an empty maven plugin jar file.
      Parameters:
      groupId - the group id of the plugin.
      artifactId - the artifact id of the plugin.
      version - the version of the plugin.
      Returns:
      the empty jar file as a byte array.
      Throws:
      IOException - if things go wrong.
      Since:
      1.0