title: Package siddhi extensions in one jar
body: <p>I am new to Siddhi, I originally used Eclipse for development and used &quot;package required libraries into generated jar&quot; to package all dependencies into one jar file, this way it worked fine.</p>
  <p>But when I try to use intellij for development, and use maven to package all the dependencies into one jar file and run it, it comes up with ExtensionNotFoundException.</p>
  <pre><code>Exception in thread &quot;pool-4-thread-1&quot; io.siddhi.core.exception.ExtensionNotFoundException: Error on 'SiddhiApp' @ Line: 35. Position: 91, near '@sink(type='file',append = &quot;true&quot;,file.uri = &quot;alert.csv&quot;, @map(type='csv', header='false'))'. No extension exist for sink:file
      at io.siddhi.core.util.SiddhiClassLoader.loadExtensionImplementation(SiddhiClassLoader.java:46)
      at io.siddhi.core.util.parser.helper.DefinitionParserHelper.createSink(DefinitionParserHelper.java:840)
      at io.siddhi.core.util.parser.helper.DefinitionParserHelper.addEventSink(DefinitionParserHelper.java:488)
      at io.siddhi.core.util.SiddhiAppRuntimeBuilder.defineStream(SiddhiAppRuntimeBuilder.java:119)
      at io.siddhi.core.util.parser.SiddhiAppParser.defineStreamDefinitions(SiddhiAppParser.java:375)
      at io.siddhi.core.util.parser.SiddhiAppParser.parse(SiddhiAppParser.java:231)
      at io.siddhi.core.SiddhiManager.createSiddhiAppRuntime(SiddhiManager.java:87)
      at io.siddhi.core.SiddhiManager.createSiddhiAppRuntime(SiddhiManager.java:97)
      at com.iocontrols.example.module.siddhi.SiddhiService.run(SiddhiService.java:46)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
  </code></pre>
  <p>pom.xml</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;mainClass&gt;com.example.Main&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
                  &lt;descriptorRefs&gt;
                      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                  &lt;/descriptorRefs&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;make-jar&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>