PFA Thanks and Regards, Bibin John| Data Movement Technology Development 20205 North Creek Pkwy , Bothell, WA 98011 USA • Office: (770) 235 5614 | Cell: (469) 648-9858 Email: [email protected]<mailto:[email protected]>
OOO Alert : 09/19/2016 – 10/14/2016 From: Ankit Sarraf [mailto:[email protected]] Sent: Friday, August 26, 2016 11:39 AM To: [email protected] Subject: RE: First application using DT Please provide the pom.xml that you are using. Ankit On Aug 26, 2016 1:03 PM, "JOHN, BIBIN" <[email protected]<mailto:[email protected]>> wrote: Bhupesh, Thanks for your reply. I dont see .apa file are creating when I run maven build. [cid:[email protected]] $ mvn clean package -DskipTests [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building My Apex Application 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for com.datatorrent:dt-contrib:jar:3.4.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for com.datatorrent:dt-library:jar:3.4.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ salesApp --- [INFO] Deleting C:\BIBIN\PROJECT\JAVA\ECLIPSE-KEPLER\salesapp\target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ salesApp --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources [INFO] [INFO] --- maven-resources-plugin:2.6:copy-resources (copy-resources) @ salesApp --- [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\BIBIN\PROJECT\JAVA\ECLIPSE-KEPLER\salesapp\target\generated-resources\xml-javadoc [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ salesApp --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 7 source files to C:\BIBIN\PROJECT\JAVA\ECLIPSE-KEPLER\salesapp\target\classes [ERROR] error reading C:\Users\bj9306\.m2\repository\it\unimi\dsi\fastutil\7.0.6\fastutil-7.0.6.jar; error in opening zip file [ERROR] error reading C:\Users\bj9306\.m2\repository\org\apache\avro\avro\1.7.4\avro-1.7.4.jar; error in opening zip file [WARNING] bootstrap class path not set in conjunction with -source 1.7 [ERROR] error reading C:\Users\bj9306\.m2\repository\it\unimi\dsi\fastutil\7.0.6\fastutil-7.0.6.jar; error in opening zip file [ERROR] error reading C:\Users\bj9306\.m2\repository\org\apache\avro\avro\1.7.4\avro-1.7.4.jar; error in opening zip file [WARNING] /C:/BIBIN/PROJECT/JAVA/ECLIPSE-KEPLER/salesapp/src/main/java/com/example/salesapp/SalesDemo.java:[22,42] com.datatorrent.contrib.hdht.tfile.TFileImpl in com.datatorrent.contrib.hdht.tfile has been deprecated [WARNING] /C:/BIBIN/PROJECT/JAVA/ECLIPSE-KEPLER/salesapp/src/main/java/com/example/salesapp/SalesDemo.java:[71,5] com.datatorrent.contrib.hdht.tfile.TFileImpl in com.datatorrent.contrib.hdht.tfile has been deprecated [WARNING] /C:/BIBIN/PROJECT/JAVA/ECLIPSE-KEPLER/salesapp/src/main/java/com/example/salesapp/SalesDemo.java:[71,29] com.datatorrent.contrib.hdht.tfile.TFileImpl in com.datatorrent.contrib.hdht.tfile has been deprecated [WARNING] /C:/BIBIN/PROJECT/JAVA/ECLIPSE-KEPLER/salesapp/src/main/java/com/example/salesapp/SalesDemo.java:[76,52] COUNTERS_AGGREGATOR in com.datatorrent.api.Context.OperatorContext has been deprecated [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ salesApp --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ salesApp --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ salesApp --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ salesApp --- [INFO] Building jar: C:\BIBIN\PROJECT\JAVA\ECLIPSE-KEPLER\salesapp\target\salesApp-0.0.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.320 s [INFO] Finished at: 2016-08-26T10:00:10-07:00 [INFO] Final Memory: 29M/285M [INFO] ------------------------------------------------------------------------ Thanks and Regards, Bibin John| Data Movement Technology Development 20205 North Creek Pkwy , Bothell, WA 98011 USA • Office: (770) 235 5614<tel:%28770%29%20235%205614> | Cell: (469) 648-9858<tel:%28469%29%20648-9858> Email: [email protected]<mailto:[email protected]> OOO Alert : 09/19/2016 – 10/14/2016 From: Bhupesh Chawda [mailto:[email protected]<mailto:[email protected]>] Sent: Friday, August 26, 2016 8:56 AM To: [email protected]<mailto:[email protected]> Subject: Re: First application using DT Hi John, In addition to the jar file, you would have a .apa file also generated with the same name. You can try uploading the apa file instead of the jar file. ~ Bhupesh On Fri, Aug 26, 2016 at 8:54 PM, JOHN, BIBIN <[email protected]<mailto:[email protected]>> wrote: All, I am doing a POC in DT and trying to set up my first project. When I try to upload my package, I am getting below exceptions. Could you please help? I have attached pom.xml Instructions used : http://docs.datatorrent.com/tutorials/salesdimensions/#building-the-sales-dimension-application-in-java ×Close File "salesApp-0.0.1-SNAPSHOT.jar" upload failed. java.io.IOException: Not a valid app package. App Package Name or Version or Class-Path is missing from MANIFEST.MF at com.datatorrent.stram.client.AppPackage.<init>(AppPackage.java:157) at com.datatorrent.stram.client.AppPackage.<init>(AppPackage.java:203) at com.datatorrent.stram.cli.ApexCli.newAppPackageInstance(ApexCli.java:452) at com.datatorrent.stram.cli.ApexCli$GetAppPackageInfoCommand.execute(ApexCli.java:3400) at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1462)
<?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> <repositories> <repository> <id>datatorrent</id> <name>DataTorrent Release Repository</name> <url>https://www.datatorrent.com/maven/content/repositories/releases/</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <groupId>com.example</groupId> <version>0.0.1-SNAPSHOT</version> <artifactId>salesApp</artifactId> <packaging>jar</packaging> <!-- change these to the appropriate values --> <name>My Apex Application</name> <description>My Apex Application Description</description> <properties> <!-- change this if you desire to use a different version of Apex Core --> <apex.version>3.4.0</apex.version> <apex.apppackage.classpath>lib/*.jar</apex.apppackage.classpath> </properties> <build> <pluginManagement> <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> <artifactId>maven-assembly-plugin</artifactId> <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>${apex.apppackage.classpath}</Class-Path> <DT-Engine-Version>${apex.version}</DT-Engine-Version> <DT-App-Package-Group-Id>${project.groupId}</DT-App-Package-Group-Id> <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> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</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.9.1</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> <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</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> <artifactId>maven-resources-plugin</artifactId> <version>2.6</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> </pluginManagement> </build> <dependencies> <!-- add your dependencies here --> <dependency> <groupId>org.apache.apex</groupId> <artifactId>malhar-library</artifactId> <version>3.4.0</version> <!-- If you know that your application does not need transitive dependencies pulled in by malhar-library, uncomment the following to reduce the size of your app package. --> <!-- <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> --> </dependency> <dependency> <groupId>org.apache.apex</groupId> <artifactId>apex-common</artifactId> <version>${apex.version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> </dependency> <dependency> <groupId>org.apache.apex</groupId> <artifactId>apex-engine</artifactId> <version>${apex.version}</version> </dependency> <dependency> <groupId>com.datatorrent</groupId> <artifactId>dt-contrib</artifactId> <version>3.4.0</version> </dependency> <dependency> <groupId>com.datatorrent</groupId> <artifactId>dt-library</artifactId> <version>3.4.0</version> </dependency> </dependencies> </project>
