|
11 | 11 | <url>http://janusgraph.org</url> |
12 | 12 |
|
13 | 13 | <properties> |
14 | | - <jruby.version>1.6.8</jruby.version> |
15 | 14 | <top.level.basedir>${basedir}/../..</top.level.basedir> |
16 | 15 | </properties> |
17 | 16 |
|
|
27 | 26 | </exclusion> |
28 | 27 | </exclusions> |
29 | 28 | </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>org.janusgraph</groupId> |
| 31 | + <artifactId>janusgraph-test</artifactId> |
| 32 | + <version>${project.version}</version> |
| 33 | + <scope>test</scope> |
| 34 | + </dependency> |
30 | 35 | <dependency> |
31 | 36 | <groupId>org.apache.hbase</groupId> |
32 | 37 | <artifactId>hbase-shaded-client</artifactId> |
33 | 38 | <version>${hbase100.version}</version> |
34 | 39 | <optional>true</optional> |
35 | | - <exclusions> |
36 | | - <exclusion> |
37 | | - <artifactId>avro</artifactId> |
38 | | - <groupId>org.apache.avro</groupId> |
39 | | - </exclusion> |
40 | | - <exclusion> |
41 | | - <artifactId>jruby-complete</artifactId> |
42 | | - <groupId>org.jruby</groupId> |
43 | | - </exclusion> |
44 | | - <exclusion> |
45 | | - <artifactId>asm</artifactId> |
46 | | - <groupId>asm</groupId> |
47 | | - </exclusion> |
48 | | - </exclusions> |
49 | 40 | </dependency> |
50 | 41 | <dependency> |
51 | 42 | <groupId>org.apache.hbase</groupId> |
52 | 43 | <artifactId>hbase-shaded-server</artifactId> |
53 | 44 | <version>${hbase100.version}</version> |
54 | 45 | <optional>true</optional> |
55 | | - <exclusions> |
56 | | - <exclusion> |
57 | | - <artifactId>avro</artifactId> |
58 | | - <groupId>org.apache.avro</groupId> |
59 | | - </exclusion> |
60 | | - <exclusion> |
61 | | - <artifactId>jruby-complete</artifactId> |
62 | | - <groupId>org.jruby</groupId> |
63 | | - </exclusion> |
64 | | - <exclusion> |
65 | | - <artifactId>asm</artifactId> |
66 | | - <groupId>asm</groupId> |
67 | | - </exclusion> |
68 | | - <exclusion> |
69 | | - <artifactId>com.lmax</artifactId> |
70 | | - <groupId>disruptor</groupId> |
71 | | - </exclusion> |
72 | | - </exclusions> |
73 | 46 | </dependency> |
74 | 47 | <dependency> |
75 | | - <artifactId>jruby-complete</artifactId> |
76 | | - <groupId>org.jruby</groupId> |
77 | | - <version>${jruby.version}</version> |
| 48 | + <groupId>${project.groupId}</groupId> |
| 49 | + <artifactId>janusgraph-hbase-server</artifactId> |
| 50 | + <version>${project.version}</version> |
78 | 51 | <scope>test</scope> |
79 | 52 | </dependency> |
| 53 | + |
| 54 | + <!-- Logging. |
| 55 | +
|
| 56 | + Based on these two HBase links, it seems that HBase has |
| 57 | + hard dependencies on log4j and slf4j-log4j12 (in addition |
| 58 | + to commons-logging): |
| 59 | +
|
| 60 | + http://hbase.apache.org/book/config.files.html#client_dependencies |
| 61 | + https://issues.apache.org/jira/browse/HBASE-2608 |
| 62 | +
|
| 63 | + Our parent pom declares optional runtime-scoped dependencies |
| 64 | + on slf4j-log4j12 and log4j. But according to the links above, |
| 65 | + these are required compile-scoped dependencies for HBase. |
| 66 | + We override the parent's dependency declarations below. |
| 67 | +
|
| 68 | + These declarations could go away if HBase ever fully migrates |
| 69 | + to slf4j and removes its hard dependency on log4j. |
| 70 | +
|
| 71 | + Note, logback-classic is added explicitly to ensure slf4j-log4j12 |
| 72 | + binding appears on the classpath before logback-classic. See |
| 73 | + comments in janusgraph-cassandra/pom.xml for more information. |
| 74 | + --> |
| 75 | + <dependency> |
| 76 | + <groupId>org.slf4j</groupId> |
| 77 | + <artifactId>slf4j-log4j12</artifactId> |
| 78 | + <optional>true</optional> |
| 79 | + </dependency> |
| 80 | + <dependency> |
| 81 | + <groupId>log4j</groupId> |
| 82 | + <artifactId>log4j</artifactId> |
| 83 | + <optional>true</optional> |
| 84 | + </dependency> |
| 85 | + <dependency> |
| 86 | + <groupId>ch.qos.logback</groupId> |
| 87 | + <artifactId>logback-classic</artifactId> |
| 88 | + </dependency> |
80 | 89 | </dependencies> |
81 | 90 |
|
82 | 91 | <build> |
|
89 | 98 | </testResource> |
90 | 99 | </testResources> |
91 | 100 | <plugins> |
92 | | - <plugin> |
93 | | - <artifactId>maven-resources-plugin</artifactId> |
94 | | - <executions> |
95 | | - <execution> |
96 | | - <id>filter-hbase-conf</id> |
97 | | - </execution> |
98 | | - </executions> |
99 | | - </plugin> |
100 | 101 | <plugin> |
101 | 102 | <artifactId>maven-dependency-plugin</artifactId> |
102 | 103 | <executions> |
|
109 | 110 | </executions> |
110 | 111 | </plugin> |
111 | 112 | <plugin> |
112 | | - <artifactId>maven-assembly-plugin</artifactId> |
| 113 | + <artifactId>maven-clean-plugin</artifactId> |
113 | 114 | <executions> |
114 | 115 | <execution> |
115 | | - <id>copy-hbase-bin</id> |
| 116 | + <id>clean-hbase-files</id> |
116 | 117 | </execution> |
117 | 118 | </executions> |
118 | 119 | </plugin> |
119 | 120 | <plugin> |
120 | | - <artifactId>maven-clean-plugin</artifactId> |
| 121 | + <artifactId>maven-resources-plugin</artifactId> |
121 | 122 | <executions> |
122 | 123 | <execution> |
123 | | - <id>clean-hbase-files</id> |
| 124 | + <id>filter-hbase-conf</id> |
| 125 | + <phase>none</phase> |
124 | 126 | </execution> |
125 | 127 | </executions> |
126 | 128 | </plugin> |
|
0 commit comments