Class ConfigMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.chenile.config.plugin.ConfigMojo
All Implemented Interfaces:
ContextEnabled, Mojo

Generate a Chenile Service Registry configuration from ChenileConfiguration
  • Field Details

  • Constructor Details

    • ConfigMojo

      public ConfigMojo()
  • Method Details

    • execute

      public void execute()
    • obtainServices

      private List<Info.ServiceInfo> obtainServices()
    • makeGetCall

      private byte[] makeGetCall(String url)
    • processService

      private void processService(String name)
    • readFullyAsString

      private String readFullyAsString(InputStream inputStream) throws IOException
      Read fully as string string.
      Parameters:
      inputStream - the input stream
      Returns:
      the string
      Throws:
      IOException - the io exception
    • readFully

      private ByteArrayOutputStream readFully(InputStream inputStream) throws IOException
      Read fully byte array output stream.
      Parameters:
      inputStream - the input stream
      Returns:
      the byte array output stream
      Throws:
      IOException - the io exception