-
Notifications
You must be signed in to change notification settings - Fork 76
Improve README #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Improve README #662
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0b32d56
Restructure README
sfodagain efe00c1
Clean up prerequisites
sfodagain 5ab1819
Move CRT info
sfodagain 307feff
Remove duplicated info
sfodagain 9b86538
PR comments
sfodagain 06d402f
Merge branch 'main' into change-readme
sfod ea6a7ef
Add links to samples
sfodagain 8c979e7
Merge branch 'main' into change-readme
sfod a3700ca
Address feedback
sfodagain 44990bd
Specify min platform versions
sfodagain 236c7c9
Merge branch 'main' into change-readme
sfod 7947b89
Bump platform versions
sfodagain 73464f6
Fix paths
sfodagain 9b50c38
Add link
sfodagain 3e2b557
Shorten toc item
sfodagain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,64 @@ | ||
| # Developing Instructions | ||
| # Development Guide | ||
|
|
||
| Please first follow the instructions in the [main readme](../README.md) | ||
| This guide covers building and developing with the AWS IoT Device SDK for Java v2. | ||
|
|
||
| ## Consuming Local IoT Device SDK from Maven in your application | ||
| To build the SDK locally and test local changes do the following: | ||
| **Prerequisites:** Follow the setup instructions in the [main README](../README.md) first. | ||
|
|
||
| Modify [sdk/pom.xml](https://github.com/aws/aws-iot-device-sdk-java-v2/sdk/pom.xml) | ||
| ``` xml | ||
| ## Building from Source | ||
|
|
||
| ### Basic Build | ||
|
|
||
| ```bash | ||
| # Create workspace directory | ||
| mkdir sdk-workspace | ||
| cd sdk-workspace | ||
|
|
||
| # Clone the repository | ||
| git clone https://github.com/awslabs/aws-iot-device-sdk-java-v2.git | ||
| cd aws-iot-device-sdk-java-v2 | ||
|
|
||
| # Build and install | ||
| mvn clean install | ||
| ``` | ||
|
|
||
| ### Using Latest CRT Version | ||
|
|
||
| To use the latest AWS CRT release instead of the tested version: | ||
|
|
||
| ```bash | ||
| # Update CRT version before building | ||
| mvn versions:use-latest-versions -Dincludes="software.amazon.awssdk.crt*" | ||
| mvn clean install | ||
| ``` | ||
|
|
||
| ## Using Local IoT SDK in Your Application | ||
|
|
||
| ### Maven Dependency Configuration | ||
|
|
||
| To test local changes, update your application's `pom.xml`: | ||
|
|
||
| ```xml | ||
| <dependency> | ||
| <groupId>software.amazon.awssdk.iotdevicesdk</groupId> | ||
| <artifactId>aws-iot-device-sdk</artifactId> | ||
| <version>1.0.0-SNAPSHOT</version> | ||
| </dependency> | ||
| ``` | ||
| Note the version number matches the sdk version number in [aws-crt-java](https://github.com/awslabs/aws-crt-java/pom.xml) | ||
| under | ||
| ```xml | ||
| <version>1.0.0-SNAPSHOT</version> | ||
| ``` | ||
|
|
||
| Please note: The default location for local builds with maven is | ||
| Linux: /home/<User_Name>/.m2 | ||
| Windows: C:\Users\<User\_Name>\.m2 | ||
| Mac: /Users/<user_name>/.m2 | ||
| **Note:** Ensure the version matches the SDK version in [aws-crt-java pom.xml](https://github.com/awslabs/aws-crt-java/blob/main/pom.xml). | ||
|
|
||
| ### Maven Local Repository | ||
|
|
||
| It is safe to delete the whole directory | ||
| It is possible to pass this directory as an argument to the maven command | ||
| **Default locations:** | ||
| - **Linux:** `/home/<username>/.m2` | ||
| - **Windows:** `C:\Users\<username>\.m2` | ||
| - **macOS:** `/Users/<username>/.m2` | ||
|
|
||
| **Custom repository location:** | ||
| ```bash | ||
| mvn -Dmaven.repo.local=/my/local/repository/path clean install | ||
| mvn -Dmaven.repo.local=/path/to/custom/repo clean install | ||
| ``` | ||
| It is also possible to change it globally by modifying setting.xml in the maven | ||
| configuration files | ||
|
|
||
| After that making your changes, follow the guide in the [main page](../README.md) | ||
| **Global configuration:** Modify `settings.xml` in Maven configuration directory. | ||
|
|
||
| **Cleanup:** The `.m2` directory can be safely deleted to clear local builds. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.