java - Build Failure: Compiling Storm with Maven -


i've been creating storm topology , tested eclipse, it's working. i'm testing cluster, , when package jar comes messages:

..................................................................

[info] scanning projects... [info]                                                                          [info] ------------------------------------------------------------------------ [info] building storm.prova 0.0.1-snapshot [info] ------------------------------------------------------------------------ [info]  [info] --- maven-clean-plugin:2.5:clean (default-clean) @ storm.prova --- [info] deleting /home/amnor/baixades/v0.10.0/workspace/storm.prova/target [info]  [info] --- maven-resources-plugin:2.3:resources (default-resources) @ storm.prova --- [info] using 'utf-8' encoding copy filtered resources. [info] skip non existing resourcedirectory /home/amnor/baixades/v0.10.0/workspace/storm.prova/src/main/resources [info]  [info] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ storm.prova --- [info] compiling 2 source files /home/amnor/baixades/v0.10.0/workspace/storm.prova/target/classes [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 3.713s [info] finished at: mon may 09 11:01:02 cest 2016 [info] final memory: 18m/178m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project storm.prova: compilation failure: compilation failure: [error] /home/amnor/baixades/v0.10.0/workspace/storm.prova/src/main/java/storm/practice/storm/prova/provatopology.java:[101,28] error: incompatible types [error]  [error] not parse error message:   required: int [error] found:    integer [error] /home/amnor/baixades/v0.10.0/workspace/storm.prova/src/main/java/storm/practice/storm/prova/provatopology.java:108: error: no suitable constructor found values(string,string,int,int) [error] _collector.emit(new values(tuple.getstring(0),tuple.getstring(1),z,tam));// id)); [error] ^ [error]  [error] constructor values.values() not applicable [error] (actual , formal argument lists differ in length) [error] /home/amnor/baixades/v0.10.0/workspace/storm.prova/src/main/java/storm/practice/storm/prova/provatopology.java:[111,31] error: no suitable constructor found values(string,string,int,int) [error]  [error] constructor values.values() not applicable [error] (actual , formal argument lists differ in length) [error] /home/amnor/baixades/v0.10.0/workspace/storm.prova/src/main/java/storm/practice/storm/prova/provatopology.java:[115,30] error: no suitable constructor found values(string,string,int,int) .... 

....................................................................

and lot more, weird thing runs perfect on eclipse , not showing compiling error.

any idea why happening?

thanks!

here pom file

<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>storm.practice</groupid>   <artifactid>storm.prova</artifactid>   <version>0.0.1-snapshot</version>   <packaging>jar</packaging>    <name>storm.prova</name>   <url>http://maven.apache.org</url>    <properties>     <project.build.sourceencoding>utf-8</project.build.sourceencoding>   </properties>    <dependencies>   <dependency>     <groupid>org.apache.storm</groupid>     <artifactid>storm-core</artifactid>     <version>0.10.0</version>     </dependency>     <dependency>     <groupid>org.apache.storm</groupid>     <artifactid>storm-redis</artifactid>     <version>0.10.0</version>     <type>jar</type> </dependency>   <dependency>       <groupid>junit</groupid>       <artifactid>junit</artifactid>       <version>3.8.1</version>       <scope>test</scope>     </dependency>   </dependencies> <build>   <plugins>     <plugin>         <groupid>org.codehaus.mojo</groupid>         <artifactid>exec-maven-plugin</artifactid>         <version>1.4.0</version>         <executions>             <execution>                 <goals>                     <goal>java</goal>                 </goals>             </execution>         </executions>         <configuration>             <mainclass>storm.practice.storm.prova.provatopology</mainclass>         </configuration>         </plugin>          <plugin>     <artifactid>maven-assembly-plugin</artifactid>     <configuration>       <descriptorrefs>           <descriptorref>jar-with-dependencies</descriptorref>       </descriptorrefs>       <archive>         <manifest>           <mainclass>storm.practice.storm.prova</mainclass>         </manifest>       </archive>     </configuration>   </plugin>      </plugins> </build>   </project> 


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -