<!--

    Copyright (C) 2003-2019 eXo Platform SAS.

    This is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation; either version 3 of
    the License, or (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this software; if not, write to the Free
    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
  <id>jcr-addon</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <dependencySets>
    <!-- libs and its dependencies -->
    <dependencySet>
      <outputDirectory>/lib</outputDirectory>
      <includes>
        <include>*:*:jar</include>
      </includes>
      <excludes>
        <exclude>io.meeds.ws:*:*</exclude>
        <exclude>io.meeds.kernel:*:*</exclude>
        <exclude>io.meeds.core:*:*</exclude>
        <exclude>org.apache.cxf:*</exclude>
        <!-- No Apache Tomcat artifacts have to be added in the packaging -->
        <exclude>org.apache.tomcat:*</exclude>
        <!-- Ant and related aren't really useful for us at runtime -->
        <exclude>org.apache.ant:*</exclude>
        <exclude>org.apache.axis:axis-ant:*</exclude>
        <!-- commons-logging is forbidden and must be replaced by org.slf4j:jcl-over-slf4j -->
        <exclude>commons-logging:*</exclude>
        <!-- log4j is forbidden and must be replaced by org.slf4j:log4j-over-slf4j -->
        <exclude>log4j:*</exclude>
        <exclude>org.apache.logging.log4j:*</exclude>
        <!-- We use jcl-over-slf4j, thus this one is forbidden to avoid infinite loops -->
        <exclude>org.slf4j:slf4j-jcl:*</exclude>
        <!-- We use log4j-over-slf4j, thus this one is forbidden to avoid infinite loops -->
        <exclude>org.slf4j:slf4j-logj12:*</exclude>
        <!-- We use jul-to-slf4j, thus this one is forbidden to avoid infinite loops -->
        <exclude>org.slf4j:slf4j-jdk14:*</exclude>
        <!-- These old versions of xstream are in conflict with new ones under com.thoughtworks.xstream:xstream -->
        <exclude>xstream:xstream:*</exclude>
        <!-- These old versions of jdom are in conflict with new ones under org.jdom -->
        <exclude>jdom:*:*</exclude>
        <exclude>org.jdom:jdom2:*</exclude>
        <!-- Servlet API are provided by the app server. It shouldn't come from a project -->
        <exclude>javax.servlet:*</exclude>
        <exclude>com.google.gwt:gwt-user:*</exclude>
        <exclude>javax.servlet.jsp:*</exclude>
        <!-- Testing stuffs should never come here -->
        <exclude>junit:*</exclude>
        <exclude>org.testng:*</exclude>
        <exclude>org.exoplatform.tool:exo.tool.framework.junit</exclude>
        <exclude>org.jmock:*</exclude>
        <exclude>jmock:*</exclude>
        <exclude>org.mockito:*</exclude>
        <!-- These old versions of jdom are in conflict with new ones under org.jdom:* -->
        <exclude>jdom:*</exclude>
        <!-- These artifacts are in conflict with others ones under xpp3:xpp3 -->
        <exclude>xpp3:xpp3_min</exclude>
        <!-- DEP-105: These artifacts are in conflict with others ones under org.ogce:xpp3 -->
        <exclude>xpp3:xpp3</exclude>
        <!-- These artifact is in conflict with ones under commons-beanutils:commons-beanutils -->
        <exclude>commons-beanutils:commons-beanutils-core</exclude>
        <!-- This artifact is in conflict with the one under org.jboss.logging:jboss-logging -->
        <exclude>org.jboss.logging:jboss-logging-spi</exclude>
        <!-- This artifact is in conflict with the one under org.codehaus.woodstox:woodstox-core-asl -->
        <exclude>org.codehaus.woodstox:wstx-asl</exclude>
        <!-- These are provided APIs by Java itself or the app server -->
        <exclude>xml-apis:*</exclude>
        <exclude>org.apache.geronimo.specs:geronimo-stax-api_1.0_spec</exclude>
        <exclude>stax:*</exclude>
        <exclude>javax.xml.stream:*</exclude>
        <exclude>org.apache.geronimo.specs:geronimo-activation_1.0.2_spec</exclude>
        <exclude>org.jboss.javaee:jboss-transaction-api</exclude>
        <exclude>org.jboss.spec.javax.transaction:*</exclude>
        <exclude>org.ow2.spec.ee:ow2-jta-1.1-spec</exclude>
        <!-- PLF-4528 / CAL-148 : Conflict with com.totsp.feedpod:itunes-com-podcast -->
        <exclude>rome:modules:*</exclude>
        <!-- this is a build resource -->
        <exclude>org.exoplatform.resources:exo-lgpl-license-resource-bundle:*</exclude>
        <!-- Don't package any XML APIs dep to avoid conflicts the JVM -->
        <exclude>*:xmlParserAPIs:*</exclude>
        <!-- PLF-6122: Exclude icepdf older than 5.1.0. The groupId for Open Source bundles is now org.icepdf.os -->
        <exclude>org.icepdf:icepdf-core:*</exclude>
        <!-- COR-338: Exclude Apache poi-ooxml 3.8. Platform uses now 3.8-eXo01 -->
        <exclude>org.apache.poi:poi-ooxml:[3.8]</exclude>
        <!-- Exclude common artifacts already available on CE -->
        <exclude>*:antlr-runtime:jar</exclude>
        <exclude>*:antlr:jar</exclude>
        <exclude>*:apache-mime4j-core:jar</exclude>
        <exclude>*:apache-mime4j-dom:jar</exclude>
        <exclude>*:asm-debug-all:jar</exclude>
        <exclude>*:aspectjrt:jar</exclude>
        <exclude>*:bcmail-jdk15:jar</exclude>
        <exclude>*:bcprov-jdk15on:jar</exclude>
        <exclude>*:c3p0:jar</exclude>
        <exclude>*:cdi-api:jar</exclude>
        <exclude>*:common-common:jar</exclude>
        <exclude>*:common-logging:jar</exclude>
        <exclude>*:commons-beanutils:jar</exclude>
        <exclude>*:commons-codec:jar</exclude>
        <exclude>*:commons-collections:jar</exclude>
        <exclude>*:commons-compress:*</exclude>
        <exclude>*:commons-dbcp:jar</exclude>
        <exclude>*:commons-fileupload:jar</exclude>
        <exclude>*:commons-io:jar</exclude>
        <exclude>*:commons-lang3:jar</exclude>
        <exclude>*:dom4j:jar</exclude>
        <exclude>*:fontbox:jar</exclude>
        <exclude>*:groovy-all:jar</exclude>
        <exclude>*:hibernate-commons-annotations:jar</exclude>
        <exclude>*:hibernate-core:jar</exclude>
        <exclude>*:hibernate-jpa-2.0-api:jar</exclude>
        <exclude>*:httpclient:jar</exclude>
        <exclude>*:isoparser:jar</exclude>
        <exclude>*:guava:jar</exclude>
        <exclude>*:jakarta-regexp:jar</exclude>
        <exclude>*:jakarta.annotation-api:jar</exclude>
        <exclude>*:javax.inject:jar</exclude>
        <exclude>*:jakarta.activation-api:jar</exclude>
        <exclude>*:jakarta.xml.bind-api:jar</exclude>
        <exclude>*:jboss-logging:jar</exclude>
        <exclude>*:jboss-logging-annotations:jar</exclude>
        <exclude>*:jcl-over-slf4j:jar</exclude>
        <exclude>*:jhighlight:jar</exclude>
        <exclude>*:jibx-run:jar</exclude>
        <exclude>*:json-simple:jar</exclude>
        <exclude>*:jsr250-api:jar</exclude>
        <exclude>*:jsr311-api:jar</exclude>
        <exclude>*:jta:jar</exclude>
        <exclude>*:jtidy:jar</exclude>
        <exclude>*:jul-to-slf4j:jar</exclude>
        <exclude>*:juniversalchardet:jar</exclude>
        <exclude>*:mail:jar</exclude>
        <exclude>*:metadata-extractor:jar</exclude>
        <exclude>*:mime-util:jar</exclude>
        <exclude>*:netcdf:jar</exclude>
        <exclude>*:protobuf-java:jar</exclude>
        <exclude>*:poi-ooxml:jar</exclude>
        <exclude>*:poi:jar</exclude>
        <exclude>*:quartz:jar</exclude>
        <exclude>*:rome:jar</exclude>
        <exclude>*:vorbis-java-core:jar</exclude>
        <exclude>*:vorbis-java-tika:jar</exclude>
        <exclude>*:wci-wci:jar</exclude>
        <exclude>*:xercesImpl:jar</exclude>
        <exclude>*:xmlbeans:jar</exclude>
        <exclude>*:xmpcore:jar</exclude>
        <exclude>*:xpp3:jar</exclude>
        <exclude>*:xstream:jar</exclude>
        <exclude>*:xz:jar</exclude>
      </excludes>
      <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
      <useProjectArtifact>false</useProjectArtifact>
      <scope>provided</scope>
      <useTransitiveFiltering>true</useTransitiveFiltering>
    </dependencySet>
  </dependencySets>
</assembly>
