#143 Added Camel dependency

This commit is contained in:
Ilkka Seppala 2015-08-22 15:43:44 +03:00
parent c4912b2a2b
commit cd4d420376
4 changed files with 19 additions and 3 deletions

View File

@ -10,6 +10,10 @@
</parent>
<artifactId>message-channel</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>

View File

@ -1,8 +1,14 @@
package com.iluwatar.message.channel;
import org.apache.camel.CamelContext;
import org.apache.camel.impl.DefaultCamelContext;
public class App {
public static void main(String[] args) {
System.out.println("Hello World!");
public static void main(String[] args) throws Exception {
CamelContext context = new DefaultCamelContext();
context.start();
Thread.sleep(10000);
context.stop();
}
}

View File

@ -10,7 +10,7 @@ import org.junit.Test;
public class AppTest {
@Test
public void test() {
public void test() throws Exception {
String[] args = {};
App.main(args);
}

View File

@ -17,6 +17,7 @@
<coveralls.version>3.1.0</coveralls.version>
<jacoco.version>0.7.2.201409121644</jacoco.version>
<commons-dbcp.version>1.4</commons-dbcp.version>
<camel.version>2.15.3</camel.version>
</properties>
<modules>
<module>abstract-factory</module>
@ -105,6 +106,11 @@
<artifactId>commons-dbcp</artifactId>
<version>${commons-dbcp.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>${camel.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>