Skip to content

Commit cecfa5c

Browse files
jamesonwilliamsrichardmcclellan
authored andcommitted
fix(aws-android-sdk-iot): workaround mvn packaging
The Maven packaging task will fail to deploy the IoT artifact(s). While attempting to do so, `maven deploy` will fail with this error: ```console [ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.5.0:generate-sources (default-generate-sources) on project aws-android-sdk-iot: Execution default-generate-sources of goal com.simpligility.maven.plugins:android-maven-plugin:4.5.0:generate-sources failed: java.nio.file.NoSuchFileException: /path/to/aws-sdk-android/aws-android-sdk-iot/target/R.txt -> [Help 1] ``` The reasons for this are not entirely clear. However, adding at least one valid resource to the library project will coerce the Maven plugin to "do the right thing," and continue the build. The contents of `aws-android-sdk-iot/target/R.txt` after this change becomes: ```txt int string dummy 0x7f020000 ```
1 parent 9cc14b4 commit cecfa5c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="dummy">A dummy string.</string>
4+
</resources>
5+

0 commit comments

Comments
 (0)