#143 Added Camel dependency
This commit is contained in:
parent
c4912b2a2b
commit
cd4d420376
@ -10,6 +10,10 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<artifactId>message-channel</artifactId>
|
<artifactId>message-channel</artifactId>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.camel</groupId>
|
||||||
|
<artifactId>camel-core</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
package com.iluwatar.message.channel;
|
package com.iluwatar.message.channel;
|
||||||
|
|
||||||
|
import org.apache.camel.CamelContext;
|
||||||
|
import org.apache.camel.impl.DefaultCamelContext;
|
||||||
|
|
||||||
public class App {
|
public class App {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) throws Exception {
|
||||||
System.out.println("Hello World!");
|
CamelContext context = new DefaultCamelContext();
|
||||||
|
context.start();
|
||||||
|
Thread.sleep(10000);
|
||||||
|
context.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import org.junit.Test;
|
|||||||
public class AppTest {
|
public class AppTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test() {
|
public void test() throws Exception {
|
||||||
String[] args = {};
|
String[] args = {};
|
||||||
App.main(args);
|
App.main(args);
|
||||||
}
|
}
|
||||||
|
6
pom.xml
6
pom.xml
@ -17,6 +17,7 @@
|
|||||||
<coveralls.version>3.1.0</coveralls.version>
|
<coveralls.version>3.1.0</coveralls.version>
|
||||||
<jacoco.version>0.7.2.201409121644</jacoco.version>
|
<jacoco.version>0.7.2.201409121644</jacoco.version>
|
||||||
<commons-dbcp.version>1.4</commons-dbcp.version>
|
<commons-dbcp.version>1.4</commons-dbcp.version>
|
||||||
|
<camel.version>2.15.3</camel.version>
|
||||||
</properties>
|
</properties>
|
||||||
<modules>
|
<modules>
|
||||||
<module>abstract-factory</module>
|
<module>abstract-factory</module>
|
||||||
@ -105,6 +106,11 @@
|
|||||||
<artifactId>commons-dbcp</artifactId>
|
<artifactId>commons-dbcp</artifactId>
|
||||||
<version>${commons-dbcp.version}</version>
|
<version>${commons-dbcp.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.camel</groupId>
|
||||||
|
<artifactId>camel-core</artifactId>
|
||||||
|
<version>${camel.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user