Maven
To develop topologies, you'll need the Storm jars on your classpath. You should either include the unpacked jars in the classpath for your project or use Maven to include Storm as a development dependency. Storm is hosted on Clojars (a Maven repository). To include Storm in your project as a development dependency, add the following to your pom.xml:
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</repository>
<dependency>
<groupId>storm</groupId>
<artifactId>storm</artifactId>
<version>0.7.2</version>
<scope>test</scope>
</dependency>
Here's an example of a pom.xml for a Storm project.
If Maven isn't your thing, check out leiningen. Leiningen is a build tool for Clojure, but it can be used for pure Java projects as well. Leiningen makes builds and dependency management using Maven dead-simple. Here's an example project.clj for a pure-Java Storm project:
(defproject storm-starter "0.0.1-SNAPSHOT"
:java-source-path "src/jvm"
:javac-options {:debug "true" :fork "true"}
:jvm-opts ["-Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib"]
:dependencies []
:dev-dependencies [
[storm "0.7.2"]
])
You can fetch dependencies using lein deps
, build the project with lein compile
, and make a jar suitable for submitting to a cluster withlein uberjar
.
Using Storm as a library
If you want to use Storm as a library (e.g., use the Distributed RPC client) and have the Storm dependency jars be distributed with your application, there's a separate Maven dependency called "storm/storm-lib". The only difference between this dependency and the usual "storm/storm" is that storm-lib does not have any logging configured.
Developing Storm
You will want to
bash ./bin/install_zmq.sh # install the jzmq dependency
lein sub install
Build javadocs with
bash ./bin/javadoc.sh
Building a Storm Release
Use the file bin/build_release.sh
to make a zipfile like the ones you would download (and like what the bin files require in order to run daemons).
come from sorm 's wiki
相关推荐
使用Maven构建多模块项目
利用maven构建spring boot,使用jpa访问oracle数据,实现rest方式的webservice,实现了简单的例子,浏览器可以直接访问,返回json格式数据,下载之后,可以直接使用,在本地已经测试成功。
最近在研究分布式,先研究一下maven创建的pom工程、war工程、jar工程,用maven构建一个web的小demo,记录自己的点点滴滴,这只是学习的开始,和大家一起分享,学艺不精,不断学习
使用maven构建最新ssh框架整合,下载下来即可使用,无误,学习和开发均可
jar共享gradle-aspectj-1.6,maven构建gradle的jar,maven构建gradle的jar,maven构建gradle的jar。
Maven 构建 项目 文档 java MyEclipse导入Maven项目及注意的事项
作为一个JAVA开发者,经常受到技术框架造型的烦恼本篇主要讲解的是maven自动化你的项目,以国外框架组合appfuse和国内springside为主,让你在短短的时间之内把想要的框架集成,并准备开发
storm如何打依赖的jar包,如何打无依赖的jar包
maven构建项目工程,简单构建方便,快速
maven 构建 spring spring mvc hibernate项目架构
gs-maven, 使用 Maven 构建Java项目 标记项目maven目录你将构建什么。你需要什么。设置了项目项目。定义一个简单的Maven 构建工具。构建Java代码声明依赖项编写测试文件。摘要文件另请参阅本指南引导你使用 Maven
maven构建项目可以粘贴的内容
使用maven构建,打包的java项目demo
nexus+maven构建私服,自己备忘
maven构建Spring Mybaties,实现增删改查,maven构建Spring Mybaties,实现增删改查,maven构建Spring Mybaties,实现增删改查
使用Maven构建JavaWeb项目实例
基于Maven构建ssh项目,教程可参考http://www.cnblogs.com/tommychok/p/7340500.html
使用Eclipse使用Maven构建web项目视频教程,不包含框架内容
maven构建项目文档 找了很久才找到一个翻译英文的原版maven文档
ibatis修改为mybatis后mybatis的3.0实例。用maven构建。