Description
I'm using the following in a Maven project by copy-pasting the code from:
- https://github.com/awslabs/kinesis-aggregation/tree/master/java/KinesisAggregatorV2
- https://github.com/awslabs/kinesis-aggregation/tree/master/java/KinesisDeaggregatorV2
i.e.
src/main/java/com/amazonaws
└── kinesis
├── agg
│ ├── AggRecord.java
│ └── RecordAggregator.java
└── deagg
├── RecordDeaggregator.java
└── util
└── DeaggregationUtils.java
I would much rather just refer to these packages via Maven dependencies. Since they don't appear to be in a Maven repo, I've attempted to use JitPack to pull in the GitHub releases:
https://jitpack.io/#awslabs/kinesis-aggregation/2.0.2 instructs adding the following to my POM:
amazon-kinesis-aggregator (v2)
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.awslabs.kinesis-aggregation</groupId>
<artifactId>amazon-kinesis-aggregator</artifactId>
<version>2.0.2</version>
</dependency>
This works to pull in amazon-kinesis-aggregator-2.0.2.jar
, but it pulls in the classes (AggRecord
and RecordAggregator
) from the v1 submodule https://github.com/awslabs/kinesis-aggregation/tree/master/java/KinesisDeaggregator, which has the v1 variant methods, e.g. toPutRecordRequest
(v1) instead of toPutRecordsRequest
(v2):
amazon-kinesis-deaggregator (v2)
Attempting to pull in the KinesisDeaggregatorV2
classes via JitPack fails to even find the JAR:
<dependency>
<groupId>com.github.awslabs.kinesis-aggregation</groupId>
<artifactId>amazon-kinesis-deaggregator</artifactId>
<version>2.0.2</version>
</dependency>
TL;DR: my code works with the copy-pasted classes from KinesisAggregatorV2
and KinesisDeaggregatorV2
, but I would like to load them as Maven dependencies instead. Is there a way I can do that?