kinesis-aggregation: Maven via JitPack: amazon-kinesis-aggregator-2.0.2 has v1 code, amazon-kinesis-deaggregator-2.0.2 unavailable
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?
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 6
- Comments: 20 (7 by maintainers)
@IanMeyers would it be possible for you to publish it as a package in Github? It’s not as good as Maven Central but it would solve the problem for a lot of people.
@IanMeyers any chance we could get the v1 and v2 releases published out to a maven repository again? The most recent and only build currently is https://mvnrepository.com/artifact/com.amazonaws/amazon-kinesis-deaggregator/1.0.3
any update on publishing to central??
Any update on this?
Working on it - understand the ask and we’ll hopefully have an update this week.
+1