title: add to maven a dependency packaged as mar
body: <p>I have a project which uses several dependencies from the axis2 project. one of them if the mex (metada exchange).</p>
  
  <p>the last version of <a href="http://search.maven.org/#artifactdetails%7Corg.apache.axis2%7Cmex%7C1.6.1%7Cmar" rel="nofollow">mex</a> is packaged as a mar file. If I try to add this dependency to my project maven will fail:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt;
          &lt;artifactId&gt;mex&lt;/artifactId&gt;
          &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;packaging&gt;mar&lt;/packaging&gt;
  
      &lt;/dependency&gt;
  
  org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reason: Unrecognised tag: 'packaging' (position: START_TAG seen ...&lt;/version&gt;\n\t\t\t&lt;packaging&gt;... @229:15)  for project unknown at /project/pom.xml
  at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
  at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error reading POM. Reason: Unrecognised tag: 'packaging' (position: START_TAG seen ...&lt;/version&gt;\n\t\t\t&lt;packaging&gt;... @229:15)  for project unknown at /project/pom.xml
  at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1610)
  at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1571)
  at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
  at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
  at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
  at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
  at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
  ... 12 more
  Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'packaging' (position: START_TAG seen ...&lt;/version&gt;\n\t\t\t&lt;packaging&gt;... @229:15) 
  at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency(MavenXpp3Reader.java:1225)
  at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2095)
  at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3913)
  at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1606)
  ... 18 more
  </code></pre>
  
  <p>I tried to add the mar plugin, but it didnt help</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt;
              &lt;artifactId&gt;axis2-mar-maven-plugin&lt;/artifactId&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;configuration&gt;
                  &lt;includeDependencies&gt;false&lt;/includeDependencies&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>