Skip to content

Commit 58cbda6

Browse files
committed
init commit with skeleton
1 parent bcdca18 commit 58cbda6

File tree

4 files changed

+180
-0
lines changed

4 files changed

+180
-0
lines changed

clusterhq/queue/pom.xml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>us.hxbc</groupId>
8+
<artifactId>clusterhq-queue</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<developers>
12+
<developer>
13+
<name>Ka-Hing Cheung</name>
14+
<id>khc</id>
15+
<email>[email protected]</email>
16+
</developer>
17+
</developers>
18+
19+
<prerequisites>
20+
<maven>3.0.5</maven>
21+
</prerequisites>
22+
23+
<dependencyManagement>
24+
<dependencies>
25+
<dependency>
26+
<groupId>org.glassfish.jersey</groupId>
27+
<artifactId>jersey-bom</artifactId>
28+
<version>${jersey.version}</version>
29+
<type>pom</type>
30+
<scope>import</scope>
31+
</dependency>
32+
</dependencies>
33+
</dependencyManagement>
34+
35+
<dependencies>
36+
<dependency>
37+
<groupId>org.glassfish.jersey.containers</groupId>
38+
<artifactId>jersey-container-grizzly2-http</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>org.glassfish.jersey.media</groupId>
42+
<artifactId>jersey-media-json-jackson</artifactId>
43+
<version>${jersey.version}</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>junit</groupId>
47+
<artifactId>junit</artifactId>
48+
<version>4.12</version>
49+
<scope>test</scope>
50+
</dependency>
51+
<dependency>
52+
<groupId>ch.qos.logback</groupId>
53+
<artifactId>logback-classic</artifactId>
54+
<version>1.1.3</version>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.assertj</groupId>
58+
<artifactId>assertj-core</artifactId>
59+
<scope>test</scope>
60+
<version>3.2.0</version>
61+
</dependency>
62+
<dependency>
63+
<groupId>org.testng</groupId>
64+
<artifactId>testng</artifactId>
65+
<version>6.8.8</version>
66+
<scope>test</scope>
67+
</dependency>
68+
</dependencies>
69+
70+
<build>
71+
<plugins>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-compiler-plugin</artifactId>
75+
<version>2.5.1</version>
76+
<inherited>true</inherited>
77+
<configuration>
78+
<source>1.8</source>
79+
<target>1.8</target>
80+
</configuration>
81+
</plugin>
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-assembly-plugin</artifactId>
85+
<version>2.5.5</version>
86+
<configuration>
87+
<descriptors>
88+
<descriptor>src/main/assembly/jar-with-dependencies.xml</descriptor>
89+
</descriptors>
90+
<archive>
91+
<manifest>
92+
<mainClass>us.hxbc.clusterhq.queue.Main</mainClass>
93+
</manifest>
94+
</archive>
95+
</configuration>
96+
<executions>
97+
<execution>
98+
<id>make-assembly</id>
99+
<phase>package</phase>
100+
<goals>
101+
<goal>single</goal>
102+
</goals>
103+
</execution>
104+
</executions>
105+
</plugin>
106+
<plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-surefire-plugin</artifactId>
109+
<version>2.18.1</version>
110+
<configuration>
111+
<parallel>all</parallel>
112+
<threadCount>1</threadCount>
113+
<argLine>-Xmx512m</argLine>
114+
<redirectTestOutputToFile>true</redirectTestOutputToFile>
115+
<forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
116+
<runOrder>random</runOrder>
117+
</configuration>
118+
</plugin>
119+
</plugins>
120+
</build>
121+
122+
<properties>
123+
<jersey.version>2.18</jersey.version>
124+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
125+
</properties>
126+
</project>

clusterhq/queue/queue.iml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
4+
<output url="file://$MODULE_DIR$/target/classes" />
5+
<output-test url="file://$MODULE_DIR$/target/test-classes" />
6+
<content url="file://$MODULE_DIR$">
7+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9+
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10+
<excludeFolder url="file://$MODULE_DIR$/target" />
11+
</content>
12+
<orderEntry type="inheritedJdk" />
13+
<orderEntry type="sourceFolder" forTests="false" />
14+
</component>
15+
</module>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
4+
<id>jar-with-dependencies</id>
5+
<formats>
6+
<format>jar</format>
7+
</formats>
8+
<includeBaseDirectory>false</includeBaseDirectory>
9+
<containerDescriptorHandlers>
10+
<containerDescriptorHandler>
11+
<handlerName>metaInf-services</handlerName>
12+
</containerDescriptorHandler>
13+
</containerDescriptorHandlers>
14+
<dependencySets>
15+
<dependencySet>
16+
<outputDirectory>/</outputDirectory>
17+
<useProjectArtifact>true</useProjectArtifact>
18+
<unpack>true</unpack>
19+
<scope>runtime</scope>
20+
</dependencySet>
21+
</dependencySets>
22+
<fileSets>
23+
<fileSet>
24+
<directory>${project.basedir}/src/main/config</directory>
25+
<outputDirectory>/</outputDirectory>
26+
<includes>
27+
<include>logback.xml</include>
28+
</includes>
29+
<useDefaultExcludes>true</useDefaultExcludes>
30+
</fileSet>
31+
</fileSets>
32+
</assembly>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package us.hxbc.clusterhq.queue;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
6+
}
7+
}

0 commit comments

Comments
 (0)