title: How to install weblogic maven plugin for weblogic v12.1.2 (12c)?
body: <p>To install weblogic application server I decompressed 2 files I got from or oracle using these links:</p>
  
  <p><a href="http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev.zip" rel="noreferrer">http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev.zip</a>
  <a href="http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev_supplemental.zip" rel="noreferrer">http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev_supplemental.zip</a></p>
  
  <p>..found on <a href="http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html" rel="noreferrer">this page</a>.</p>
  
  <p>I simply decompressed both files and they automatically decompress to the same folder. setting the <code>MW_HOME</code> and <code>JAVA_HOME</code> environment variables to point to the decompressed folder and Java 7 JDK locations respectively, I ran the <code>configure.cmd</code> file and it ended successfully.</p>
  
  <p>The problem is that I can't reach the same result <a href="http://docs.oracle.com/middleware/1212/wls/WLPRG/maven.htm" rel="noreferrer">this page</a> shows if I follow the instructions on it. I summarized these instructions here:
  (<code>ORACLE_HOME</code> is identical to <code>MW_HOME</code>, they both point to the installation folder.)</p>
  
  <pre><code>%ORACLE_HOME%/wlserver/server/bin/setWLSEnv
  cd %ORACLE_HOME%/oracle_common/plugins/maven/com/oracle/maven/oracle-maven-sync/12.1.2
  mvn install:install-file -DpomFile=oracle-maven-sync.12.1.2.pom -Dfile=oracle-maven-sync.12.1.2.jar
  mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=D:/oracle_home
  mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.1.2-0-0
  </code></pre>
  
  <p>Where <code>oracle-maven-sync.oracleHome</code> is <code>The path to the Oracle home that you wish to populate the Maven repository from.</code>. Its basically the Weblogic directory having <code>wlserver</code> directory in it.</p>
  
  <p>The problem is that the last line (the line that asks the installed plugin for description), shows the following error message (Ignore the masked IPs, I masked them manually in this question):</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]
  [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Maven Stub Project (No POM) 1
  [INFO] ------------------------------------------------------------------------
  [INFO]
  [INFO] --- maven-help-plugin:2.2:describe (default-cli) @ standalone-pom ---
  [WARNING] The POM for com.oracle.weblogic:weblogic-maven-plugin:jar:12.1.2-0-0 is missing, no dependency information available
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.775 s
  [INFO] Finished at: 2014-05-04T13:00:03+02:00
  [INFO] Final Memory: 7M/152M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:2.2:describe (default-cli) on project standalone-pom: Plugin does not exist: Plugin could not be found, please check its coordinates fo
   typos and ensure the required plugin repositories are defined in the POM
  [ERROR] com.oracle.weblogic:weblogic-maven-plugin:maven-plugin:12.1.2-0-0
  [ERROR]
  [ERROR] from the specified remote repositories:
  [ERROR] central (http://x.x.x.x:xxxx/artifactory/plugins-release, releases=true, snapshots=false),
  [ERROR] snapshots (http://x.x.x.x:xxxx/artifactory/plugins-snapshot, releases=true, snapshots=true),
  [ERROR] central-se (http://x.x.x.x:xxxx/artifactory/plugins-release, releases=true, snapshots=false),
  [ERROR] snapshots-se (http://x.x.x.x:xxxx/artifactory/plugins-snapshot, releases=true, snapshots=true)
  [ERROR] -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  </code></pre>
  
  <p>What makes me think that this is NOT a network problem, is that I've successfully installed this plugin before, but I can't remember how exactly so may be I'm missing some steps ?</p>
  
  <p>How can I resolve this please ? My goal is to be able to refer to weblogic's libraries from maven as a <strong>dependency</strong> in the following way:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.oracle.weblogic&lt;/groupId&gt;
      &lt;artifactId&gt;weblogic-server-pom&lt;/artifactId&gt;
      &lt;version&gt;12.1.2-0-0&lt;/version&gt;
      &lt;type&gt;pom&lt;/type&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>