Repository: storm Updated Branches: refs/heads/master c7cb25d99 -> ce31f4cfb
STORM-706. Pom support for intellij in storm-starter Project: http://git-wip-us.apache.org/repos/asf/storm/repo Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/30f942ca Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/30f942ca Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/30f942ca Branch: refs/heads/master Commit: 30f942ca2c9aae828c04ddaa834ea07bf74201d7 Parents: 87a6627 Author: jayunit100 <[email protected]> Authored: Wed Mar 18 21:30:52 2015 -0400 Committer: jayunit100 <[email protected]> Committed: Wed Mar 18 21:31:47 2015 -0400 ---------------------------------------------------------------------- examples/storm-starter/README.markdown | 1 + examples/storm-starter/pom.xml | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/storm/blob/30f942ca/examples/storm-starter/README.markdown ---------------------------------------------------------------------- diff --git a/examples/storm-starter/README.markdown b/examples/storm-starter/README.markdown index 8161a06..03a26dc 100644 --- a/examples/storm-starter/README.markdown +++ b/examples/storm-starter/README.markdown @@ -146,6 +146,7 @@ The following instructions will import storm-starter as a new project in Intelli * Select _Import project from external model_, select "Maven", and click _Next_. * In the following screen, enable the checkbox _Import Maven projects automatically_. Leave all other values at their defaults. Click _Next_. +* Make sure to select the *intellij* profile in the profiles screen. This is important for making sure dependencies set correctly. * Click _Next_ on the following screen about selecting Maven projects to import. * Select the JDK to be used by IDEA for storm-starter, then click _Next_. * At the time of this writing you should use JDK 6. http://git-wip-us.apache.org/repos/asf/storm/blob/30f942ca/examples/storm-starter/pom.xml ---------------------------------------------------------------------- diff --git a/examples/storm-starter/pom.xml b/examples/storm-starter/pom.xml index f59e692..dfe32f3 100644 --- a/examples/storm-starter/pom.xml +++ b/examples/storm-starter/pom.xml @@ -30,6 +30,19 @@ <name>storm-starter</name> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <!-- see comment below... This fixes an annoyance with intellij --> + <provided.scope>provided</provided.scope> + </properties> + <profiles> + <profile> + <id>intellij</id> + <properties> + <provided.scope>compile</provided.scope> + </properties> + </profile> + </profiles> <dependencies> <dependency> @@ -69,8 +82,11 @@ <groupId>org.apache.storm</groupId> <artifactId>storm-core</artifactId> <version>${project.version}</version> - <!-- keep storm out of the jar-with-dependencies --> - <scope>provided</scope> + <!-- + Use "provided" scope to keep storm out of the jar-with-dependencies + For IntelliJ dev, intellij will load properly. + --> + <scope>${provided.scope}</scope> </dependency> <dependency> <groupId>commons-collections</groupId>
