title: Deploying on tomcat using maven
body: <p>i am deploying an application on apache-tomcat7 using maven but it gives dependency error, like this</p>
  
  <pre><code>com.moteve:moteve-server-core:jar:0.1-SNAPSHOT
  </code></pre>
  
  <p>Try downloading the file manually from the project website.</p>
  
  <p>Then, install it using the command:</p>
  
  <pre><code>mvn install:install-file -DgroupId=com.moteve -DartifactId=moteve-server-c
  ore -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
  </code></pre>
  
  <p>Alternatively, if you host your own repository you can deploy the file there:</p>
  
  <pre><code>mvn deploy:deploy-file -DgroupId=com.moteve -DartifactId=moteve-server-cor
  e -Dversion=0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepo
  sitoryId=[id]
  
  
  
   Path to dependency:
     1) com.moteve:moteve-server-webapp:war:0.1-SNAPSHOT
     2) com.moteve:moteve-server-core:jar:0.1-SNAPSHOT
  </code></pre>
  
  <hr>
  
  <p>1 required artifact is missing.</p>
  
  <p>for artifact:</p>
  
  <pre><code> com.moteve:moteve-server-webapp:war:0.1-SNAPSHOT
  </code></pre>
  
  <p>from the specified remote repositories:
    central (<a href="http://repo1.maven.org/maven2" rel="nofollow">http://repo1.maven.org/maven2</a>)</p>
  
  <p>here is my pom.xml 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;
  
      enter code here
  
  
  
  
    &lt;parent&gt;
      &lt;groupId&gt;com.moteve&lt;/groupId&gt;![enter image description here][1]
      &lt;artifactId&gt;moteve-server-parent&lt;/artifactId&gt;
      &lt;version&gt;${moteve-server-parent-version}&lt;/version&gt;
      &lt;relativePath&gt;../moteve-server-parent/pom.xml&lt;/relativePath&gt;
    &lt;/parent&gt;
  
    &lt;groupId&gt;com.moteve&lt;/groupId&gt;
    &lt;artifactId&gt;moteve-server-webapp&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;${moteve-server-webapp-version}&lt;/version&gt;
    &lt;name&gt;Moteve Web Application&lt;/name&gt;
    &lt;url&gt;http://moteve.com&lt;/url&gt;
  
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.moteve&lt;/groupId&gt;
        &lt;artifactId&gt;moteve-server-core&lt;/artifactId&gt;
        &lt;version&gt;${moteve-server-core-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;log4j&lt;/groupId&gt;
        &lt;artifactId&gt;log4j&lt;/artifactId&gt;
        &lt;version&gt;${log4j-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
        &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
        &lt;version&gt;${servlet-api-version}&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.springframework&lt;/groupId&gt;
        &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
        &lt;version&gt;${spring-webmvc-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;${junit-version}&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;finalName&gt;moteve-server-webapp&lt;/finalName&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>