Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Commit d8df424

Browse files
committed
Fix jackson dependency problems in tests
1 parent 03366d4 commit d8df424

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

stack/corepersistence/common/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,25 @@
231231
<version>1.3.0</version>
232232
</dependency>
233233

234+
<!-- Just the annotations; use this dependency if you want to attach annotations
235+
to classes without connecting them to the code. -->
236+
<dependency>
237+
<groupId>com.fasterxml.jackson.core</groupId>
238+
<artifactId>jackson-annotations</artifactId>
239+
<version>${jackson-2-version}</version>
240+
</dependency>
241+
242+
<!-- databinding; ObjectMapper, JsonNode and related classes are here -->
243+
<dependency>
244+
<groupId>com.fasterxml.jackson.core</groupId>
245+
<artifactId>jackson-databind</artifactId>
246+
<version>${jackson-2-version}</version>
247+
</dependency>
248+
234249
</dependencies>
235250

251+
252+
236253
<profiles>
237254
<profile>
238255
<id>jacoco</id>

stack/corepersistence/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ limitations under the License.
8888
<guice.version>4.0-beta5</guice.version>
8989
<guicyfig.version>3.2</guicyfig.version>
9090
<hystrix.version>1.4.0</hystrix.version>
91-
<jackson-2-version>2.4.1</jackson-2-version>
91+
<jackson-2-version>2.8.6</jackson-2-version>
9292
<mockito.version>1.10.8</mockito.version>
9393
<junit.version>4.11</junit.version>
9494
<kryo-serializers.version>0.26</kryo-serializers.version>

stack/tools/src/main/java/org/apache/usergrid/tools/Export.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public void streamOutput( File file, List<Entity> entities ) throws Exception {
403403
JsonFactory jsonFactory = new JsonFactory();
404404
// or, for data binding,
405405
// org.codehaus.jackson.mapper.MappingJsonFactory
406-
JsonGenerator jg = jsonFactory.createJsonGenerator( file, JsonEncoding.UTF8 );
406+
JsonGenerator jg = jsonFactory.createGenerator( file, JsonEncoding.UTF8 );
407407
// or Stream, Reader
408408

409409
jg.writeStartArray();

0 commit comments

Comments
 (0)