title: Deploying AEM with maven (Error)
body: <p>I am trying to deploy AEM with maven, so I follow <a href="http://dev.day.com/docs/en/cq/current/developing/developmenttools/developing-with-maven.html" rel="nofollow">this tutorial</a>. When I run the command <strong>mvn clear package</strong>, I get the following error:</p>
  
  <pre><code>C:\workspace\myproject\app&gt;mvn clean package
  [INFO] Scanning for projects...
  [WARNING] The POM for com.day.jcr.vault:maven-vault-plugin:jar:0.0.10 is missing
  , no dependency information available
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  [ERROR]
  [ERROR]   The project com.uum:app:1-SNAPSHOT (C:\workspace\myproject\app\pom.xml
  ) has 3 errors
  [ERROR]     Unresolveable build extension: Plugin com.day.jcr.vault:maven-vault-
  plugin:0.0.10 or one of its dependencies could not be resolved: Failure to find
  com.day.jcr.vault:maven-vault-plugin:jar:0.0.10 in http://repo.maven.apache.org/
  maven2 was cached in the local repository, resolution will not be reattempted un
  til the update interval of central has elapsed or updates are forced -&gt; [Help 2]
  
  [ERROR]     Unknown packaging: content-package @ line 12, column 16
  [ERROR]     'dependencies.dependency.groupId' for :core:jar is missing. @ line 1
  8, column 22
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  ch.
  [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 rea
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
  gException
  [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
  onException
  </code></pre>
  
  <p>my myproject/app/pom.xml looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;parent&gt;
          &lt;groupId&gt;com.uum&lt;/groupId&gt;
          &lt;artifactId&gt;parent&lt;/artifactId&gt;
          &lt;relativePath&gt;../parent/pom.xml&lt;/relativePath&gt;
          &lt;version&gt;1-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;artifactId&gt;app&lt;/artifactId&gt;
      &lt;packaging&gt;content-package&lt;/packaging&gt;
  
      &lt;name&gt;Sample Application package&lt;/name&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;&lt;!-- {groupId} --&gt;&lt;/groupId&gt;
              &lt;artifactId&gt;core&lt;/artifactId&gt;
              &lt;version&gt;${project.version}&lt;/version&gt;                       
          &lt;/dependency&gt;
  
          &lt;!-- add additional dependencies --&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;${basedir}/META-INF&lt;/directory&gt;
                  &lt;targetPath&gt;../vault-work/META-INF&lt;/targetPath&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;directory&gt;${basedir}/jcr_root&lt;/directory&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/.vlt&lt;/exclude&gt;
                      &lt;exclude&gt;**/.vltignore&lt;/exclude&gt;
                      &lt;exclude&gt;**/*.iml&lt;/exclude&gt;
                      &lt;exclude&gt;**/.classpath&lt;/exclude&gt;
                      &lt;exclude&gt;**/.project&lt;/exclude&gt;
                      &lt;exclude&gt;**/.DS_Store&lt;/exclude&gt;
                      &lt;exclude&gt;**/target/**&lt;/exclude&gt;
                      &lt;exclude&gt;libs/**&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
  
          &lt;plugins&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;com.day.jcr.vault&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-vault-plugin&lt;/artifactId&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;group&gt;Sample&lt;/group&gt;
                      &lt;requiresRoot&gt;true&lt;/requiresRoot&gt;
  
                      &lt;install&gt;true&lt;/install&gt;
                      &lt;verbose&gt;true&lt;/verbose&gt;
  
                      &lt;packageFile&gt;${project.build.directory}/${project.artifactId}-${project.version}.zip&lt;/packageFile&gt;
  
                      &lt;version&gt;${project.version}&lt;/version&gt;
                      &lt;properties&gt;
                          &lt;acHandling&gt;overwrite&lt;/acHandling&gt;
                      &lt;/properties&gt;
  
                      &lt;embeddeds&gt;
                          &lt;embedded&gt;
                              &lt;groupId&gt;&lt;!-- {groupId} --&gt;&lt;/groupId&gt;
                              &lt;artifactId&gt;core&lt;/artifactId&gt;
                              &lt;target&gt;&lt;!-- {install path in the repository (e.g. /apps/myproject/install)} --&gt;&lt;/target&gt;
                          &lt;/embedded&gt;
                      &lt;/embeddeds&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;installPackages&lt;/id&gt;
              &lt;activation&gt;
              &lt;/activation&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;com.day.jcr.vault&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-vault-plugin&lt;/artifactId&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;install-package&lt;/id&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;install&lt;/goal&gt;
                                  &lt;/goals&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Any idea how to get the deployment with maven works?</p>