title: How to add Websphere Application Server Liberty Profile runtime dependencies to Maven POM?
body: <p>I have a restful application that I converted to a maven project. Now, I get a compile error when using <code>maven compile</code> because the java-ee/openjpa packages are not found. Below is my POM file</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;portal&lt;/groupId&gt;
    &lt;artifactId&gt;portal&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;developer-portal&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
    &lt;properties&gt;
      &lt;serverName&gt;dropServer&lt;/serverName&gt;
      &lt;serverHome&gt;C:\wlp&lt;/serverHome&gt;
      &lt;maven.compiler.source&gt;1.7&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;1.7&lt;/maven.compiler.target&gt;
    &lt;/properties&gt;
  
    &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
          &lt;id&gt;Liberty&lt;/id&gt;
          &lt;name&gt;Liberty Repository&lt;/name&gt;
          &lt;url&gt;http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/releases&gt;
      &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.ibm.tools.target&lt;/groupId&gt;
          &lt;artifactId&gt;was-liberty&lt;/artifactId&gt;
          &lt;version&gt;8.5.5&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- Hard-Coded, made-up dependency --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.ibm.nosql&lt;/groupId&gt;
          &lt;artifactId&gt;nosqljson&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;systemPath&gt;C:\javalib\db2_drivers\nosqljson.jar&lt;/systemPath&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
          &lt;version&gt;1.18&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-grizzly2&lt;/artifactId&gt;
          &lt;version&gt;1.18&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-jaxrs&lt;/artifactId&gt;
          &lt;version&gt;1.9.11&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey.jersey-test-framework&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-test-framework-core&lt;/artifactId&gt;
          &lt;version&gt;1.17.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-email&lt;/artifactId&gt;
          &lt;version&gt;1.3.2&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;finalName&gt;developer-portal&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.ibm.websphere.wlp.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;liberty-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;start-server&lt;/id&gt;
                      &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;start-server&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;serverHome&gt;${serverHome}&lt;/serverHome&gt;
                          &lt;serverName&gt;${serverName}&lt;/serverName&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.ibm.websphere.wlp.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;liberty-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;serverHome&gt;${serverHome}&lt;/serverHome&gt;
                  &lt;serverName&gt;${serverName}&lt;/serverName&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;deployapp&lt;/id&gt;
                      &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;deploy&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;appArchive&gt;${project.build.directory}/${project.name}.war&lt;/appArchive&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Here is the particular error in eclipse:</p>
  
  <pre><code>Missing artifact com.ibm.tools.target:was-liberty:pom:8.5.5
  </code></pre>
  
  <p>And in CLI:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal on project developer-portal: Could not
    resolve dependencies for project developer-porta
    l:developer-portal:war:0.0.1-SNAPSHOT: Failure to find
    com.ibm.tools.target:was-liberty:pom:8.5.5 in
    <a href="http://repo.maven.apache.org/" rel="nofollow">http://repo.maven.apache.org/</a> maven2 was cached in the local
    repository, resolution will not be reattempted until the update
    interval of central has elapsed or updates are forced -> [Help 1]</p>
  </blockquote>
  
  <p>References:</p>
  
  <ol>
  <li><a href="https://www.ibm.com/developerworks/community/forums/html/topic?id=e98d726e-6f5d-470c-a042-dd8b41384235" rel="nofollow">https://www.ibm.com/developerworks/community/forums/html/topic?id=e98d726e-6f5d-470c-a042-dd8b41384235</a></li>
  <li><a href="http://www-01.ibm.com/support/knowledgecenter/was_beta/com.ibm.websphere.wdt.doc/topics/localrepo.htm?lang=en" rel="nofollow">http://www-01.ibm.com/support/knowledgecenter/was_beta/com.ibm.websphere.wdt.doc/topics/localrepo.htm?lang=en</a></li>
  </ol>