title: How to solve Unrecognized Tag error in Assembly Plugin
body: <p>I am working on Maven Assembly Project and i have no errors at all in Project ,i used Eclipse for this but when i build using Goal-clean package assembly:single or mvn package then i got Build failure.</p>
  
  <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  [INFO] Scanning for projects...
  [WARNING] 
  [WARNING] Some problems were encountered while building the effective model for com.echo360.ess-plugins:ess-moodle-plugin:jar:2.5.15-SNAPSHOT
  [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 64, column 19
  [WARNING] 
  [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  [WARNING] 
  [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  [WARNING] 
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building EchoSystem Server Moodle Publishing Plugin 2.5.15-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ ess-moodle-plugin ---
  [INFO] Deleting E:\moodle-example\target
  [INFO] 
  [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ ess-moodle-plugin ---
  [debug] execute contextualize
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 7 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ ess-moodle-plugin ---
  [INFO] Compiling 2 source files to E:\moodle-example\target\classes
  [INFO] 
  [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ ess-moodle-plugin ---
  [debug] execute contextualize
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory E:\moodle-example\src\test\resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ ess-moodle-plugin ---
  [INFO] No sources to compile
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ ess-moodle-plugin ---
  [INFO] Tests are skipped.
  [INFO] 
  [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ ess-moodle-plugin ---
  [INFO] Building jar: E:\moodle-example\target\ess-moodle-plugin-2.5.15-SNAPSHOT.jar
  [INFO] 
  [INFO] --- maven-assembly-plugin:2.2-beta-5:attached (default) @ ess-moodle-plugin ---
  [INFO] Reading assembly descriptor: src/main/assembly/publisher.xml
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3.582s
  [INFO] Finished at: Thu Feb 13 16:11:44 IST 2014
  [INFO] Final Memory: 14M/112M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (default) on project ess-moodle-plugin: Error reading assemblies: Error reading descriptor at: src/main/assembly/publisher.xml: Unrecognised tag: 'binaries' (position: START_TAG seen ...&lt;/dependencySets&gt;\r\n    &lt;binaries&gt;... @25:15) -&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/MojoExecutionException
  </code></pre>
  
  <p>Here is my POM.xml</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;com.echo360.ess-plugins&lt;/groupId&gt;  
    &lt;artifactId&gt;ess-moodle-plugin&lt;/artifactId&gt;  
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;name&gt;EchoSystem Server Moodle Publishing Plugin&lt;/name&gt;  
    &lt;build&gt; 
      &lt;plugins&gt; 
        &lt;plugin&gt; 
          &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;  
          &lt;inherited&gt;false&lt;/inherited&gt;  
          &lt;executions&gt; 
            &lt;execution&gt; 
              &lt;phase&gt;package&lt;/phase&gt;  
              &lt;goals&gt; 
                &lt;goal&gt;attached&lt;/goal&gt; 
              &lt;/goals&gt;  
              &lt;configuration&gt;
  
                &lt;archive&gt;
                  &lt;manifest&gt;
                    &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;
                  &lt;/manifest&gt;
                  &lt;manifestEntries&gt;
                    &lt;Implementation-Time&gt;${buildNumber}&lt;/Implementation-Time&gt; 
                  &lt;/manifestEntries&gt;
                &lt;/archive&gt;
                &lt;descriptors&gt;
                  &lt;descriptor&gt;src/main/assembly/publisher.xml&lt;/descriptor&gt; 
                &lt;/descriptors&gt; 
                &lt;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt;
                &lt;workDirectory&gt;${project.build.directory}/assembly/work&lt;/workDirectory&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt; 
          &lt;/executions&gt; 
        &lt;/plugin&gt;  
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.0.2&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.6&lt;/source&gt;
            &lt;target&gt;1.6&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt; 
    &lt;/build&gt;  
    &lt;profiles&gt; 
      &lt;profile&gt; 
        &lt;id&gt;non-anystream-env&lt;/id&gt;  
        &lt;activation&gt; 
          &lt;property&gt; 
            &lt;name&gt;!running-on-anystream-net&lt;/name&gt; 
          &lt;/property&gt; 
        &lt;/activation&gt;  
        &lt;build&gt; 
          &lt;plugins&gt; 
            &lt;plugin&gt; 
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;  
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;  
              &lt;configuration&gt; 
                &lt;skip&gt;true&lt;/skip&gt; 
              &lt;/configuration&gt;  
              &lt;executions&gt; 
                &lt;execution&gt; 
                  &lt;id&gt;surefire-ut&lt;/id&gt;  
                  &lt;phase&gt;unit-test&lt;/phase&gt;  
                  &lt;goals&gt; 
                    &lt;goal&gt;test&lt;/goal&gt; 
                  &lt;/goals&gt;  
                  &lt;configuration&gt; 
                    &lt;skip&gt;false&lt;/skip&gt; 
                  &lt;/configuration&gt; 
                &lt;/execution&gt; 
              &lt;/executions&gt; 
            &lt;/plugin&gt; 
          &lt;/plugins&gt; 
        &lt;/build&gt; 
      &lt;/profile&gt; 
    &lt;/profiles&gt;  
    &lt;dependencies&gt; 
      &lt;!-- compile scope --&gt;  
      &lt;dependency&gt;
        &lt;groupId&gt;com.echo360.ess&lt;/groupId&gt;
        &lt;artifactId&gt;ess-plugin-sdk&lt;/artifactId&gt;
        &lt;version&gt;2.5.15-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.echo360.ess&lt;/groupId&gt;
        &lt;artifactId&gt;ess-plugin-lib&lt;/artifactId&gt;
        &lt;version&gt;2.5.15-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.echo360.ess&lt;/groupId&gt;
        &lt;artifactId&gt;ess-property&lt;/artifactId&gt;
        &lt;version&gt;2.5.15-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;xmlrpc&lt;/groupId&gt;
        &lt;artifactId&gt;xmlrpc&lt;/artifactId&gt;
        &lt;version&gt;2.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;commons-codec&lt;/groupId&gt;
        &lt;artifactId&gt;commons-codec&lt;/artifactId&gt;
        &lt;version&gt;1.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
        &lt;version&gt;1.5.6&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;  
    &lt;version&gt;2.5.15-SNAPSHOT&lt;/version&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Here is my publisher.xml</p>
  
  <pre><code>&lt;assembly&gt;
      &lt;id&gt;publisher&lt;/id&gt;
      &lt;formats&gt;
          &lt;format&gt;jar&lt;/format&gt;
      &lt;/formats&gt;
      &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
      &lt;dependencySets&gt;
          &lt;dependencySet&gt;
              &lt;outputFileNameMapping&gt;${artifact.artifactId}.${artifact.extension}&lt;/outputFileNameMapping&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
              &lt;includes&gt;
                  &lt;include&gt;commons-codec:commons-codec&lt;/include&gt;
                  &lt;include&gt;xmlrpc:xmlrpc&lt;/include&gt;
              &lt;/includes&gt;
              &lt;outputDirectory&gt;lib&lt;/outputDirectory&gt;
          &lt;/dependencySet&gt;
      &lt;/dependencySets&gt;
      &lt;binaries&gt;
          &lt;includeDependencies&gt;true&lt;/includeDependencies&gt;
      &lt;/binaries&gt;
      &lt;fileSets&gt;
          &lt;!-- classes --&gt;
          &lt;fileSet&gt;
              &lt;directory&gt;${project.build.directory}/classes&lt;/directory&gt;
              &lt;outputDirectory&gt;/classes&lt;/outputDirectory&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;META-INF&lt;/exclude&gt;
                  &lt;exclude&gt;META-INF/*&lt;/exclude&gt;
                  &lt;exclude&gt;**/*_ar.properties&lt;/exclude&gt;
                  &lt;exclude&gt;**/*_de.properties&lt;/exclude&gt;
                  &lt;exclude&gt;**/*_es.properties&lt;/exclude&gt;
                  &lt;exclude&gt;**/*_ja.properties&lt;/exclude&gt;
              &lt;/excludes&gt;
          &lt;/fileSet&gt;
          &lt;!-- plugin.xml --&gt;
         &lt;fileSet&gt;
              &lt;directory&gt;src/main/resources/META-INF&lt;/directory&gt;
              &lt;outputDirectory&gt;/META-INF&lt;/outputDirectory&gt;
              &lt;includes&gt;
                  &lt;include&gt;plugin.xml&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/fileSet&gt;
  
      &lt;/fileSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>Here is my structure:
  <img src="https://i.stack.imgur.com/gQFaY.png" alt="enter image description here"></p>