Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A6EA7200BE4 for ; Wed, 7 Dec 2016 03:47:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A4CF6160B29; Wed, 7 Dec 2016 02:47:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2499B160B1B for ; Wed, 7 Dec 2016 03:47:24 +0100 (CET) Received: (qmail 6015 invoked by uid 500); 7 Dec 2016 02:47:24 -0000 Mailing-List: contact users-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@apex.apache.org Delivered-To: mailing list users@apex.apache.org Received: (qmail 6001 invoked by uid 99); 7 Dec 2016 02:47:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 02:47:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 711631803A4 for ; Wed, 7 Dec 2016 02:47:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.71 X-Spam-Level: ** X-Spam-Status: No, score=2.71 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, HTML_TAG_BALANCE_BODY=0.712, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6PwV5r-56Xbl for ; Wed, 7 Dec 2016 02:47:17 +0000 (UTC) Received: from mail-pf0-f172.google.com (mail-pf0-f172.google.com [209.85.192.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6A1D75F19B for ; Wed, 7 Dec 2016 02:47:16 +0000 (UTC) Received: by mail-pf0-f172.google.com with SMTP id d2so73976922pfd.0 for ; Tue, 06 Dec 2016 18:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to; bh=agJxxlf6szKzivuvD6tBqvuT9HEUczwdpuhg+LJZCyQ=; b=e/Jm6AJIxW6E45vnUkMqLbwFu7vMRyXJhzoj4E2rPIl0jjL/C/MIzkGw2h2IoBNMCE k3jmEkk+IkTx6NaDhXvCDslat5kfqHy4D8e98ByLrkr06VoI8r5SNb6IXkp/lXmtaZHf 8g9BcePUYkF4+s3gEbCDaYoNUL/TdJP6lbBM7rZe0qOVmq90xTATAd6PFyQKayakDHcP OUQlCRK+wOY2thB5o4gjAvX8C43IRIFwG1qiiBAHOki+C6pL3w4G4phYz8QuMRiz3WXi td+rkjWQZNSWYW+RVUg+c0NIR79aBn9hqaTHb0GimYzdEmernXvRqR8nvm8iwGuOm93D PwYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to; bh=agJxxlf6szKzivuvD6tBqvuT9HEUczwdpuhg+LJZCyQ=; b=AFOGRPmheLrOOXYqan8e6RKtFNSLzbDs/QaUjK0Hr6JsD+AQxMNdjDmTM5EbKwgm+o L8XT2mVicKl+ZDVOnI3YnAgZxGR0p0z3MQkKOkTWhI2yv6laVZz3mecU8H/H3zM0Qjnn v8lX7mFm6Bel8I2ekF7Q5UmU6Ow2KSo6kQG3jvCsd+yXkz04+617atmd1NkzQQOP6x+S 8806bjL7IBXef4T5Z2abv6v2cqk2VwyRXoamNr+eVEpg3sfMUg4vSAOJ9VleODglKsfT 47VIYFpYkRkjtkNTtQGtFLzjtIiCwEjWB0+OAuTl16O/BzSaa8CuDL9ob7z9g6svFkfz fspw== X-Gm-Message-State: AKaTC00/54WklDnVABONyq556uHeeRd3MEbDR3Ui5thQFbDRkwNloVT1ZYFeHPnnqbyWu/eG X-Received: by 10.84.217.70 with SMTP id e6mr141797780plj.161.1481078832655; Tue, 06 Dec 2016 18:47:12 -0800 (PST) Received: from vrozov.local (173-13-134-81-sfba.hfc.comcastbusiness.net. [173.13.134.81]) by smtp.googlemail.com with ESMTPSA id a7sm37674723pfl.87.2016.12.06.18.47.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 18:47:11 -0800 (PST) Subject: Re: maven-shade-plugin To: users@apex.apache.org References: From: Vlad Rozov Organization: DataTorrent Message-ID: <56fa6f6b-5472-ea84-7bde-4a0a42c377a3@datatorrent.com> Date: Tue, 6 Dec 2016 18:47:10 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------CC4F851CE6497C6CF06CE25B" archived-at: Wed, 07 Dec 2016 02:47:30 -0000 This is a multi-part message in MIME format. --------------CC4F851CE6497C6CF06CE25B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Apex depends on httpclient 4.3.5 and if httpclient follows proper=20 semantic versioning, httpclient 4.5.2 should be binary compatible with=20 4.3.5. You may try to replace httpclient-4.3.5.jar and=20 httpcore-4.3.2.jar in the apex lib installation=20 (/opt/datatorrent/current/lib) with httpclient-4.5.2.jar and the=20 corresponding httpcore dependency. Thank you, Vlad On 12/6/16 12:07, Jim wrote: > > Munagala, > > I don=E2=80=99t get the error that you identify; but I also don=E2=80=99= t see the=20 > shaded module in the FILE folder when done. > > And, since the deps was copied in the maven-assembly-plugin, I still=20 > see the 4.5.2 httpclient library in the FILES folder. > > So I don=E2=80=99t think this is set up properly yet. > > Jim > > *From:*Jim [mailto:jim@facility.supplies] > *Sent:* Tuesday, December 6, 2016 1:52 PM > *To:* users@apex.apache.org > *Subject:* RE: maven-shade-plugin > > Did that correctly shade the httpclient library then? > > *From:*Munagala Ramanath [mailto:ram@datatorrent.com] > *Sent:* Tuesday, December 6, 2016 1:45 PM > *To:* users@apex.apache.org > *Subject:* Re: maven-shade-plugin > > I tried your pom.xml with the simple project generated by the maven=20 > apex archetype and got this error: > > -------------------- > > [ERROR] Failed to execute goal=20 > org.apache.maven.plugins:maven-resources-plugin:2.7:copy-resources=20 > (copy-resources) on project edi: Mark invalid -> [Help 1] > > -------------------- > > I then added this fragment to the maven-resources-plugin element: > > > > > > org.apache.maven.shared > > maven-filtering > > 1.3 > > > > > > This time the build was successful. There is some discussion of this=20 > "Mark invalid" error at: > > http://stackoverflow.com/questions/26281322/mavenfailed-to-execute-goal= -org-apache-maven-pluginsmaven-resources-plugin2-7 > > Ram > > On Tue, Dec 6, 2016 at 5:41 AM, Jim > wrote: > > Good morning, > > Has anyone successfully gotten the maven-shade-plugin to work to > create the necessary datatorrent .apa file, with the appropriate > ancillary libraries? > > I am having a problem with Amazon=E2=80=99s EMR and a conflict with= the > org.apache.httpcomponents.httpclient library. My application > requires the latest version, 4.5.2, and the Hadoop / yarn system > requires an earlier version. > > So I am trying to use the maven-shade-plugin to bundle and > relocate the httpcomponents libraries to eliminate the conflict. > > Can someone see my source files below, and let me know the correct > way to configure my pom.xml so that the shade plugin works, in > conjunction with the rest of the plugins? I have included both > the pom.xml, and the appPackage.xml that is used by the > maven-assembly-plugin in the step right after the shad plugin. > > I have attempted to highlight the maven-shade-plugin section, but > am not sure if it will carry through to everyone=E2=80=99s email re= ader! > > Thanks in advance for any assistance you can provide to get this > working! > > Jim > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D pom.xml > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > / > /<*project **xmlns**=3D"http://maven.apache.org/POM/4.0.0" > **xmlns:**xsi**=3D"http://www.w3.org/2001/XMLSchema-instance" > **xsi**:schemaLocation**=3D"http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"*> > <*modelVersion*>4.0.0 > > <*groupId*>supplies.facility > <*version*>1.0-SNAPSHOT > <*artifactId*>edi > <*packaging*>jar > > / > /<*name*>FS EDI > <*description*>Facility Supplies EDI Processor > > <*properties*> > / > /<*malhar.version*>3.5.0 > <*apex.version*>3.4.0 > <*datatorrent.apppackage.classpath*>lib/*.jar > <*apex.apppackage.classpath*>lib/*.jar > <*datatorrent.appconf.files*>files/* > <*elasticsearch.version*>[2.2,2.3-alpha) > <*smooks.version*>1.6 > <*maven-enforcer-plugin.version*>[1.0,2.0-alpha) > > > / > /<*repositories*> > <*repository*> > <*snapshots*> > <*enabled*>false > > <*id*>Datatorrent-Releases > <*name*>DataTorrent Release Repository > <*url*>https://www.datatorrent.com/maven/content/repositories/relea= ses/ > > <*repository*> > <*releases*> > <*enabled*>false > > <*id*>DataTorrent-Snapshots > <*name*>DataTorrent Early Access Program Snapshot Repository > <*url*>https://www.datatorrent.com/maven/content/repositories/snaps= hots/ > > > > <*build*> > <*plugins*> > <*plugin*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-eclipse-plugin > <*version*>2.9 > <*configuration*> > <*downloadSources*>true > > > <*plugin*> > <*artifactId*>maven-compiler-plugin > <*version*>3.3 > <*configuration*> > <*encoding*>UTF-8 > <*source*>1.7 > <*target*>1.7 > <*debug*>true > <*optimize*>false > <*showDeprecation*>true > <*showWarnings*>true > > > <*plugin*> > <*artifactId*>maven-dependency-plugin > <*version*>2.8 > <*executions*> > <*execution*> > <*id*>copy-dependencies > <*phase*>prepare-package > <*goals*> > <*goal*>copy-dependencies > > <*configuration*> > <*outputDirectory*>target/deps > <*includeScope*>runtime > > > > > > > <*plugin*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-enforcer-plugin > <*version*>1.4.1 > <*executions*> > <*execution*> > <*id*>enforce > <*configuration*> > <*rules*> > <*DependencyConvergence*/> > > > <*goals*> > <*goal*>enforce > > > > > > <*plugin*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-shade-plugin > <*version*>2.4.3 > <*executions*> > <*execution*> > <*phase*>package > <*goals*> > <*goal*>shade > > <*configuration*> > =20 > <*shadedArtifactAttached*>true > <*relocations*> > <*relocation*> > <*pattern*>org.apache.httpcomponents > =20 > <*shadedPattern*>org.shaded.httpcomponents > <*includes*> > <*include*>org.apache.httpcomponents.* > > > > > > > > > <*plugin*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-assembly-plugin > <*version*>2.6 > <*executions*> > <*execution*> > <*id*>app-package-assembly > <*phase*>package > <*goals*> > <*goal*>single > > <*configuration*> > <*finalName*>${project.artifactId}-${project.version}-apexapp > <*appendAssemblyId*>false > <*descriptors*> > <*descriptor*>src/assemble/appPackage.xml > > <*archiverConfig*> > <*defaultDirectoryMode*>0755 > > <*archive*> > <*manifestEntries*> > <*Class-Path*>${datatorrent.apppackage.classpath} > <*DT-Engine-Version*>${apex.version} > <*DT-App-Package-Name*>${project.artifactId} > <*DT-App-Package-Version*>${project.version} > <*DT-App-Package-Display-Name*>${project.name > } > <*DT-App-Package-Description*>${project.description} > > > > > > > > <*plugin*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-antrun-plugin > <*version*>1.8 > <*executions*> > <*execution*> > <*phase*>package > <*configuration*> > <*target*> > <*move > **file**=3D"${project.build.directory}/${project.artifactId}-${proj= ect.version}-apexapp.jar" > **tofile**=3D"${project.build.directory}/${project.artifactId}-${pr= oject.version}.apa" > */> > > > <*goals*> > <*goal*>run > > > <*execution*> > / > /<*id*>createJavadocDirectory > <*phase*>generate-resources > <*configuration*> > <*tasks*> > <*delete > **dir**=3D"${project.build.directory}/generated-resources/xml-javad= oc"*/> > <*mkdir > **dir**=3D"${project.build.directory}/generated-resources/xml-javad= oc"*/> > > > <*goals*> > <*goal*>run > > > > > > <*plugin*> > <*groupId*>org.codehaus.mojo > <*artifactId*>build-helper-maven-plugin > <*version*>1.10 > <*executions*> > <*execution*> > <*id*>attach-artifacts > <*phase*>package > <*goals*> > <*goal*>attach-artifact > > <*configuration*> > <*artifacts*> > <*artifact*> > <*file*>target/${project.artifactId}-${project.version}.apa > <*type*>apa > > > <*skipAttach*>false > > > > > > / > /<*plugin*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-javadoc-plugin > <*version*>2.10.3 > <*executions*> > / > /<*execution*> > <*id*>xml-doclet > <*phase*>generate-resources > <*goals*> > <*goal*>javadoc > > <*configuration*> > <*doclet*>com.github.markusbernhardt.xmldoclet.XmlDoclet= > <*additionalparam*>-d > ${project.build.directory}/generated-resources/xml-javadoc > -filename > ${project.artifactId}-${project.version}-javadoc.xml > <*useStandardDocletOptions*>false > <*docletArtifact*> > <*groupId*>com.github.markusbernhardt > <*artifactId*>xml-doclet > <*version*>1.0.4 > > > > > > / > /<*plugin*> > <*groupId*>org.codehaus.mojo > <*artifactId*>xml-maven-plugin > <*version*>1.0.1 > <*executions*> > <*execution*> > <*id*>transform-xmljavadoc > <*phase*>generate-resources > <*goals*> > <*goal*>transform > > > > <*configuration*> > <*transformationSets*> > <*transformationSet*> > <*dir*>${project.build.directory}/generated-resources/xml-javadoc > <*includes*> > <*include*>${project.artifactId}-${project.version}-javadoc.xml > > <*stylesheet*>XmlJavadocCommentsExtractor.xsl > <*outputDir*>${project.build.directory}/generated-resources/xml-jav= adoc > > > > > / > /<*plugin*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-resources-plugin > <*version*>2.7 > <*executions*> > <*execution*> > <*id*>copy-resources > <*phase*>process-resources > <*goals*> > <*goal*>copy-resources > > <*configuration*> > <*outputDirectory*>${basedir}/target/classes > <*resources*> > <*resource*> > <*directory*>${project.build.directory}/generated-resources/xml-jav= adoc > <*includes*> > <*include*>${project.artifactId}-${project.version}-javadoc.xml > > <*filtering*>true > > > > > > > > > > <*dependencies*> > //<*dependency*> > <*groupId*>org.apache.apex > <*artifactId*>malhar-library > <*version*>${malhar.version} > > //<*dependency*> > <*groupId*>org.apache.apex > <*artifactId*>apex-common > <*version*>${apex.version} > <*scope*>provided > > <*dependency*> > <*groupId*>org.apache.apex > <*artifactId*>apex-engine > <*version*>${apex.version} > <*scope*>test > <*exclusions*> > <*exclusion*> > <*artifactId*>commons-lang > <*groupId*>commons-lang > > > > <*dependency*> > <*groupId*>junit > <*artifactId*>junit > <*version*>4.8.2 > <*scope*>test > > <*dependency*> > <*groupId*>org.elasticsearch > <*artifactId*>elasticsearch > <*version*>${elasticsearch.version} > <*exclusions*> > <*exclusion*> > <*artifactId*>jackson-dataformat-cbor > <*groupId*>com.fasterxml.jackson.dataformat > > > > <*dependency*> > <*groupId*>org.milyn > <*artifactId*>milyn-smooks-edi > <*version*>${smooks.version} > <*exclusions*> > <*exclusion*> > <*artifactId*>xercesImpl > <*groupId*>xerces > > <*exclusion*> > <*artifactId*>icu4j > <*groupId*>com.ibm.icu > > <*exclusion*> > <*artifactId*>xalan > <*groupId*>xalan > > <*exclusion*> > <*artifactId*>commons-lang > <*groupId*>commons-lang > > > > <*dependency*> > <*groupId*>org.slf4j > <*artifactId*>slf4j-api > <*version*>1.7.16 > > <*dependency*> > <*groupId*>org.apache.hadoop > <*artifactId*>hadoop-common > <*version*>2.2.0 > <*scope*>provided > <*exclusions*> > <*exclusion*> > <*artifactId*>commons-lang > <*groupId*>commons-lang > > > > <*dependency*> > <*groupId*>commons-lang > <*artifactId*>commons-lang > <*version*>2.5 > > //<*dependency*> > <*groupId*>com.amazonaws > <*artifactId*>aws-java-sdk-sqs > <*version*>1.11.56 > > <*dependency*> > <*groupId*>com.amazonaws > <*artifactId*>amazon-sqs-java-messaging-lib > <*version*>1.0.1 > <*exclusions*> > <*exclusion*> > <*groupId*>com.amazonaws > <*artifactId*>aws-java-sdk-sqs > > > > //<*dependency*> > <*groupId*>axis > <*artifactId*>axis > <*version*>1.4 > > <*dependency*> > <*groupId*>org.apache.axis > <*artifactId*>axis-jaxrpc > <*version*>1.4 > > <*dependency*> > <*groupId*>org.postgresql > <*artifactId*>postgresql > <*version*>9.4.1208.jre7 > > <*dependency*> > <*groupId*>com.jayway.jsonpath > <*artifactId*>json-path > <*version*>2.2.0 > > <*dependency*> > <*groupId*>com.esotericsoftware > <*artifactId*>kryo > <*version*>4.0.0 > > <*dependency*> > <*groupId*>de.javakaffee > <*artifactId*>kryo-serializers > <*version*>0.41 > > <*dependency*> > <*groupId*>com.github.jknack > <*artifactId*>handlebars > <*version*>4.0.5 > > <*dependency*> > <*groupId*>com.github.jknack > <*artifactId*>handlebars-jackson2 > <*version*>4.0.5 > > <*dependency*> > <*groupId*>com.github.jknack > <*artifactId*>handlebars-guava-cache > <*version*>4.0.5 > > > > <*dependencyManagement*> > <*dependencies*> > <*dependency*> > <*groupId*>com.google.guava > <*artifactId*>guava > <*version*>20.0 > > <*dependency*> > <*groupId*>commons-beanutils > <*artifactId*>commons-beanutils > <*version*>1.9.3 > > <*dependency*> > <*groupId*>commons-cli > <*artifactId*>commons-cli > <*version*>1.3.1 > > <*dependency*> > <*groupId*>commons-codec > <*artifactId*>commons-codec > <*version*>1.10 > > <*dependency*> > <*groupId*>commons-lang > <*artifactId*>commons-lang > <*version*>2.6 > > <*dependency*> > <*groupId*>commons-logging > <*artifactId*>commons-logging > <*version*>1.1.3 > > <*dependency*> > <*groupId*>javax.servlet > <*artifactId*>servlet-api > <*version*>2.5 > > <*dependency*> > <*groupId*>log4j > <*artifactId*>log4j > <*version*>1.2.17 > > <*dependency*> > <*groupId*>org.codehaus.jackson > <*artifactId*>jackson-core-asl > <*version*>1.9.2 > > <*dependency*> > <*groupId*>org.codehaus.jackson > <*artifactId*>jackson-mapper-asl > <*version*>1.9.2 > > <*dependency*> > <*groupId*>org.slf4j > <*artifactId*>slf4j-api > <*version*>1.7.16 > > <*dependency*> > <*groupId*>org.slf4j > <*artifactId*>slf4j-log4j12 > <*version*>1.7.5 > > <*dependency*> > <*groupId*>org.apache.httpcomponents > <*artifactId*>httpclient > <*version*>4.5.2 > > <*dependency*> > <*groupId*>io.netty > <*artifactId*>netty > <*version*>3.10.6.Final > > <*dependency*> > <*groupId*>com.fasterxml.jackson.core > <*artifactId*>jackson-core > <*version*>2.8.4 > > <*dependency*> > <*groupId*>joda-time > <*artifactId*>joda-time > <*version*>2.9.6 > > <*dependency*> > <*groupId*>com.thoughtworks.xstream > <*artifactId*>xstream > <*version*>1.4.9 > > <*dependency*> > <*groupId*>jaxen > <*artifactId*>jaxen > <*version*>1.1.1 > <*exclusions*> > <*exclusion*> > <*groupId*>jaxen > <*artifactId*>jaxen > > > > <*dependency*> > <*groupId*>xml-apis > <*artifactId*>xml-apis > <*version*>1.3.02 > > <*dependency*> > <*groupId*>org.apache.commons > <*artifactId*>commons-compress > <*version*>1.10 > > <*dependency*> > <*groupId*>org.apache.apex > <*artifactId*>apex-common > <*version*>${apex.version} > > <*dependency*> > <*groupId*>org.ow2.asm > <*artifactId*>asm > <*version*>5.0.4 > > <*dependency*> > <*groupId*>commons-collections > <*artifactId*>commons-collections > <*version*>3.2.2 > > <*dependency*> > <*groupId*>com.amazonaws > <*artifactId*>aws-java-sdk-core > <*version*>1.11.56 > > <*dependency*> > <*groupId*>org.objenesis > <*artifactId*>objenesis > <*version*>2.2 > > <*dependency*> > <*groupId*>com.fasterxml.jackson.core > <*artifactId*>jackson-databind > <*version*>2.6.6 > > <*dependency*> > <*groupId*>com.fasterxml.jackson.core > <*artifactId*>jackson-dataformat-cbor > <*version*>2.6.6 > > <*dependency*> > <*groupId*>org.apache.maven.plugins > <*artifactId*>maven-shade-plugin > <*version*>2.4.3 > > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D appPackage.xml > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > > <*assembly **xmlns**=3D"http://maven.apache.org/plugins/maven-assem= bly-plugin/assembly/1.1.2" > **xmlns:**xsi**=3D"http://www.w3.org/2001/XMLSchema-instance" **xsi= :schemaLocation**=3D"http://maven.apache.org/plugins/maven-assembly-plugi= n/assembly/1.1.2 > http://maven.apache.org/xsd/assembly-1.1.2.xsd"*><*id*>appPackage<*formats*><*format*>jar<*includeBaseDirector= y*>false<*fileSets*><*fileSet*><*directory*>${ba= sedir}/target/<*outputDirectory*>${file.separator}app<*includes*><*include*>${project.artifactId}-${project.vers= ion}.jar<*fileSet*><*directory*>${ba= sedir}/target/deps<*outputDirectory*>${file.separator}lib<*fileSet*><*directory*>${basedir}/src/site= /conf<*outputDirectory*>${file.separator}conf<*includes*><*include*>*.xml<*= fileSet*><*directory*>${basedir}/src/main/resources/META-INF<*outputDirectory*>${file.separator}META-INF<*fileSet*><*directory*>${basedir}/src/main/resources/app<*outputDirectory*>${file.separator}app= <*fileSet*><*directory*>${basedir}/src/main/resources/resources<*outputDirectory*>${file.separator}resources > --------------CC4F851CE6497C6CF06CE25B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Apex depends on httpclient 4.3.5 and if httpclient follows proper semantic versioning, httpclient 4.5.2 should be binary compatible with 4.3.5. You may try to replace httpclient-4.3.5.jar and httpcore-4.3.2.jar in the apex lib installation (/opt/datatorrent/current/lib) with httpclient-4.5.2.jar and the corresponding httpcore dependency.

Thank you,

Vlad

On 12/6/16 12:07, Jim wrote:

Munagala,

 

I don’t get the error that you identify; but I also don’t see the shaded module in the FILE folder when done.

 

And, since the deps was copied in the maven-assembly-plugin, I still see the 4.5.2 httpclient library in the FILES folder.

 

So I don’t think this is set up properly yet.

 

Jim

 

From: Jim [mailto:jim@facility.supplies]
Sent: Tuesday, December 6, 2016 1:52 PM
To: users@apex.apache.org
Subject: RE: maven-shade-plugin

 

Did that correctly shade the httpclient library then?

 

 

From: Munagala Ramanath [mailto:ram@datatorrent.com]
Sent: Tuesday, December 6, 2016 1:45 PM
To: users@apex.apache.org
Subject: Re: maven-shade-plugin

 

I tried your pom.xml with the simple project generated by the maven apex archetype and got this error:

 

--------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:copy-resources (copy-resources) on project edi: Mark invalid -> [Help 1]

--------------------

 

I then added this fragment to the maven-resources-plugin element:

 

        <dependencies>

          <dependency>

              <groupId>org.apache.maven.shared</groupId>

              <artifactId>maven-filtering</artifactId>

              <version>1.3</version>

          </dependency>

        </dependencies>

 

This time the build was successful. There is some discussion of this "Mark invalid" error at:

 

 

Ram

 

 

On Tue, Dec 6, 2016 at 5:41 AM, Jim <jim@facility.supplies> wrote:

Good morning,

 

Has anyone successfully gotten the maven-shade-plugin to work to create the necessary datatorrent .apa file, with the appropriate ancillary libraries?

 

I am having a problem with Amazon’s EMR and a conflict with the org.apache.httpcomponents.httpclient library.  My application requires the latest version, 4.5.2, and the Hadoop / yarn system requires an earlier version.

 

So I am trying to use the maven-shade-plugin to bundle and relocate the httpcomponents libraries to eliminate the conflict.

 

Can someone see my source files below, and let me know the correct way to configure my pom.xml so that the shade plugin works, in conjunction with the rest of the plugins?  I have included both the pom.xml, and the appPackage.xml that is used by the maven-assembly-plugin in the step right after the shad plugin.

 

I have attempted to highlight the maven-shade-plugin section, but am not sure if it will carry through to everyone’s email reader!

 

Thanks in advance for any assistance you can provide to get this working!

 

Jim

 

======================================  pom.xml ======================================================================

 

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
  <
modelVersion>4.0.0</modelVersion>
 
  <
groupId>supplies.facility</groupId>
  <
version>1.0-SNAPSHOT</version>
  <
artifactId>edi</artifactId>
  <
packaging>jar</packaging>

 
<!-- change these to the appropriate values -->
 
<name>FS EDI</name>
  <
description>Facility Supplies EDI Processor</description>

  <
properties>
   
<!-- change this if you desire to use a different version of DataTorrent -->
   
<malhar.version>3.5.0</malhar.version>
    <
apex.version>3.4.0</apex.version>
    <
datatorrent.apppackage.classpath>lib/*.jar</datatorrent.apppackage.classpath>
    <
apex.apppackage.classpath>lib/*.jar</apex.apppackage.classpath>
    <
datatorrent.appconf.files>files/*</datatorrent.appconf.files>
    <
elasticsearch.version>[2.2,2.3-alpha)</elasticsearch.version>
    <
smooks.version>1.6</smooks.version>
    <
maven-enforcer-plugin.version>[1.0,2.0-alpha)</maven-enforcer-plugin.version>
  </
properties>

 
<!-- repository to provide the DataTorrent artifacts -->
 
<repositories>
    <
repository>
      <
snapshots>
        <
enabled>false</enabled>
      </
snapshots>
      <
id>Datatorrent-Releases</id>
      <
name>DataTorrent Release Repository</name>
      <
url>https://www.datatorrent.com/maven/content/repositories/releases/</url>
    </
repository>
    <
repository>
      <
releases>
        <
enabled>false</enabled>
      </
releases>
      <
id>DataTorrent-Snapshots</id>
      <
name>DataTorrent Early Access Program Snapshot Repository</name>
      <
url>https://www.datatorrent.com/maven/content/repositories/snapshots/</url>
    </
repository>
  </
repositories>

  <
build>
   <
plugins>
      <
plugin>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-eclipse-plugin</artifactId>
        <
version>2.9</version>
        <
configuration>
          <
downloadSources>true</downloadSources>
        </
configuration>
      </
plugin>
      <
plugin>
        <
artifactId>maven-compiler-plugin</artifactId>
        <
version>3.3</version>
        <
configuration>
          <
encoding>UTF-8</encoding>
          <
source>1.7</source>
          <
target>1.7</target>
         <
debug>true</debug>
          <
optimize>false</optimize>
          <
showDeprecation>true</showDeprecation>
          <
showWarnings>true</showWarnings>
        </
configuration>
      </
plugin>
      <
plugin>
        <
artifactId>maven-dependency-plugin</artifactId>
        <
version>2.8</version>
        <
executions>
          <
execution>
            <
id>copy-dependencies</id>
            <
phase>prepare-package</phase>
            <
goals>
              <
goal>copy-dependencies</goal>
            </
goals>
            <
configuration>
              <
outputDirectory>target/deps</outputDirectory>
              <
includeScope>runtime</includeScope>
            </
configuration>
          </
execution>
        </
executions>
      </
plugin>


     <
plugin>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-enforcer-plugin</artifactId>
        <
version>1.4.1</version>
        <
executions>
          <
execution>
            <
id>enforce</id>
            <
configuration>
              <
rules>
                <
DependencyConvergence/>
              </
rules>
            </
configuration>
            <
goals>
              <
goal>enforce</goal>
            </
goals>
          </
execution>
        </
executions>
      </
plugin>

      <
plugin>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-shade-plugin</artifactId>
        <
version>2.4.3</version>
        <
executions>
          <
execution>
            <
phase>package</phase>
            <
goals>
              <
goal>shade</goal>
            </
goals>
            <
configuration>
              <
shadedArtifactAttached>true</shadedArtifactAttached>
              <
relocations>
                <
relocation>
                  <
pattern>org.apache.httpcomponents</pattern>
                  <
shadedPattern>org.shaded.httpcomponents</shadedPattern>
                  <
includes>
                    <
include>org.apache.httpcomponents.*</include>
                  </
includes>
                </
relocation>
              </
relocations>
            </
configuration>
          </
execution>
        </
executions>
      </
plugin>

      <
plugin>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-assembly-plugin</artifactId>
        <
version>2.6</version>
        <
executions>
          <
execution>
            <
id>app-package-assembly</id>
            <
phase>package</phase>
            <
goals>
              <
goal>single</goal>
            </
goals>
            <
configuration>
              <
finalName>${project.artifactId}-${project.version}-apexapp</finalName>
              <
appendAssemblyId>false</appendAssemblyId>
              <
descriptors>
                <
descriptor>src/assemble/appPackage.xml</descriptor>
              </
descriptors>
              <
archiverConfig>
                <
defaultDirectoryMode>0755</defaultDirectoryMode>
              </
archiverConfig>
              <
archive>
                <
manifestEntries>
                  <
Class-Path>${datatorrent.apppackage.classpath}</Class-Path>
                  <
DT-Engine-Version>${apex.version}</DT-Engine-Version>
                  <
DT-App-Package-Name>${project.artifactId}</DT-App-Package-Name>
                  <
DT-App-Package-Version>${project.version}</DT-App-Package-Version>
                  <
DT-App-Package-Display-Name>${project.name}</DT-App-Package-Display-Name>
                  <
DT-App-Package-Description>${project.description}</DT-App-Package-Description>
                </
manifestEntries>
              </
archive>
            </
configuration>
          </
execution>
        </
executions>
      </
plugin>

      <
plugin>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-antrun-plugin</artifactId>
        <
version>1.8</version>
        <
executions>
          <
execution>
            <
phase>package</phase>
            <
configuration>
              <
target>
                <
move file="${project.build.directory}/${project.artifactId}-${project.version}-apexapp.jar"
                     
tofile="${project.build.directory}/${project.artifactId}-${project.version}.apa" />
              </
target>
            </
configuration>
            <
goals>
              <
goal>run</goal>
            </
goals>
          </
execution>
          <
execution>
            
<!-- create resource directory for xml javadoc-->
           
<id>createJavadocDirectory</id>
            <
phase>generate-resources</phase>
            <
configuration>
              <
tasks>
                <
delete dir="${project.build.directory}/generated-resources/xml-javadoc"/>
                <
mkdir dir="${project.build.directory}/generated-resources/xml-javadoc"/>
              </
tasks>
            </
configuration>
            <
goals>
              <
goal>run</goal>
            </
goals>
          </
execution>
        </
executions>
      </
plugin>

      <
plugin>
        <
groupId>org.codehaus.mojo</groupId>
        <
artifactId>build-helper-maven-plugin</artifactId>
        <
version>1.10</version>
        <
executions>
          <
execution>
            <
id>attach-artifacts</id>
            <
phase>package</phase>
            <
goals>
              <
goal>attach-artifact</goal>
            </
goals>
            <
configuration>
              <
artifacts>
                <
artifact>
                  <
file>target/${project.artifactId}-${project.version}.apa</file>
                  <
type>apa</type>
                </
artifact>
              </
artifacts>
              <
skipAttach>false</skipAttach>
            </
configuration>
          </
execution>
        </
executions>
      </
plugin>

     
<!-- generate javdoc -->
     
<plugin>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-javadoc-plugin</artifactId>
        <
version>2.10.3</version>
        <
executions>
         
<!-- generate xml javadoc -->
         
<execution>
            <
id>xml-doclet</id>
            <
phase>generate-resources</phase>
            <
goals>
              <
goal>javadoc</goal>
            </
goals>
            <
configuration>
              <
doclet>com.github.markusbernhardt.xmldoclet.XmlDoclet</doclet>
              <
additionalparam>-d ${project.build.directory}/generated-resources/xml-javadoc -filename ${project.artifactId}-${project.version}-javadoc.xml</additionalparam>
              <
useStandardDocletOptions>false</useStandardDocletOptions>
              <
docletArtifact>
                <
groupId>com.github.markusbernhardt</groupId>
                <
artifactId>xml-doclet</artifactId>
                <
version>1.0.4</version>
              </
docletArtifact>
            </
configuration>
          </
execution>
        </
executions>
      </
plugin>
     
<!-- Transform xml javadoc to stripped down version containing only class/interface comments and tags-->
     
<plugin>
        <
groupId>org.codehaus.mojo</groupId>
        <
artifactId>xml-maven-plugin</artifactId>
        <
version>1.0.1</version>
        <
executions>
          <
execution>
            <
id>transform-xmljavadoc</id>
            <
phase>generate-resources</phase>
            <
goals>
              <
goal>transform</goal>
            </
goals>
          </
execution>
        </
executions>
        <
configuration>
          <
transformationSets>
            <
transformationSet>
              <
dir>${project.build.directory}/generated-resources/xml-javadoc</dir>
              <
includes>
                <
include>${project.artifactId}-${project.version}-javadoc.xml</include>
              </
includes>
              <
stylesheet>XmlJavadocCommentsExtractor.xsl</stylesheet>
              <
outputDir>${project.build.directory}/generated-resources/xml-javadoc</outputDir>
            </
transformationSet>
          </
transformationSets>
        </
configuration>
      </
plugin>
     
<!-- copy xml javadoc to class jar -->
     
<plugin>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-resources-plugin</artifactId>
        <
version>2.7</version>
        <
executions>
          <
execution>
            <
id>copy-resources</id>
            <
phase>process-resources</phase>
            <
goals>
              <
goal>copy-resources</goal>
            </
goals>
            <
configuration>
              <
outputDirectory>${basedir}/target/classes</outputDirectory>
              <
resources>
                <
resource>
                  <
directory>${project.build.directory}/generated-resources/xml-javadoc</directory>
                  <
includes>
                    <
include>${project.artifactId}-${project.version}-javadoc.xml</include>
                  </
includes>
                  <
filtering>true</filtering>
                </
resource>
              </
resources>
            </
configuration>
          </
execution>
        </
executions>
      </
plugin>
    </
plugins>
  </
build>

  <
dependencies>
    <dependency>
      <
groupId>org.apache.apex</groupId>
      <
artifactId>malhar-library</artifactId>
      <
version>${malhar.version}</version>
    </
dependency>
    <dependency>
      <
groupId>org.apache.apex</groupId>
      <
artifactId>apex-common</artifactId>
      <
version>${apex.version}</version>
      <
scope>provided</scope>
    </
dependency>
    <
dependency>
      <
groupId>org.apache.apex</groupId>
      <
artifactId>apex-engine</artifactId>
      <
version>${apex.version}</version>
      <
scope>test</scope>
      <
exclusions>
        <
exclusion>
          <
artifactId>commons-lang</artifactId>
          <
groupId>commons-lang</groupId>
        </
exclusion>
      </
exclusions>
    </
dependency>
    <
dependency>
      <
groupId>junit</groupId>
      <
artifactId>junit</artifactId>
      <
version>4.8.2</version>
      <
scope>test</scope>
    </
dependency>
    <
dependency>
      <
groupId>org.elasticsearch</groupId>
      <
artifactId>elasticsearch</artifactId>
      <
version>${elasticsearch.version}</version>
      <
exclusions>
        <
exclusion>
          <
artifactId>jackson-dataformat-cbor</artifactId>
          <
groupId>com.fasterxml.jackson.dataformat</groupId>
        </
exclusion>
      </
exclusions>
    </
dependency>
    <
dependency>
      <
groupId>org.milyn</groupId>
      <
artifactId>milyn-smooks-edi</artifactId>
      <
version>${smooks.version}</version>
      <
exclusions>
        <
exclusion>
          <
artifactId>xercesImpl</artifactId>
          <
groupId>xerces</groupId>
        </
exclusion>
        <
exclusion>
          <
artifactId>icu4j</artifactId>
          <
groupId>com.ibm.icu</groupId>
        </
exclusion>
        <
exclusion>
          <
artifactId>xalan</artifactId>
          <
groupId>xalan</groupId>
        </
exclusion>
        <
exclusion>
          <
artifactId>commons-lang</artifactId>
          <
groupId>commons-lang</groupId>
        </
exclusion>
      </
exclusions>
    </
dependency>
    <
dependency>
      <
groupId>org.slf4j</groupId>
      <
artifactId>slf4j-api</artifactId>
      <
version>1.7.16</version>
    </
dependency>
    <
dependency>
      <
groupId>org.apache.hadoop</groupId>
      <
artifactId>hadoop-common</artifactId>
      <
version>2.2.0</version>
      <
scope>provided</scope>
      <
exclusions>
        <
exclusion>
          <
artifactId>commons-lang</artifactId>
          <
groupId>commons-lang</groupId>
        </
exclusion>
      </
exclusions>
    </
dependency>
    <
dependency>
      <
groupId>commons-lang</groupId>
      <
artifactId>commons-lang</artifactId>
      <
version>2.5</version>
    </
dependency>
    <dependency>
      <
groupId>com.amazonaws</groupId>
      <
artifactId>aws-java-sdk-sqs</artifactId>
      <
version>1.11.56</version>
    </
dependency>
    <
dependency>
      <
groupId>com.amazonaws</groupId>
      <
artifactId>amazon-sqs-java-messaging-lib</artifactId>
      <
version>1.0.1</version>
      <
exclusions>
        <
exclusion>
          <
groupId>com.amazonaws</groupId>
          <
artifactId>aws-java-sdk-sqs</artifactId>
        </
exclusion>
      </
exclusions>
    </
dependency>
    <dependency>
      <
groupId>axis</groupId>
      <
artifactId>axis</artifactId>
      <
version>1.4</version>
    </
dependency>
    <
dependency>
      <
groupId>org.apache.axis</groupId>
      <
artifactId>axis-jaxrpc</artifactId>
      <
version>1.4</version>
    </
dependency>
    <
dependency>
      <
groupId>org.postgresql</groupId>
      <
artifactId>postgresql</artifactId>
      <
version>9.4.1208.jre7</version>
    </
dependency>
    <
dependency>
      <
groupId>com.jayway.jsonpath</groupId>
      <
artifactId>json-path</artifactId>
      <
version>2.2.0</version>
    </
dependency>
    <
dependency>
      <
groupId>com.esotericsoftware</groupId>
      <
artifactId>kryo</artifactId>
      <
version>4.0.0</version>
    </
dependency>
    <
dependency>
      <
groupId>de.javakaffee</groupId>
      <
artifactId>kryo-serializers</artifactId>
      <
version>0.41</version>
    </
dependency>
    <
dependency>
      <
groupId>com.github.jknack</groupId>
      <
artifactId>handlebars</artifactId>
      <
version>4.0.5</version>
    </
dependency>
    <
dependency>
      <
groupId>com.github.jknack</groupId>
      <
artifactId>handlebars-jackson2</artifactId>
      <
version>4.0.5</version>
    </
dependency>
    <
dependency>
      <
groupId>com.github.jknack</groupId>
      <
artifactId>handlebars-guava-cache</artifactId>
      <
version>4.0.5</version>
    </
dependency>
  </
dependencies>

  <
dependencyManagement>
    <
dependencies>
      <
dependency>
        <
groupId>com.google.guava</groupId>
        <
artifactId>guava</artifactId>
        <
version>20.0</version>
      </
dependency>
      <
dependency>
        <
groupId>commons-beanutils</groupId>
        <
artifactId>commons-beanutils</artifactId>
        <
version>1.9.3</version>
      </
dependency>
      <
dependency>
        <
groupId>commons-cli</groupId>
        <
artifactId>commons-cli</artifactId>
        <
version>1.3.1</version>
      </
dependency>
      <
dependency>
        <
groupId>commons-codec</groupId>
        <
artifactId>commons-codec</artifactId>
        <
version>1.10</version>
      </
dependency>
      <
dependency>
        <
groupId>commons-lang</groupId>
        <
artifactId>commons-lang</artifactId>
        <
version>2.6</version>
      </
dependency>
      <
dependency>
        <
groupId>commons-logging</groupId>
        <
artifactId>commons-logging</artifactId>
        <
version>1.1.3</version>
      </
dependency>
      <
dependency>
        <
groupId>javax.servlet</groupId>
        <
artifactId>servlet-api</artifactId>
        <
version>2.5</version>
      </
dependency>
      <
dependency>
        <
groupId>log4j</groupId>
        <
artifactId>log4j</artifactId>
        <
version>1.2.17</version>
      </
dependency>
      <
dependency>
        <
groupId>org.codehaus.jackson</groupId>
        <
artifactId>jackson-core-asl</artifactId>
        <
version>1.9.2</version>
      </
dependency>
      <
dependency>
        <
groupId>org.codehaus.jackson</groupId>
        <
artifactId>jackson-mapper-asl</artifactId>
        <
version>1.9.2</version>
      </
dependency>
      <
dependency>
        <
groupId>org.slf4j</groupId>
        <
artifactId>slf4j-api</artifactId>
        <
version>1.7.16</version>
      </
dependency>
      <
dependency>
        <
groupId>org.slf4j</groupId>
        <
artifactId>slf4j-log4j12</artifactId>
        <
version>1.7.5</version>
      </
dependency>
      <
dependency>
        <
groupId>org.apache.httpcomponents</groupId>
        <
artifactId>httpclient</artifactId>
        <
version>4.5.2</version>
      </
dependency>
      <
dependency>
        <
groupId>io.netty</groupId>
        <
artifactId>netty</artifactId>
        <
version>3.10.6.Final</version>
      </
dependency>
      <
dependency>
        <
groupId>com.fasterxml.jackson.core</groupId>
        <
artifactId>jackson-core</artifactId>
        <
version>2.8.4</version>
      </
dependency>
      <
dependency>
        <
groupId>joda-time</groupId>
        <
artifactId>joda-time</artifactId>
        <
version>2.9.6</version>
      </
dependency>
      <
dependency>
        <
groupId>com.thoughtworks.xstream</groupId>
        <
artifactId>xstream</artifactId>
        <
version>1.4.9</version>
      </
dependency>
      <
dependency>
        <
groupId>jaxen</groupId>
        <
artifactId>jaxen</artifactId>
        <
version>1.1.1</version>
        <
exclusions>
          <
exclusion>
            <
groupId>jaxen</groupId>
            <
artifactId>jaxen</artifactId>
          </
exclusion>
        </
exclusions>
      </
dependency>
      <
dependency>
        <
groupId>xml-apis</groupId>
        <
artifactId>xml-apis</artifactId>
        <
version>1.3.02</version>
      </
dependency>
      <
dependency>
        <
groupId>org.apache.commons</groupId>
        <
artifactId>commons-compress</artifactId>
        <
version>1.10</version>
      </
dependency>
      <
dependency>
        <
groupId>org.apache.apex</groupId>
        <
artifactId>apex-common</artifactId>
        <
version>${apex.version}</version>
      </
dependency>
      <
dependency>
        <
groupId>org.ow2.asm</groupId>
        <
artifactId>asm</artifactId>
        <
version>5.0.4</version>
      </
dependency>
      <
dependency>
        <
groupId>commons-collections</groupId>
        <
artifactId>commons-collections</artifactId>
        <
version>3.2.2</version>
      </
dependency>
      <
dependency>
        <
groupId>com.amazonaws</groupId>
        <
artifactId>aws-java-sdk-core</artifactId>
        <
version>1.11.56</version>
      </
dependency>
      <
dependency>
        <
groupId>org.objenesis</groupId>
        <
artifactId>objenesis</artifactId>
        <
version>2.2</version>
      </
dependency>
      <
dependency>
        <
groupId>com.fasterxml.jackson.core</groupId>
        <
artifactId>jackson-databind</artifactId>
        <
version>2.6.6</version>
      </
dependency>
      <
dependency>
        <
groupId>com.fasterxml.jackson.core</groupId>
        <
artifactId>jackson-dataformat-cbor</artifactId>
        <
version>2.6.6</version>
      </
dependency>
      <
dependency>
        <
groupId>org.apache.maven.plugins</groupId>
        <
artifactId>maven-shade-plugin</artifactId>
        <
version>2.4.3</version>
      </
dependency>
    </
dependencies>
  </
dependencyManagement>

</
project>

 

=============================  appPackage.xml ===================================================

 

<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>appPackage</id>
  <formats>
    <format>jar</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <fileSets>
    <fileSet>
      <directory>${basedir}/target/</directory>
      <outputDirectory>${file.separator}app</outputDirectory>
      <includes>
        <include>${project.artifactId}-${project.version}.jar</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>${basedir}/target/deps</directory>
      <outputDirectory>${file.separator}lib</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${basedir}/src/site/conf</directory>
      <outputDirectory>${file.separator}conf</outputDirectory>
      <includes>
        <include>*.xml</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>${basedir}/src/main/resources/META-INF</directory>
      <outputDirectory>${file.separator}META-INF</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${basedir}/src/main/resources/app</directory>
      <outputDirectory>${file.separator}app</outputDirectory>
    </fileSet>
    <fileSet>
      <directory>${basedir}/src/main/resources/resources</directory>
      <outputDirectory>${file.separator}resources</outputDirectory>
    </fileSet>
  </fileSets>

</assembly>

 

 


--------------CC4F851CE6497C6CF06CE25B--