# All Entitled Data Sets (Java)
This sample retrieves a list of all subscriber's entitled data sets, in Java.
To run the sample, install Maven, set `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
```
$ mvn compile
$ mvn exec:java -Dexec.mainClass="com.amazonaws.dataexchange.App"
prod-zg4u6tpyxud5i/7ae12084f47ea658ab62ee90edd513dd: NYC Property Sales 2014
Over 80,000 property sales in New York City in 2014
prod-zg4u6tpyxud5i/fc19d00c8780199e4fccd21f4834c905: NYC Property Sales 2018
A table of 80,000+ New York City property sales occurring in 2018, organized by borough, including sale price and sale date.
prod-zg4u6tpyxud5i/05964b659bbcb607d43c0d5845838e7f: NYC Property Sales 2015
Over 80,000 property sales in New York City in 2015
prod-zg4u6tpyxud5i/7d8f73e3c5acdde79fd2874dd98afdcd: NYC Property Sales 2016
Over 80,000 property sales in New York City in 2016
prod-zg4u6tpyxud5i/50782dc315b94e46fdbd4a12cec6820e: NYC Property Sales 2017
Records of over 80,000 property sales transactions.
```
### Implementation Details
The project was generated with [Maven](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html).
```
$ mvn -B archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.amazonaws.dataexchange \
-DartifactId=all-entitled-datasets
```
A dependency on AWS SDK was added to [pom.xml](pom.xml).
```xml
com.amazonaws
aws-java-sdk-bom
1.11.693
pom
import
```
Added AWS Data Exchange SDK to [pom.xml](pom.xml).
```
com.amazonaws
aws-java-sdk-dataexchange
```
Upgraded compiler source and target to 1.8 in [pom.xml](pom.xml).
```
1.8
1.8
```
Compile and run.
```
$ mvn compile
$ mvn exec:java -Dexec.mainClass="com.amazonaws.dataexchange.App"
```