title: wls-maven-plugin:deploy shared library
body: <p>I've migrate from weblogic-maven-plugin (10.3) to wls-maven-plugin(12.1) and encountred problem with deploying shared library.</p>
  
  <p>Problem is wls-maven-plugin don't pass to Weblogic.Deployer library flag. For weblogic-maven-plugin i have same conf:</p>
  
  <pre><code>&lt;plugin&gt; 
                  &lt;groupId&gt;com.oracle.weblogic&lt;/groupId&gt; 
                  &lt;artifactId&gt;weblogic-maven-plugin&lt;/artifactId&gt; 
                  &lt;version&gt;10.3.6.0&lt;/version&gt; 
                  &lt;configuration&gt; 
                      &lt;adminurl&gt;t3://localhost:7001&lt;/adminurl&gt;
                      &lt;user&gt;${weblogic.username}&lt;/user&gt; 
                      &lt;password&gt;${weblogic.password}&lt;/password&gt; 
                      &lt;upload&gt;true&lt;/upload&gt;                                             
                      &lt;source&gt;${project.build.directory}/${project.build.finalName}.${project.packaging}&lt;/source&gt;                                         
                      &lt;name&gt;${project.build.finalName}&lt;/name&gt;
                      &lt;isLibrary&gt;true&lt;/isLibrary&gt;
                  &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>There element isLibrary shows plugin to pass -library flag that invokes Weblogic.Deployer.</p>
  
  <p>After migrate to wls plugin:</p>
  
  <pre><code>&lt;plugin&gt; 
                  &lt;groupId&gt;com.oracle.weblogic&lt;/groupId&gt; 
                  &lt;artifactId&gt;wls-maven-plugin&lt;/artifactId&gt; 
                  &lt;version&gt;12.1.1.0&lt;/version&gt; 
                  &lt;configuration&gt; 
                      &lt;adminurl&gt;t3://localhost:7001&lt;/adminurl&gt;
                      &lt;user&gt;${weblogic.username}&lt;/user&gt; 
                      &lt;password&gt;${weblogic.password}&lt;/password&gt; 
                      &lt;middlewareHome&gt;${env.MW_HOME}&lt;/middlewareHome&gt;
                      &lt;upload&gt;false&lt;/upload&gt; 
                      &lt;action&gt;deploy&lt;/action&gt;                   
                      &lt;remote&gt;false&lt;/remote&gt; 
                      &lt;isLibrary&gt;true&lt;/isLibrary&gt;
                      &lt;verbose&gt;true&lt;/verbose&gt;                         &lt;source&gt;${project.build.directory}/${project.build.finalName}.${project.packaging}&lt;/source&gt; 
                      &lt;name&gt;${project.build.finalName}&lt;/name&gt; 
                  &lt;/configuration&gt;                   
  &lt;/plugin&gt; 
  </code></pre>
  
  <p>But wls plugin don't pass -library flag to Weblogic.Deployer and as result jar deployed with type unknown so my applications can't use library because don't found it. </p>
  
  <p>Note: If i doing deploying manually with Weblogic.Deployer all works fine - so my manifest and weblogic-application.xml files should be correct. </p>