amazon-archives / dynamodb-import-export-tool

Exports DynamoDB items via parallel scan into a blocking queue, then consumes the queue and import DynamoDB items into a replica table using asynchronous writes.
Apache License 2.0
90 stars 38 forks source link

Tool will not build due to PowerMock issue #21

Open ryanchamp-ICE opened 5 years ago

ryanchamp-ICE commented 5 years ago

When you try to run mvn install on this tool, it will fail due to the following issue in PowerMock:

https://stackoverflow.com/questions/50456726/mockclassloader-cannot-access-jdk-internal-reflect-superclass-jdk-internal-refle

The way I got around it was to update the version of powermock in the pom to the latest version 2.0.4... I still get the illegal access warning but it builds and I get the .jar I need. As mentioned in the same issue, you guys could also probably get it to ignore that issue as well with an annotation:

https://stackoverflow.com/a/58346591/4638053

Hope this helps someone!