You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by pt...@apache.org on 2014/04/21 21:44:16 UTC
[17/50] [abbrv] git commit: added profile for scala 2.10 build
added profile for scala 2.10 build
Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/e9357eca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/e9357eca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/e9357eca
Branch: refs/heads/master
Commit: e9357eca4881704c398acbe60dda228ad4c7beec
Parents: aabcd58
Author: wurstmeister <wu...@users.noreply.github.com>
Authored: Sun Feb 2 19:24:47 2014 +0000
Committer: wurstmeister <wu...@users.noreply.github.com>
Committed: Sun Feb 2 19:25:13 2014 +0000
----------------------------------------------------------------------
pom.xml | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/e9357eca/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 8dfd316..8defde4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,21 @@
<developerConnection>scm:git:ssh://git@github.com/wurstmeister/storm-kafka-0.8-plus.git</developerConnection>
<url>https://github.com/wurstmeister/storm-kafka-0.8-plus</url>
</scm>
+ <properties>
+ <scalaVersion>2.9.2</scalaVersion>
+ <kafkaArtifact>kafka_2.9.2</kafkaArtifact>
+ <envClassifier></envClassifier>
+ </properties>
<build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <classifier>${envClassifier}</classifier>
+ </configuration>
+ </plugin>
+ </plugins>
<sourceDirectory>src/jvm</sourceDirectory>
<testSourceDirectory>src/test</testSourceDirectory>
<resources>
@@ -87,7 +101,7 @@
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
- <version>2.9.2</version>
+ <version>${scalaVersion}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
@@ -140,7 +154,7 @@
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
- <artifactId>kafka_2.9.2</artifactId>
+ <artifactId>${kafkaArtifact}</artifactId>
<version>0.8.0</version>
<exclusions>
<exclusion>
@@ -179,4 +193,15 @@
<url>https://clojars.org/repo</url>
</repository>
</distributionManagement>
+
+ <profiles>
+ <profile>
+ <id>Scala-2.10</id>
+ <properties>
+ <scalaVersion>2.10.3</scalaVersion>
+ <kafkaArtifact>kafka_2.10</kafkaArtifact>
+ <envClassifier>scala_2.10</envClassifier>
+ </properties>
+ </profile>
+ </profiles>
</project>