title: create jar with META-INF\services for Jboss module extension
body: <p>I wish to implement an interface, to create a jar to put it in the deployment folder in JBoss.<br>
  I only have one .java file.<br>
  However I can't get any jar working.</p>
  
  <p>I could not find any doc on how to build the Jar.<br>
  I'm willing to use any tool, i tried an InterliJ Artefact (was the whole project).<br>
  I tried javac (using the InteliJ artefact for libraries), then jar, then adding the file  /META-INF/services/org.[myinterface] manually</p>
  
  <p>I found the two posts
  <a href="https://stackoverflow.com/questions/12631147/adding-meta-inf-services-javax-xml-parsers-saxparserfactory-to-jar">Adding META-INF\services\javax.xml.parsers.SAXParserFactory to jar</a>
  and
  <a href="https://stackoverflow.com/questions/42056142/create-meta-inf-services-file-with-maven">Create META-INF/services file with Maven</a><br>
  But none of these give me enough precision.</p>
  
  <p>I don't think it's helping, because I know my Jar has en issue, but here is the error in the deployment :<br></p>
  
  <blockquote>
    <p>org.my-class-to-implement: Provider org.my-implementation not found</p>
  </blockquote>
  
  <p>If someone has a link to an existing project that can generate the correct jar, or a procedure to create it, that could save my day</p>
  
  <p>Question that could help me :
  Is it ok to manually add the /META-INF/services/ file ?<br>
  If there is a package name, should i mention it somewhere ?</p>
  
  <p>Thanks for any help, if i find the correct procedure in the meantime, i'll post it here</p>