This worked for me with maven 3.1.1 & java 1.7 on windows without any issues.
<dependency> <groupId>storm</groupId> <artifactId>storm</artifactId> <version>0.9.0.1</version> <!-- keep storm out of the jar-with-dependencies --> <scope>provided</scope> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>net.wurstmeister.storm</groupId> <artifactId>storm-kafka-0.8-plus</artifactId> <version>0.3.0-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> On Tue, Jan 14, 2014 at 6:30 AM, Adam Lewis <[email protected]> wrote: > I've found that Maven can drift away from MacOS in terms of which java > version they use (even if you have your preferred version on the path and > JAVA_HOME). Did you compare java -version and mvn -version? Something is > getting built by Java 7; the latest storm-kafka-0.8-plus pom on github > depends on storm 0.9.0 which was accidentally built using Java 7, check out > storm 0.9.0.1 for Java6 version...or move to Java 7 if you can. > > > On Tue, Jan 14, 2014 at 2:00 AM, Krishnanand Khambadkone < > [email protected]> wrote: > >> Hi, When I do a mvn package I get this message >> >> Tests in error: >> >> testMultiplePartitionsOnDifferentHosts(storm.kafka.DynamicBrokersReaderTest): >> backtype/storm/utils/Utils : Unsupported major.minor version 51.0 >> testSwitchHostForPartition(storm.kafka.DynamicBrokersReaderTest): >> backtype/storm/utils/Utils >> testGetBrokerInfo(storm.kafka.DynamicBrokersReaderTest): >> backtype/storm/utils/Utils >> testMultiplePartitionsOnSameHost(storm.kafka.DynamicBrokersReaderTest): >> backtype/storm/utils/Utils >> >> My java version is, on mac os x 10.7.5 >> >> java version "1.6.0_29" >> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M4609) >> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode) >> > >
