title: service bus maven error - unknown packaging sbar
body: <p>I am new to maven / pom.xml and am following the below link to create an oracle service bus project and package it into custom packaging type "sbar".</p>
  
  <p><a href="https://docs.oracle.com/middleware/1213/core/MAVEN/osb_maven_project.htm#MAVEN8971" rel="nofollow">https://docs.oracle.com/middleware/1213/core/MAVEN/osb_maven_project.htm#MAVEN8971</a></p>
  
  <p>The Project gets generated properly (from the command --> mvn archetype:generate ... ) but when I execute the below command I get an error   </p>
  
  <pre><code>mvn package -DoracleHome=/path/to/osbhome 
  </code></pre>
  
  <blockquote>
    <p>[ERROR] Unknown packaging: sbar @ line 16, column 16</p>
  </blockquote>
  
  <p>project pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;com.oracle.servicebus.plugin&lt;/groupId&gt;
      &lt;artifactId&gt;oracle-servicebus-plugin&lt;/artifactId&gt;
      &lt;version&gt;12.1.3-0-0&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;groupId&gt;my-servicebus-application&lt;/groupId&gt;
  &lt;artifactId&gt;my-project&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;packaging&gt;sbar&lt;/packaging&gt;     &lt;!--getting error on this line--&gt;
  
  &lt;build&gt;
  &lt;plugins&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;com.oracle.servicebus.plugin&lt;/groupId&gt;
      &lt;artifactId&gt;oracle-servicebus-plugin&lt;/artifactId&gt;
      &lt;version&gt;12.1.3-0-0&lt;/version&gt;
      &lt;executions&gt;
        &lt;execution&gt;
          &lt;id&gt;package&lt;/id&gt;
          &lt;phase&gt;package&lt;/phase&gt;
          &lt;goals&gt;
            &lt;goal&gt;run&lt;/goal&gt;
          &lt;/goals&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>application pom.xml</p>
  
  <pre><code>&lt;project&gt;
  ...
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;my-servicebus-application&lt;/groupId&gt;
  &lt;artifactId&gt;my-servicebus-application&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;packaging&gt;pom&lt;/packaging&gt;
  
  &lt;modules&gt;
      &lt;module&gt;System&lt;/module&gt;
      &lt;module&gt;my-project&lt;/module&gt;
  &lt;/modules&gt;
  ...
  &lt;/project&gt;
  </code></pre>
  
  <p>system pom.xml</p>
  
  <pre><code>&lt;project&gt;
  ...
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;org.mycompany&lt;/groupId&gt;
  &lt;artifactId&gt;System&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;packaging&gt;sbar&lt;/packaging&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;com.oracle.servicebus&lt;/groupId&gt;
      &lt;artifactId&gt;sbar-system-common&lt;/artifactId&gt;
      &lt;version&gt;12.1.3-0-0&lt;/version&gt;
      &lt;relativePath&gt;&lt;/relativePath&gt;
  &lt;/parent&gt;
  ...
  &lt;/project&gt;
  </code></pre>
  
  <p>I am using JDeveloper 12.1.3.0.0 and Maven 3.0.5.
  (I get the same error if I run it either from JDeveloper or from command promt)</p>
  
  <p>Please help me solve this error.</p>
  
  <p>Thanks in Advance !</p>